WO2018149170A1 - Cross-application control method and device - Google Patents

Cross-application control method and device Download PDF

Info

Publication number
WO2018149170A1
WO2018149170A1 PCT/CN2017/107853 CN2017107853W WO2018149170A1 WO 2018149170 A1 WO2018149170 A1 WO 2018149170A1 CN 2017107853 W CN2017107853 W CN 2017107853W WO 2018149170 A1 WO2018149170 A1 WO 2018149170A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
information
control information
control
barrage
Prior art date
Application number
PCT/CN2017/107853
Other languages
French (fr)
Chinese (zh)
Inventor
周志刚
Original Assignee
武汉斗鱼网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 武汉斗鱼网络科技有限公司 filed Critical 武汉斗鱼网络科技有限公司
Publication of WO2018149170A1 publication Critical patent/WO2018149170A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4781Games
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a cross-application control method and apparatus.
  • the live broadcast software and the specific game will be simultaneously opened.
  • the live broadcast software collects the content of the game and pushes the content to the server of the live website through the network.
  • the anchor broadcasts the gameplay while playing the game.
  • it can only watch and send the barrage, but can't participate in the game, nor can it control the game, and can't feel the function of the game. Experience.
  • the invention provides a cross-application control method and device, which is used to solve the game live broadcast in the prior art, and has the technical problem that the audience experience form is single and the experience effect is poor.
  • the present invention provides a cross-application control method, where the method is applied to an anchor end, including:
  • Controlling by the target object displayed in the second application, an action corresponding to the control information.
  • the method before the acquiring the barrage information sent by the target user in the first application, the method includes: receiving a selection operation that is performed on the anchor end; and, based on the selecting operation, from a user group connected to the anchor end Identify the target user.
  • the second aspect provides a cross-application control device, where the device is a main broadcast terminal, including:
  • the embodiment provides a cross-application control method. As shown in FIG. 1 , the method is applied to the anchor end, and includes:
  • Step S102 extracting control information from the barrage information according to a preset extraction rule
  • Step S103 Send the control information to the second application, where the second application and the first application are both running on the anchor end;
  • the anchor end may be an electronic device such as a smart phone, a desktop computer, a notebook, or a tablet computer, and is not limited herein.
  • the barrage information sent by the target user is filtered from the barrage information group.
  • the direction field "Right" may be extracted from the barrage information as the control information.
  • step S103 is executed to send the control information to the second application, where the second application and the first application are both running on the anchor end.
  • the present application there are many methods for transmitting the control information from the first application to the second application across an application, which may be through a network, through a server of the first application, and the second application.
  • the server is used to implement the cross-application transmission of the anchor side; the method of sharing the memory or the shortcut key triggering may be used to implement the cross-application transmission of the anchor end, which is not limited herein.
  • the named pipe may be first written in the first application, that is, the live broadcast software, for the communication between the live broadcast software and the second application, that is, the game process.
  • the named pipe is through the network to complete the communication between processes, it shields the underlying network protocol details, through the named pipe this paper realizes the communication between the live software and the injection module injected in the game process.
  • the injection module is referred to as a client of a named pipe
  • the anchor software is referred to as a server of a named pipe.
  • step S102 The control information acquired in step S102 is then written into the named pipe by calling the function WriteFile.
  • the client reads the control information sent by the server from the named pipe by calling the function ReadFile.
  • the server of the live broadcast software continuously writes the obtained control information into the named pipe, and the injection module injected into the game process continuously collects the control from the named pipe. Information.
  • the function of injecting the module to the second application may be written in the first application, ie, live broadcast software.
  • step (3) Call the WindowsAPI function CreateRemoteThread function to create a thread in the target process.
  • the execution logic of the thread is to call the Windows API function LoadLibrary to load the disk path of the injection module written in the target process space in step (2). In this way, a thread is opened in the target process, and the injection module is loaded by the thread, thereby implementing the function of injecting the injection module into the target process.
  • step S104 is executed to control the target object displayed in the second application to perform an action corresponding to the control information.
  • the control information when the second application is a game process, may be direction control information for controlling a target object displayed in the second application to move along a direction represented by the control information; The motion control information for controlling the target object displayed in the second application to sit, stand up or run; or the sound control information for controlling the sound of the target object displayed in the second application.
  • the control information may also be video control information for controlling the target video played by the second application to fast forward, pause, or switch the target video, which is not listed here, nor is it made. limit.
  • the cross-application control in the step S104 may be implemented by setting the control information as a shortcut key triggering code, or may be implemented by using the injection module, which is not limited herein.
  • control function can be invoked by the injection module to control execution of the target object.
  • the second application is a game application process
  • the control information is a game character direction control information as an example to illustrate how to control the target object by using an injection module:
  • the function walks to call which function in the game process, and analyzes the parameters of the called walk function for the walking control role of the injection module.
  • the interface that can be provided is: Walk(int dir), where Walk indicates the walking function and the parameter di r indicates the direction of walking.
  • the functions of the injection module are written, including the function of communicating with the named pipe and the function of calling the character walk function in the game process. Since the injection module is pre-injected into the game process and belongs to the same process space as the game process, the function of the game process can be directly called.
  • controlling the walking of the game character is accomplished by invoking a character walk function by the injection module injected into the game process.
  • the control information for controlling the walking of the character is continuously collected through the named pipe.
  • the injection module can directly call the game character walking function that is inversely analyzed before, thereby implementing the function of controlling the walking of the game character according to the control information.
  • the anchor simultaneously starts the game process and the live broadcast software process on the device of the anchor end, the anchor enters the live broadcast room, and the game broadcasts in the live broadcast room, and each viewer entering the live broadcast room can watch the game screen through the live broadcast software opened by the viewer terminal;
  • the anchor selects the audience user A in the live broadcast room as the control audience, and the anchor terminal filters out the barrage information sent by the user A from the barrage of the live broadcast room, and extracts the control information therefrom;
  • the control information extracted from the anchor end is the code corresponding to "control the game character moving forward"
  • the live broadcast process of the anchor end sends the control information to the pre-injection injection module in the game process through a preset named pipe;
  • the injection module calls the game character walking function, and controls the forward movement of the game character according to the control information, so that the user A can control the walking of the character in the game process through the hair bombing to the anchor end in real time, thereby increasing the live broadcast audience of the game.
  • the form of experience enhances the experience.
  • the present application also provides an apparatus corresponding to the cross-application control method in the first embodiment.
  • an apparatus corresponding to the cross-application control method in the first embodiment For details, see Embodiment 2.
  • the embodiment provides a cross-application control device.
  • the device is a main broadcast terminal, and includes:
  • the obtaining module 201 is configured to acquire the barrage information sent by the target user in the first application
  • the extracting module 202 is configured to extract control information from the barrage information according to a preset extraction rule
  • the sending module 203 is configured to send the control information to the second application, where the second application and the first application are both running on the anchor end;
  • the control module 204 is configured to control a target object displayed in the second application to perform an action corresponding to the control information.
  • the anchor end may be an electronic device such as a smart phone, a desktop computer, a notebook, or a tablet computer, and is not limited herein.
  • the device may be an Android system, an IOS system, or a Windows system, and is not limited herein.
  • control information is information for controlling a moving direction; the control module 204 is further configured to: control the target object to move in a direction represented by the control information.
  • the device described in the second embodiment of the present invention is a device for implementing the cross-application control method according to the first embodiment of the present invention. Therefore, based on the method introduced in Embodiment 1 of the present invention, those skilled in the art can understand the specific device. Structure and deformation, so it will not be described here.
  • the apparatus used in the method of the first embodiment of the present invention is within the scope of the present invention.
  • the method and device provided by the embodiment of the present application acquire the barrage information of the target user in the first application, and extract the control information in the barrage information to control the target object of the second application to perform the action, thereby realizing the specified live broadcast.
  • the viewer can perform the corresponding action by transmitting the barrage to the anchor end to control the target object in the game application of the anchor end, thereby increasing the experience form of the game live audience and enhancing the experience effect.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the present invention is directed to a method, apparatus (system), and computer program according to an embodiment of the present invention.
  • the flow chart and/or block diagram of the product is described. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

Disclosed is a cross-application control method applied in a broadcaster terminal, comprising: acquiring overlay comment information transmitted by a target user in a first application; extracting, according to a preset extraction rule, control information from the overlaid comment information; transmitting the control information to a second application, both the second application and the first application being operating on a broadcaster terminal; and controlling a target object displayed in the second application to execute an action corresponding to the control information. The method and device of the present invention can solve a technical problem in the prior art in which an audience has limited participation in a live broadcast game which results in poor audience experience, thereby increasing participation options for an audience of a live broadcast game, and improving audience experience.

Description

一种跨应用控制方法及装置Cross-application control method and device 技术领域Technical field
本发明涉及计算机技术领域,尤其涉及一种跨应用控制方法及装置。The present invention relates to the field of computer technologies, and in particular, to a cross-application control method and apparatus.
背景技术Background technique
目前,随着网络通信技术的进步和宽带网络的提速,网络直播得到了越来越多的发展和应用。同时随着弹幕的发展,使得直播具有更好的互动和趣味性。尤其在游戏直播领域,越来越多的观众会观看游戏主播的直播。At present, with the advancement of network communication technology and the speed of broadband networks, webcasting has been increasingly developed and applied. At the same time, with the development of the barrage, the live broadcast has better interaction and fun. Especially in the field of game live broadcast, more and more viewers will watch the live broadcast of the game anchor.
在游戏直播中,对于主播端,会同时打开直播软件和具体的游戏,主播在玩游戏的同时,直播软件会采集游戏的内容通过网络将该内容推送到直播网站的服务器中。观众则通过直播网站的服务器拉取主播推送的直播内容进行视频播放。对于游戏直播来说,主播通过一边玩游戏一边讲解游戏的玩法,而对于观众来说只能观看和发送弹幕,而不能参与到游戏的过程中,也不能去控制游戏,不能感受游戏的功能体验。In the live broadcast of the game, for the anchor end, the live broadcast software and the specific game will be simultaneously opened. While the anchor plays the game, the live broadcast software collects the content of the game and pushes the content to the server of the live website through the network. The viewer pulls the live content pushed by the anchor through the server of the live website for video playback. For game live broadcast, the anchor broadcasts the gameplay while playing the game. For the viewer, it can only watch and send the barrage, but can't participate in the game, nor can it control the game, and can't feel the function of the game. Experience.
可见,现有技术中的游戏直播,存在观众体验形式单一,体验效果差的技术问题。It can be seen that the game live broadcast in the prior art has a technical problem that the audience experience form is single and the experience effect is poor.
发明内容Summary of the invention
本发明提供一种跨应用控制方法及装置,用以解决现有技术中的游戏直播,存在的观众体验形式单一,体验效果差的技术问题。The invention provides a cross-application control method and device, which is used to solve the game live broadcast in the prior art, and has the technical problem that the audience experience form is single and the experience effect is poor.
第一方面,本发明提供了一种跨应用控制方法,所述方法应用于主播端,包括:In a first aspect, the present invention provides a cross-application control method, where the method is applied to an anchor end, including:
获取第一应用中目标用户发送的弹幕信息;Obtaining the barrage information sent by the target user in the first application;
按照预设的提取规则,从所述弹幕信息中提取出控制信息;Extracting control information from the barrage information according to a preset extraction rule;
发送所述控制信息至第二应用,所述第二应用与所述第一应用均运行在所述主播端;Sending the control information to the second application, where the second application and the first application are both running on the anchor end;
控制所述第二应用中显示的目标对象执行所述控制信息对应的动作。Controlling, by the target object displayed in the second application, an action corresponding to the control information.
可选的,所述控制信息为控制移动方向的信息;所述控制所述第二应用中显示的目标对象执行所述控制信息对应的动作,包括:控制所述目标对象沿所述控制信息表征的方向移动。Optionally, the control information is information for controlling a moving direction; and the controlling the target object displayed in the second application to perform the action corresponding to the control information comprises: controlling the target object to be characterized along the control information The direction of movement.
可选的,所述第一应用为直播应用,所述第二应用为游戏应用,所述第二应用中显示的图像或视频通过所述第一应用发送给与所述主播端连接的观众端。 Optionally, the first application is a live application, the second application is a game application, and an image or video displayed in the second application is sent by the first application to a viewer connected to the anchor end. .
可选的,在所述获取第一应用中目标用户发送的弹幕信息之前,包括:接收作用于所述主播端的选择操作;基于所述选择操作,从与所述主播端连接的用户群中确定出所述目标用户。Optionally, before the acquiring the barrage information sent by the target user in the first application, the method includes: receiving a selection operation that is performed on the anchor end; and, based on the selecting operation, from a user group connected to the anchor end Identify the target user.
可选的,所述获取第一应用中目标用户发送的弹幕信息,包括:获取与所述主播端连接的用户群发送的弹幕信息群;从所述弹幕信息群中过滤出所述目标用户发送的弹幕信息。Optionally, the acquiring the barrage information sent by the target user in the first application includes: acquiring a barrage information group sent by the user group connected to the anchor end; and filtering out the salvage information group from the salvage information group The barrage information sent by the target user.
可选的,所述按照预设的提取规则,从所述弹幕信息中提取出控制信息,包括:按照预设的关键字与控制信息的对应信息,从所述弹幕信息中提取出关键字;根据所述关键字和所述对应信息,确定出与所述关键字对应的所述控制信息。Optionally, the extracting the control information from the barrage information according to the preset extraction rule includes: extracting a key from the barrage information according to the preset keyword and the corresponding information of the control information a word; determining, according to the keyword and the corresponding information, the control information corresponding to the keyword.
可选的,所述发送所述控制信息至第二应用,包括:通过所述第一应用中预设的命名管道将所述控制信息注入注入模块,其中,所述注入模块为预先编写注入所述第二应用的模块。Optionally, the sending the control information to the second application includes: injecting the control information into the injection module by using a named pipe preset in the first application, where the injection module is a pre-written injection The module of the second application.
可选的,所述控制所述第二应用中显示的目标对象执行所述控制信息对应的动作,包括:通过所述注入模块调用控制函数,以控制所述目标对象执行所述控制信息对应的动作,其中,所述控制函数为所述注入模块从所述第二应用中逆向分析获取。Optionally, the controlling the target object displayed in the second application to perform the action corresponding to the control information comprises: calling a control function by using the injection module to control the target object to execute the control information corresponding to An action, wherein the control function is obtained by the injection module from a reverse analysis of the second application.
第二方面,提供一种跨应用控制装置,所述装置为主播端,包括:The second aspect provides a cross-application control device, where the device is a main broadcast terminal, including:
获取模块,用于获取第一应用中目标用户发送的弹幕信息;An obtaining module, configured to acquire the barrage information sent by the target user in the first application;
提取模块,用于按照预设的提取规则,从所述弹幕信息中提取出控制信息;An extraction module, configured to extract control information from the barrage information according to a preset extraction rule;
发送模块,用于发送所述控制信息至第二应用,所述第二应用与所述第一应用均运行在所述主播端;a sending module, configured to send the control information to a second application, where the second application and the first application are both running on the anchor end;
控制模块,用于控制所述第二应用中显示的目标对象执行所述控制信息对应的动作。And a control module, configured to control, by the target object displayed in the second application, an action corresponding to the control information.
可选的,所述控制信息为控制移动方向的信息;所述控制模块还用于:控制所述目标对象沿所述控制信息表征的方向移动。Optionally, the control information is information for controlling a moving direction; and the control module is further configured to: control the target object to move in a direction represented by the control information.
本发明实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
本申请实施例提供的方法及装置,在第一应用中获取目标用户的弹幕信息,并提取出弹幕信息中的控制信息,来控制第二应用的目标对象进行动作,从而实现指定的直播观众可以通过发送弹幕至主播端来跨应用控制主播端的游戏应用中的目标对象执行相应动作,从而增加了游戏直播观众的体验形式,增强了体验效果。The method and device provided by the embodiment of the present application acquire the barrage information of the target user in the first application, and extract the control information in the barrage information to control the target object of the second application to perform the action, thereby realizing the specified live broadcast. The viewer can perform the corresponding action by transmitting the barrage to the anchor end to control the target object in the game application of the anchor end, thereby increasing the experience form of the game live audience and enhancing the experience effect.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术 手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is merely an overview of the technical solution of the present invention, in order to more clearly understand the technology of the present invention. The above and other objects, features, and advantages of the present invention will be apparent from the description and appended claims.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明实施例中跨应用控制方法的流程图;1 is a flowchart of a cross-application control method according to an embodiment of the present invention;
图2为本发明实施例中跨应用控制装置的结构示意图。FIG. 2 is a schematic structural diagram of a cross-application control apparatus according to an embodiment of the present invention.
具体实施方式detailed description
本申请实施例通过提供一种跨应用控制方法及装置,解决了现有技术中的游戏直播,存在的观众体验形式单一,体验效果差的技术问题。实现了增加游戏直播观众的体验形式,增强体验效果的技术效果。The embodiment of the present application solves the technical problem that the game experience is live and the audience experience form is single and the experience is poor, by providing a cross-application control method and device. The technical effect of increasing the experience form of the game live audience and enhancing the experience effect is realized.
本申请实施例中的技术方案,总体思路如下:The general technical idea of the technical solution in the embodiment of the present application is as follows:
获取第一应用中目标用户发送的弹幕信息;按照预设的提取规则,从所述弹幕信息中提取出控制信息;发送所述控制信息至第二应用,所述第二应用与所述第一应用均运行在所述主播端;控制所述第二应用中显示的目标对象执行所述控制信息对应的动作。Obtaining the barrage information sent by the target user in the first application; extracting control information from the barrage information according to a preset extraction rule; transmitting the control information to the second application, the second application and the The first application runs on the anchor end; and controls the target object displayed in the second application to perform an action corresponding to the control information.
上述方法通过在第一应用中获取目标用户的弹幕信息,并提取出弹幕信息中的控制信息,来控制第二应用的目标对象进行动作,从而实现指定的直播观众可以通过发送弹幕至主播端来跨应用控制主播端的游戏应用中的目标对象执行相应动作,从而增加了游戏直播观众的体验形式,增强了体验效果。The above method controls the target object of the second application to perform the action by acquiring the barrage information of the target user in the first application and extracting the control information in the barrage information, thereby realizing that the designated live audience can send the barrage to The anchor end performs corresponding actions on the target object in the game application of the application control anchor on the application side, thereby increasing the experience form of the live audience of the game and enhancing the experience effect.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一Embodiment 1
本实施例提供一种跨应用控制方法,如图1所示,所述方法应用于主播端,包括:The embodiment provides a cross-application control method. As shown in FIG. 1 , the method is applied to the anchor end, and includes:
步骤S101,获取第一应用中目标用户发送的弹幕信息;Step S101, acquiring barrage information sent by the target user in the first application;
步骤S102,按照预设的提取规则,从所述弹幕信息中提取出控制信息; Step S102, extracting control information from the barrage information according to a preset extraction rule;
步骤S103,发送所述控制信息至第二应用,所述第二应用与所述第一应用均运行在所述主播端;Step S103: Send the control information to the second application, where the second application and the first application are both running on the anchor end;
步骤S104,控制所述第二应用中显示的目标对象执行所述控制信息对应的动作。Step S104, controlling a target object displayed in the second application to perform an action corresponding to the control information.
在本申请实施例中,所述主播端可以是智能手机、台式电脑、笔记本或平板电脑等电子设备,在此不作限制。In the embodiment of the present application, the anchor end may be an electronic device such as a smart phone, a desktop computer, a notebook, or a tablet computer, and is not limited herein.
在本申请实施例中,所述主播端可以为Android系统,IOS系统或Windows系统,在此不作限制。In the embodiment of the present application, the anchor end may be an Android system, an IOS system, or a Windows system, and is not limited herein.
在本申请实施例中,所述第一应用为直播软件应用,所述第二应用为游戏软件应用,所述主播端同时运行所述第一应用和所述第二应用。所述第二应用中显示的图像或视频通过所述第一应用发送至与所述主播端连接的各个观众端,以进行游戏直播。当然,在具体实施过程中,所述第二应用也可以是视频播放应用或图片显示应用等,在此不作限制。In the embodiment of the present application, the first application is a live software application, the second application is a game software application, and the anchor end runs the first application and the second application at the same time. The image or video displayed in the second application is sent by the first application to each viewer connected to the anchor end to perform live game play. Of course, in the specific implementation process, the second application may also be a video playing application or a picture display application, and the like, which is not limited herein.
下面结合图1,以所述第一应用为直播软件,所述第二应用为游戏软件为例,对本申请提供的方法的具体实施步骤进行详细说明:The specific implementation steps of the method provided by the present application are described in detail below with reference to FIG. 1 , where the first application is a live broadcast software, and the second application is a game software.
首先,执行步骤S101,获取第一应用中目标用户发送的弹幕信息。First, step S101 is executed to acquire the barrage information sent by the target user in the first application.
在本申请实施例中,所述目标用户的确定方式可以有多种,可以是主播端接收到选择操作,基于所述选择操作,从与所述主播端连接的用户群中确定出所述目标用户;还可以是通过接收与所述主播端连接的观众端发送的信息来确定目标用户。In the embodiment of the present application, the determining manner of the target user may be multiple, and the anchor terminal may receive the selecting operation, and determining the target from the user group connected to the anchor terminal based on the selecting operation. The user may also determine the target user by receiving information sent by the viewer connected to the anchor.
具体来讲,可以是主播通过在直播软件的界面上执行点击等操作,来确定出目标客户,从而有目标客户来控制游戏;还可以是主播端发出一个信号后,接收各观众端返回的报名信息,按报名信息发送的先后顺序来确定目标客户,在具体实施过程中可以根据需要设置目标客户的确定方案,在此不作限制,也不再一一列举。Specifically, the anchor may determine the target client by performing a click operation on the interface of the live broadcast software, so that the target client controls the game; or the anchor end sends a signal, and receives the registration returned by each viewer. The information is determined according to the order in which the registration information is sent. In the specific implementation process, the target customer's determination plan can be set according to the needs, and no restrictions are imposed here.
在本申请实施例中,所述弹幕信息可以是漂浮在视频上的移动的文字或符号信息,也可以是在第一应用界面上独立于视频窗口的另一聊天窗口上显示的文字或符号信息,在此不作限制。In the embodiment of the present application, the barrage information may be moving text or symbol information floating on the video, or may be a text or symbol displayed on another chat window independent of the video window on the first application interface. Information, no restrictions here.
在具体实施过程中,所述获取第一应用中目标用户发送的弹幕信息,包括:In the specific implementation process, the acquiring the barrage information sent by the target user in the first application includes:
获取与所述主播端连接的用户群发送的弹幕信息群;Obtaining a barrage information group sent by a user group connected to the anchor end;
从所述弹幕信息群中过滤出所述目标用户发送的弹幕信息。The barrage information sent by the target user is filtered from the barrage information group.
具体来讲,主播端可以通过第一应用,即直播软件,实时的获取所有的弹幕信息,也可以从所有的弹幕信息中过滤出某一个观众的所有弹幕信息。 Specifically, the anchor end can obtain all the barrage information in real time through the first application, that is, the live broadcast software, and can also filter out all the barrage information of a certain viewer from all the barrage information.
在本申请实施例中,可以在直播软件中编写弹幕过滤功能来过滤出目标用户的弹幕。主播端通过直播软件可以收到直播房间内所有观众用户的弹幕消息,由于每个弹幕消息都包含有弹幕的发送者的信息,故主播确定出目标用户后,可以通过每条弹幕的发送者信息获取到所述目标用户的所有弹幕信息。In the embodiment of the present application, the barrage filtering function can be written in the live broadcast software to filter out the barrage of the target user. The anchor end can receive the barrage message of all the audience users in the live room through the live broadcast software. Since each barrage message contains the information of the sender of the barrage, after the anchor determines the target user, it can pass each barrage. The sender information obtains all the barr information of the target user.
然后,执行步骤S102,按照预设的提取规则,从所述弹幕信息中提取出控制信息。Then, step S102 is executed to extract control information from the barrage information according to a preset extraction rule.
在具体实施过程中,提取控制信息的方法很多,下面列举两种为例:In the specific implementation process, there are many ways to extract control information. Here are two examples:
第一种,预设关键字与控制信息的对应信息。The first type, the corresponding information of the preset keyword and the control information.
即所述按照预设的提取规则,从所述弹幕信息中提取出控制信息,包括:That is, the control information is extracted from the barrage information according to a preset extraction rule, including:
按照预设的关键字与控制信息的对应信息,从所述弹幕信息中提取出关键字;Extracting a keyword from the barrage information according to a preset keyword and corresponding information of the control information;
根据所述关键字和所述对应信息,确定出与所述关键字对应的所述控制信息。Determining the control information corresponding to the keyword according to the keyword and the corresponding information.
具体来讲,以控制信息为方向控制信息为例,主播可以通过预先设置一些关键字表来标示游戏角色的方向控制信息,表格中关键字可以是“左”代表往左走,“右”代表往右走,等。通过获取的所述目标用户的所有弹幕信息,并按照关键字表格,从弹幕信息中检索出所有的方向控制信息。该控制信息就是一系列的行走信息,用于控制后续游戏中角色的行走信息。Specifically, taking the control information as the direction control information as an example, the anchor may indicate the direction control information of the game character by setting some keyword tables in advance. The keywords in the table may be “left” for leftward and “right” for “right”. Go right, wait. All the direction control information is retrieved from the barrage information by acquiring all the barrage information of the target user and according to the keyword table. The control information is a series of walking information for controlling walking information of characters in subsequent games.
例如,预设的对应信息中记录有“右”对应“控制角色向右走”的控制代码,获取的弹幕信息为“去看看右边的山洞”,则按照所述对应信息能查询出弹幕信息中的关键字“右”对应控制信息“控制角色向右走”的控制代码,从而提取出控制信息为:“控制角色向右走”的控制代码。For example, the preset corresponding information records a control code corresponding to “right” corresponding to “control character going to the right”, and the obtained bullet information is “to see the cave on the right side”, and the bullet can be queried according to the corresponding information. The keyword "right" in the screen information corresponds to the control code of the control information "control character to the right", thereby extracting the control code whose control information is "control the character to the right".
第二种,直接提取关键字作为控制信息。Second, the keyword is directly extracted as control information.
具体来讲,以控制信息为方向控制信息为例,可以采用继续学习算法或从数据库查询等方法,直接从所述弹幕信息中提取出与方向相关的字段,作为所述控制信息。Specifically, taking the control information as the direction control information, the direction-related field may be directly extracted from the barrage information as the control information by using a continuous learning algorithm or a method such as querying from a database.
例如,获取的弹幕信息为“去看看右边的山洞”,则可以从弹幕信息中提取方向字段“右”作为所述控制信息。For example, if the obtained bullet information is "to see the cave on the right", the direction field "Right" may be extracted from the barrage information as the control information.
当然,在具体实施过程中,根据需要可以选择不同的控制信息提取方法,在此不作限制。Of course, in the specific implementation process, different control information extraction methods may be selected according to requirements, and are not limited herein.
然后,执行步骤S103,发送所述控制信息至第二应用,所述第二应用与所述第一应用均运行在所述主播端。Then, step S103 is executed to send the control information to the second application, where the second application and the first application are both running on the anchor end.
在本申请实施例中,跨应用将所述控制信息从所述第一应用发送至所述第二应用的方法很多,可以是通过网络,经所述第一应用的服务器和所述第二应 用的服务器转达来实现主播端的跨应用传输;还可以是通过共享内存或快捷键触发等方法来实现主播端的跨应用传输,在此不作限制。In the embodiment of the present application, there are many methods for transmitting the control information from the first application to the second application across an application, which may be through a network, through a server of the first application, and the second application. The server is used to implement the cross-application transmission of the anchor side; the method of sharing the memory or the shortcut key triggering may be used to implement the cross-application transmission of the anchor end, which is not limited herein.
较优的,考虑到对网络资源的节约和加快信息的跨应用传输速度,本实施例采用通过命名管道和注入模块的方式来实现跨应用信息传输。即通过所述第一应用中预设的命名管道将所述控制信息注入注入模块,其中,所述注入模块为预先编写注入所述第二应用的模块。Preferably, in consideration of saving network resources and speeding up the transmission speed of information across applications, the embodiment adopts a method of naming pipes and injecting modules to implement cross-application information transmission. That is, the control information is injected into the injection module by using a named pipe preset in the first application, wherein the injection module is a module that is pre-written to inject the second application.
具体来讲,对于命名管道的建立,可以先在所述第一应用,即直播软件中编写命名管道用于直播软件与所述第二应用,即游戏进程的通信。其中,命名管道是通过网络来完成进程间的通信,它屏蔽了底层的网络协议细节,通过命名管道本文实现了直播软件与游戏进程中注入的注入模块之间的通信。Specifically, for the establishment of the named pipe, the named pipe may be first written in the first application, that is, the live broadcast software, for the communication between the live broadcast software and the second application, that is, the game process. Among them, the named pipe is through the network to complete the communication between processes, it shields the underlying network protocol details, through the named pipe this paper realizes the communication between the live software and the injection module injected in the game process.
在后续描述中,将所述注入模块称为命名管道的客户端,所述主播软件称为命名管道的服务端。首先,在服务端创建一个命名管道,然后等待客户端来连接。一旦编写的注入模块注入到游戏进程中开始运行后,该注入模块会去连接这个命名管道,一旦连接上这个命名管道,那么就可以实现直播软件和游戏中的注入模块进行通信。具体的实现方法如下:In the following description, the injection module is referred to as a client of a named pipe, and the anchor software is referred to as a server of a named pipe. First, create a named pipe on the server and wait for the client to connect. Once the injected injection module is injected into the game process and starts running, the injection module will connect to the named pipe. Once the named pipe is connected, the live software can be communicated with the injection module in the game. The specific implementation method is as follows:
对服务端:For the server:
(1)调用WindowsAPI函数CreateNamedPipe创建命名管道。(1) Create a named pipe by calling the WindowsAPI function CreateNamedPipe.
先对命名管道进行名称设置,可以随意设置一个唯一的名称,不会与系统其他进程的管道重名即可。命名管道的客户端游戏注入模块会通过这个名称来连接该命名管道。First set the name of the named pipe, you can set a unique name at will, and will not be the same as the pipe of other processes in the system. The client game injection module of the named pipe will connect to the named pipe by this name.
(2)通过调用函数ConnectNamedPipe来等待命名管道的客户端连接。(2) Wait for the client connection of the named pipe by calling the function ConnectNamedPipe.
(3)一旦客户端连接上,调用函数ReadFile来读取客户端发送过来的数据,该数据是告诉服务端,客户端已经完成连接可以进行通信等。(3) Once the client is connected, the function ReadFile is called to read the data sent by the client. The data is to tell the server that the client has completed the connection and can communicate.
(4)然后通过调用函数WriteFile往命名管道中写入步骤S102获取的所述控制信息。(4) The control information acquired in step S102 is then written into the named pipe by calling the function WriteFile.
对客户端:For the client:
(1)客户端通过调用函数CreateFile来连接服务端创建的命名管道。命名管道的名称可以为事先定义好的唯一名称。(1) The client connects to the named pipe created by the server by calling the function CreateFile. The name of the named pipe can be a unique name defined in advance.
(2)客户端通过调用函数WaitNamedPipe来等待服务端的响应。(2) The client waits for a response from the server by calling the function WaitNamedPipe.
(3)客户端通过调用函数WriteFile向命名管道中写入数据。(3) The client writes data to the named pipe by calling the function WriteFile.
(4)客户端通过调用函数ReadFile来从命名管道中读取服务端发送的所述控制信息。(4) The client reads the control information sent by the server from the named pipe by calling the function ReadFile.
通过命名管道,直播软件的服务端不断的将获取的所述控制信息写入命名管道中,被注入到游戏进程的所述注入模块则不断的从命名管道中收取所述控 制信息。Through the named pipe, the server of the live broadcast software continuously writes the obtained control information into the named pipe, and the injection module injected into the game process continuously collects the control from the named pipe. Information.
对于所述注入模块的设置,可以在所述第一应用,即直播软件中编写注入模块到所述第二应用,即游戏进程的功能。For the setting of the injection module, the function of injecting the module to the second application, that is, the game process, may be written in the first application, ie, live broadcast software.
具体来讲,可以通过调用Windows系统提供的API函数来将所述注入模块注入到另一个游戏进程中。基本思路是通过Windows系统API函数CreateRemoteThread来在游戏进程中创建一个远程线程(之所以称为远程线程是因为这个线程是直播软件进程在游戏进程中创建的一个线程),通过创建的远程线程去调用系统函数LoadLibrary来加载需要注入到游戏进程的所述注入模块。具体实现如下:Specifically, the injection module can be injected into another game process by calling an API function provided by the Windows system. The basic idea is to create a remote thread in the game process through the Windows system API function CreateRemoteThread (this is called a remote thread because this thread is a thread created by the live software process in the game process), and is called by the created remote thread. The system function LoadLibrary is used to load the injection module that needs to be injected into the game process. The specific implementation is as follows:
(1)通过WindowsAPI函数VirtualAllocEx函数在目标进程的内存空间中分配内存。(1) Allocate memory in the memory space of the target process through the WindowsAPI function VirtualAllocEx function.
(2)通过WindowsAPI函数WriteProcessMemory来将自己编写的需要注入的模块的磁盘路径写入到已经分配的内存中,即步骤(1)中分配的目标进程的内存空间。(2) Write the disk path of the module that needs to be injected by the Windows API function WriteProcessMemory to the allocated memory, that is, the memory space of the target process allocated in step (1).
(3)调用WindowsAPI函数CreateRemoteThread函数来在目标进程中创建一个线程,线程的执行逻辑就是调用WindowsAPI函数LoadLibrary来加载步骤(2)中通过在目标进程空间写入的注入模块的磁盘路径。这样就实现了在目标进程开启一个线程,通过线程来加载所述注入模块,实现了对目标进程注入所述注入模块的功能。(3) Call the WindowsAPI function CreateRemoteThread function to create a thread in the target process. The execution logic of the thread is to call the Windows API function LoadLibrary to load the disk path of the injection module written in the target process space in step (2). In this way, a thread is opened in the target process, and the injection module is loaded by the thread, thereby implementing the function of injecting the injection module into the target process.
通过上述步骤就实现了将所述注入模块注入到游戏进程中的功能,从而为后续应用进程间通信提供了可能。Through the above steps, the function of injecting the injection module into the game process is realized, thereby providing a possibility for subsequent application inter-process communication.
再下来,执行步骤S104,控制所述第二应用中显示的目标对象执行所述控制信息对应的动作。Then, step S104 is executed to control the target object displayed in the second application to perform an action corresponding to the control information.
在本申请实施例中,当所述第二应用为游戏进程时,所述控制信息可以是控制第二应用中显示的目标对象沿所述控制信息表征的方向移动的方向控制信息;也可以是控制第二应用中显示的目标对象坐下、起立或跑动的动作控制信息;还可以是控制第二应用中显示的目标对象发出声音的声音控制信息。当所述第二应用为视频播放应用时,所述控制信息还可以是控制第二应用播放的目标视频快进、暂停或切换目标视频的视频控制信息,在此不再一一列举,也不作限制。In the embodiment of the present application, when the second application is a game process, the control information may be direction control information for controlling a target object displayed in the second application to move along a direction represented by the control information; The motion control information for controlling the target object displayed in the second application to sit, stand up or run; or the sound control information for controlling the sound of the target object displayed in the second application. When the second application is a video playing application, the control information may also be video control information for controlling the target video played by the second application to fast forward, pause, or switch the target video, which is not listed here, nor is it made. limit.
在本申请实施例中,步骤S104中的跨应用进行控制可以是通过设置控制信息为快捷键触发代码的方法来实现,也可以是通过所述注入模块来实现,在此不作限制。In the embodiment of the present application, the cross-application control in the step S104 may be implemented by setting the control information as a shortcut key triggering code, or may be implemented by using the injection module, which is not limited herein.
较优的,可以通过所述注入模块调用控制函数,以控制所述目标对象执行 所述控制信息对应的动作,其中,所述控制函数为所述注入模块从所述第二应用中逆向分析获取。Preferably, the control function can be invoked by the injection module to control execution of the target object. The action corresponding to the control information, wherein the control function is obtained by the injection module from a reverse analysis in the second application.
下面,以所述第二应用为游戏应用进程,所述控制信息为游戏角色方向控制信息为例为例,来说明如何通过注入模块来实现对所述目标对象的控制:In the following, the second application is a game application process, and the control information is a game character direction control information as an example to illustrate how to control the target object by using an injection module:
首先,逆向分析游戏进程中角色行走的函数。First, the function of character walking in the game process is inversely analyzed.
具体来讲,可以去反汇编分析游戏进程中角色行走会调用的函数,具体可以通过Windows提供的动态调试工具WinDbg来动态调试游戏进程,然后通过在游戏中角色各个方向的行走,来找出游戏角色行走会调用到游戏进程中的哪个函数,并且分析出调用的行走函数的参数,供所述注入模块后续控制角色的行走使用。类似的,可以提供的接口是:Walk(int dir),其中,Walk标示行走函数,参数di r,标示行走的方向。通过这个步骤就实现了分析出游戏进程中角色行走的函数功能,从而可以被所述注入模块调用来控制角色的行走。Specifically, you can disassemble and analyze the functions that the character walks in the game process will call. You can use the dynamic debugging tool WinDbg provided by Windows to dynamically debug the game process, and then find the game by walking in all directions of the character in the game. The function walks to call which function in the game process, and analyzes the parameters of the called walk function for the walking control role of the injection module. Similarly, the interface that can be provided is: Walk(int dir), where Walk indicates the walking function and the parameter di r indicates the direction of walking. Through this step, the function function of analyzing the character walking in the game process is realized, so that the injection module can be called to control the walking of the character.
然后,编写所述注入模块的功能,包括与命名管道通信的功能和调用游戏进程中的角色行走函数的功能。由于所述注入模块被预先注入到了游戏进程中,与游戏进程属于同一个进程空间,故可以直接调用游戏进程的函数。Then, the functions of the injection module are written, including the function of communicating with the named pipe and the function of calling the character walk function in the game process. Since the injection module is pre-injected into the game process and belongs to the same process space as the game process, the function of the game process can be directly called.
具体来讲,控制游戏角色的行走都是通过注入到游戏进程中的所述注入模块调用角色行走函数来实现的。所述注入模块在建立与命名管道的通信后,通过命名管道不断的收取控制角色行走的控制信息。收到控制信息后,所述注入模块可以直接调用之前逆向分析出来的游戏角色行走函数,从而实现了按照所述控制信息控制游戏角色行走的功能。Specifically, controlling the walking of the game character is accomplished by invoking a character walk function by the injection module injected into the game process. After the communication module establishes communication with the named pipe, the control information for controlling the walking of the character is continuously collected through the named pipe. After receiving the control information, the injection module can directly call the game character walking function that is inversely analyzed before, thereby implementing the function of controlling the walking of the game character according to the control information.
为了便于理解,下面从人机交互的角度,以一具体控制实例来对本申请提供的方法进行说明:For ease of understanding, the method provided by the present application is explained by a specific control example from the perspective of human-computer interaction:
首先,主播在主播端的设备上同时开启游戏进程和直播软件进程,主播进入直播间,在直播间内进行游戏直播,进入该直播间的各个观众能通过自己观众端开启的直播软件观看游戏画面;First, the anchor simultaneously starts the game process and the live broadcast software process on the device of the anchor end, the anchor enters the live broadcast room, and the game broadcasts in the live broadcast room, and each viewer entering the live broadcast room can watch the game screen through the live broadcast software opened by the viewer terminal;
然后,主播选择直播间内的观众用户A作为控制观众,则主播端会从直播间的弹幕中过滤出用户A发送的弹幕信息,并从中提取出控制信息;Then, the anchor selects the audience user A in the live broadcast room as the control audience, and the anchor terminal filters out the barrage information sent by the user A from the barrage of the live broadcast room, and extracts the control information therefrom;
当用户A通过弹幕发送“往前走”的弹幕信息时,主播端从中提取出的控制信息为“控制游戏角色往前走”对应的代码;When the user A sends the "going forward" barrage information through the barrage, the control information extracted from the anchor end is the code corresponding to "control the game character moving forward";
主播端的直播进程通过预设的命名管道将控制信息发送至游戏进程中预先注入的注入模块;The live broadcast process of the anchor end sends the control information to the pre-injection injection module in the game process through a preset named pipe;
注入模块调用游戏角色行走函数,按照所述控制信息来控制游戏角色的向前移动,从而实现用户A能实时通过发弹幕至主播端来控制游戏进程中角色的行走,从而增加了游戏直播观众的体验形式,增强了体验效果。 The injection module calls the game character walking function, and controls the forward movement of the game character according to the control information, so that the user A can control the walking of the character in the game process through the hair bombing to the anchor end in real time, thereby increasing the live broadcast audience of the game. The form of experience enhances the experience.
基于同一发明构思,本申请还提供了与实施例一中跨应用控制方法对应的装置,详见实施例二。Based on the same inventive concept, the present application also provides an apparatus corresponding to the cross-application control method in the first embodiment. For details, see Embodiment 2.
实施例二Embodiment 2
本实施例提供了一种跨应用控制装置,如图2所示,所述装置为主播端,包括:The embodiment provides a cross-application control device. As shown in FIG. 2, the device is a main broadcast terminal, and includes:
获取模块201,用于获取第一应用中目标用户发送的弹幕信息;The obtaining module 201 is configured to acquire the barrage information sent by the target user in the first application;
提取模块202,用于按照预设的提取规则,从所述弹幕信息中提取出控制信息;The extracting module 202 is configured to extract control information from the barrage information according to a preset extraction rule;
发送模块203,用于发送所述控制信息至第二应用,所述第二应用与所述第一应用均运行在所述主播端;The sending module 203 is configured to send the control information to the second application, where the second application and the first application are both running on the anchor end;
控制模块204,用于控制所述第二应用中显示的目标对象执行所述控制信息对应的动作。The control module 204 is configured to control a target object displayed in the second application to perform an action corresponding to the control information.
在本申请实施例中,所述主播端可以是智能手机、台式电脑、笔记本或平板电脑等电子设备,在此不作限制。In the embodiment of the present application, the anchor end may be an electronic device such as a smart phone, a desktop computer, a notebook, or a tablet computer, and is not limited herein.
在本申请实施例中,所述装置可以为Android系统,IOS系统或Windows系统,在此不作限制。In the embodiment of the present application, the device may be an Android system, an IOS system, or a Windows system, and is not limited herein.
在本申请实施例中,所述控制信息为控制移动方向的信息;所述控制模块204还用于:控制所述目标对象沿所述控制信息表征的方向移动。In the embodiment of the present application, the control information is information for controlling a moving direction; the control module 204 is further configured to: control the target object to move in a direction represented by the control information.
由于本发明实施例二所介绍的装置,为实施本发明实施例一的跨应用控制方法所采用的装置,故而基于本发明实施例一所介绍的方法,本领域所属人员能够了解该装置的具体结构及变形,故而在此不再赘述。凡是本发明实施例一的方法所采用的装置都属于本发明所欲保护的范围。The device described in the second embodiment of the present invention is a device for implementing the cross-application control method according to the first embodiment of the present invention. Therefore, based on the method introduced in Embodiment 1 of the present invention, those skilled in the art can understand the specific device. Structure and deformation, so it will not be described here. The apparatus used in the method of the first embodiment of the present invention is within the scope of the present invention.
本申请实施例中提供的技术方案,至少具有如下技术效果或优点:The technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
本申请实施例提供的方法及装置,在第一应用中获取目标用户的弹幕信息,并提取出弹幕信息中的控制信息,来控制第二应用的目标对象进行动作,从而实现指定的直播观众可以通过发送弹幕至主播端来跨应用控制主播端的游戏应用中的目标对象执行相应动作,从而增加了游戏直播观众的体验形式,增强了体验效果。The method and device provided by the embodiment of the present application acquire the barrage information of the target user in the first application, and extract the control information in the barrage information to control the target object of the second application to perform the action, thereby realizing the specified live broadcast. The viewer can perform the corresponding action by transmitting the barrage to the anchor end to control the target object in the game application of the anchor end, thereby increasing the experience form of the game live audience and enhancing the experience effect.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产 品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is directed to a method, apparatus (system), and computer program according to an embodiment of the present invention. The flow chart and/or block diagram of the product is described. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While the preferred embodiment of the invention has been described, it will be understood that Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the embodiments of the invention without departing from the spirit and scope of the embodiments of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the embodiments of the invention.

Claims (10)

  1. 一种跨应用控制方法,其特征在于,所述方法应用于主播端,包括:A cross-application control method is characterized in that the method is applied to an anchor end, and includes:
    获取第一应用中目标用户发送的弹幕信息;Obtaining the barrage information sent by the target user in the first application;
    按照预设的提取规则,从所述弹幕信息中提取出控制信息;Extracting control information from the barrage information according to a preset extraction rule;
    发送所述控制信息至第二应用,所述第二应用与所述第一应用均运行在所述主播端;Sending the control information to the second application, where the second application and the first application are both running on the anchor end;
    控制所述第二应用中显示的目标对象执行所述控制信息对应的动作。Controlling, by the target object displayed in the second application, an action corresponding to the control information.
  2. 如权利要求1所述的方法,其特征在于:The method of claim 1 wherein:
    所述控制信息为控制移动方向的信息;The control information is information for controlling a moving direction;
    所述控制所述第二应用中显示的目标对象执行所述控制信息对应的动作,包括:控制所述目标对象沿所述控制信息表征的方向移动。The controlling the target object displayed in the second application to perform the action corresponding to the control information comprises: controlling the target object to move in a direction represented by the control information.
  3. 如权利要求1所述的方法,其特征在于,所述第一应用为直播应用,所述第二应用为游戏应用,所述第二应用中显示的图像或视频通过所述第一应用发送给与所述主播端连接的观众端。The method of claim 1, wherein the first application is a live application, the second application is a game application, and an image or video displayed in the second application is sent by the first application to A viewer connected to the anchor.
  4. 如权利要求1所述的方法,其特征在于,在所述获取第一应用中目标用户发送的弹幕信息之前,包括:The method of claim 1, wherein before the obtaining the barrage information sent by the target user in the first application, the method comprises:
    接收作用于所述主播端的选择操作;Receiving a selection operation acting on the anchor end;
    基于所述选择操作,从与所述主播端连接的用户群中确定出所述目标用户。Based on the selection operation, the target user is determined from a group of users connected to the anchor end.
  5. 如权利要求1所述的方法,其特征在于,所述获取第一应用中目标用户发送的弹幕信息,包括:The method of claim 1, wherein the obtaining the barrage information sent by the target user in the first application comprises:
    获取与所述主播端连接的用户群发送的弹幕信息群;Obtaining a barrage information group sent by a user group connected to the anchor end;
    从所述弹幕信息群中过滤出所述目标用户发送的弹幕信息。The barrage information sent by the target user is filtered from the barrage information group.
  6. 如权利要求1所述的方法,其特征在于,所述按照预设的提取规则,从所述弹幕信息中提取出控制信息,包括:The method of claim 1, wherein the extracting control information from the barrage information according to a preset extraction rule comprises:
    按照预设的关键字与控制信息的对应信息,从所述弹幕信息中提取出关键字;Extracting a keyword from the barrage information according to a preset keyword and corresponding information of the control information;
    根据所述关键字和所述对应信息,确定出与所述关键字对应的所述控制信息。Determining the control information corresponding to the keyword according to the keyword and the corresponding information.
  7. 如权利要求1所述的方法,其特征在于,所述发送所述控制信息至第二应用,包括:The method of claim 1, wherein the transmitting the control information to the second application comprises:
    通过所述第一应用中预设的命名管道将所述控制信息注入注入模块,其中,所述注入模块为预先编写注入所述第二应用的模块。The control information is injected into the injection module by a named pipe preset in the first application, wherein the injection module is a module that is pre-written to inject the second application.
  8. 如权利要求6所述的方法,其特征在于,所述控制所述第二应用中显示 的目标对象执行所述控制信息对应的动作,包括:The method of claim 6 wherein said controlling said display in said second application The target object performs the action corresponding to the control information, including:
    通过所述注入模块调用控制函数,以控制所述目标对象执行所述控制信息对应的动作,其中,所述控制函数为所述注入模块从所述第二应用中逆向分析获取。The control function is invoked by the injection module to control the target object to perform an action corresponding to the control information, wherein the control function is obtained by the injection module from a reverse analysis in the second application.
  9. 一种跨应用控制装置,其特征在于,所述装置为主播端,包括:A cross-application control device, wherein the device is a main broadcast terminal, and includes:
    获取模块,用于获取第一应用中目标用户发送的弹幕信息;An obtaining module, configured to acquire the barrage information sent by the target user in the first application;
    提取模块,用于按照预设的提取规则,从所述弹幕信息中提取出控制信息;An extraction module, configured to extract control information from the barrage information according to a preset extraction rule;
    发送模块,用于发送所述控制信息至第二应用,所述第二应用与所述第一应用均运行在所述主播端;a sending module, configured to send the control information to a second application, where the second application and the first application are both running on the anchor end;
    控制模块,用于控制所述第二应用中显示的目标对象执行所述控制信息对应的动作。And a control module, configured to control, by the target object displayed in the second application, an action corresponding to the control information.
  10. 如权利要求9所述的装置,其特征在于,所述控制信息为控制移动方向的信息;所述控制模块还用于:控制所述目标对象沿所述控制信息表征的方向移动。 The apparatus according to claim 9, wherein said control information is information for controlling a moving direction; and said control module is further configured to: control said target object to move in a direction characterized by said control information.
PCT/CN2017/107853 2017-02-16 2017-10-26 Cross-application control method and device WO2018149170A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710083879.4 2017-02-16
CN201710083879.4A CN108449643B (en) 2017-02-16 2017-02-16 Cross-application control method and device

Publications (1)

Publication Number Publication Date
WO2018149170A1 true WO2018149170A1 (en) 2018-08-23

Family

ID=63169142

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/107853 WO2018149170A1 (en) 2017-02-16 2017-10-26 Cross-application control method and device

Country Status (2)

Country Link
CN (1) CN108449643B (en)
WO (1) WO2018149170A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770356A (en) * 2020-07-23 2020-10-13 网易(杭州)网络有限公司 Interaction method and device based on live game

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115119048B (en) * 2019-08-10 2024-02-23 荣耀终端有限公司 Video stream processing method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103384348A (en) * 2013-05-29 2013-11-06 深圳市艾龙电子有限公司 Implementation method of GINGA digital television middleware on embedded type digital television platforms
CN105916047A (en) * 2016-05-17 2016-08-31 武汉斗鱼网络科技有限公司 Game operating method and device based on bullet screen control
CN105959813A (en) * 2016-05-30 2016-09-21 武汉斗鱼网络科技有限公司 Method and device for controlling shortcut key setting based on game live broadcast bullet screen

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10345897B2 (en) * 2015-06-30 2019-07-09 Amazon Technologies, Inc. Spectator interactions with games in a specatating system
CN105435453B (en) * 2015-12-22 2019-02-19 网易(杭州)网络有限公司 A kind of barrage information processing method, device and system
CN105828210A (en) * 2016-03-15 2016-08-03 武汉斗鱼网络科技有限公司 Bullet screen based song-on-demand method and device
CN105933785A (en) * 2016-05-23 2016-09-07 武汉斗鱼网络科技有限公司 Method and device for controlling game operation direction with live commenting

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103384348A (en) * 2013-05-29 2013-11-06 深圳市艾龙电子有限公司 Implementation method of GINGA digital television middleware on embedded type digital television platforms
CN105916047A (en) * 2016-05-17 2016-08-31 武汉斗鱼网络科技有限公司 Game operating method and device based on bullet screen control
CN105959813A (en) * 2016-05-30 2016-09-21 武汉斗鱼网络科技有限公司 Method and device for controlling shortcut key setting based on game live broadcast bullet screen

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770356A (en) * 2020-07-23 2020-10-13 网易(杭州)网络有限公司 Interaction method and device based on live game

Also Published As

Publication number Publication date
CN108449643A (en) 2018-08-24
CN108449643B (en) 2020-01-03

Similar Documents

Publication Publication Date Title
CN111596985B (en) Interface display method, device, terminal and medium in multimedia conference scene
JP6384474B2 (en) Information processing apparatus and information processing method
US10897637B1 (en) Synchronize and present multiple live content streams
KR20220127887A (en) Method and apparatus for displaying live broadcast data, device and storage medium
US20140280603A1 (en) User attention and activity in chat systems
CN110326290A (en) It is watched while live content and the content of recording
CN105872810A (en) Media content sharing method and device
CN107659850B (en) Media information processing method and device
CN110703913A (en) Object interaction method and device, storage medium and electronic device
EP4376423A1 (en) Virtual object interaction method and device, and storage medium and computer program product
WO2023019982A1 (en) Same-screen interaction control method and apparatus, and electronic device and storage medium
CN112732152A (en) Live broadcast processing method and device, electronic equipment and storage medium
WO2018149170A1 (en) Cross-application control method and device
CN112423143A (en) Live broadcast message interaction method and device and storage medium
KR20220041791A (en) Method for processing live broadcast information, apparatus, device, storage medium and computer program
CN111770388B (en) Content processing method, device, equipment and storage medium
CN112711368A (en) Operation guidance method and device and electronic equipment
US20230215090A1 (en) Method and system for displaying virtual space at various point-in-times
CN114884914B (en) Application program on-screen communication method and system
CN115695355A (en) Data sharing method and device, electronic equipment and medium
CN113891135B (en) Multimedia data playing method and device, electronic equipment and storage medium
CN114760520A (en) Live small and medium video shooting interaction method, device, equipment and storage medium
CN113132808B (en) Video generation method and device and computer readable storage medium
CN113992882A (en) Packet processing method and device for multi-person conversation, electronic device and storage medium
CN113144606A (en) Skill triggering method of virtual object and related equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17896755

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17896755

Country of ref document: EP

Kind code of ref document: A1