CN114501040B - Live video stream acquisition method, device, equipment and storage medium - Google Patents

Live video stream acquisition method, device, equipment and storage medium Download PDF

Info

Publication number
CN114501040B
CN114501040B CN202011273323.XA CN202011273323A CN114501040B CN 114501040 B CN114501040 B CN 114501040B CN 202011273323 A CN202011273323 A CN 202011273323A CN 114501040 B CN114501040 B CN 114501040B
Authority
CN
China
Prior art keywords
game
live
target
server
live broadcast
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202011273323.XA
Other languages
Chinese (zh)
Other versions
CN114501040A (en
Inventor
彭澎
高晓宇
战男
仇将炜
屈宏
张野
庞博然
胥晓欢
苏琳涵
张易
莫小卿
陈鹏举
马梓扬
廖韬
吴光宇
彭自强
唐瞻立
杨子聪
文婷
刘用飞
卜立军
杨博
方允福
彭建华
刘鸣轩
杨国谦
杨光
杨帆
李涵
姜巍
刘洋
姜波
马艳岭
李峰
何竞
涂袁志
周博
许坤泓
谢永盛
周煜
何玫峻
时永方
容琨锋
于帆
张泽楷
周文豪
黄润佳
廖绪磷
徐飞
向灿辉
肖建
练绍兵
周晓鹏
高业权
段远宏
李丙雨
左曾旭衡
万创辉
沈飞
王兴宇
张沫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011273323.XA priority Critical patent/CN114501040B/en
Publication of CN114501040A publication Critical patent/CN114501040A/en
Application granted granted Critical
Publication of CN114501040B publication Critical patent/CN114501040B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user 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/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • H04N21/4751End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data for defining user accounts, e.g. accounts for children
    • 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/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8352Generation of protective data, e.g. certificates involving content or source identification data, e.g. Unique Material Identifier [UMID]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Graphics (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Child & Adolescent Psychology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for acquiring live video streams. The method comprises the following steps: acquiring a game live broadcast request sent by a main broadcasting terminal; based on the game live broadcast request, sending a video restoration instruction carrying game identifications of a main play game account number and a target game to a video restoration server, wherein the video restoration server is used for acquiring a game operation instruction stream based on the game identifications of the main play game account number and the target game, generating a live broadcast video stream based on the game operation instruction stream, and sending the live broadcast video stream to a social server; and transmitting the live video stream transmitted by the video restoration server to the live participation terminal. Based on the process, the transmission of the live video stream does not need to consume the flow of the anchor terminal, thereby being beneficial to ensuring the performance of the anchor terminal and improving the stability of the live game; the live video stream generated according to the game operation instruction stream does not contain other redundant information except game pictures, thereby being beneficial to protecting the privacy of users and improving the safety of game live broadcast.

Description

Live video stream acquisition method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for acquiring a live video stream.
Background
With the development of computer technology, live platforms support diversified live content, such as game live. In the process of realizing the live game, the server firstly acquires the live video stream, and then distributes the acquired live video stream to the audience terminal for live game.
In the related art, a main broadcasting terminal records a screen displaying a game picture by using a screen recording component, and then transmits a live video stream obtained by recording to a server.
In the process, the live video stream acquired by the server is sent by the anchor terminal, the traffic consumption of the anchor terminal is large, and the stability of the live game is poor; in addition, the live video stream is obtained by recording the whole screen of the anchor terminal, and besides recording the game picture, more redundant information (such as notification information of the terminal and the like) is recorded, so that the user privacy is easy to reveal, and the safety of the game live broadcast is lower.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for acquiring live video streams, which can improve the stability and safety of live games. The technical scheme is as follows:
In one aspect, an embodiment of the present application provides a method for acquiring a live video stream, where the method is applied to a social server, and the method includes:
acquiring a game live broadcast request sent by a main broadcasting terminal, wherein the game live broadcast request carries a main broadcasting game account number and a game identifier of a target game;
based on the game live broadcast request, sending a video restoration instruction carrying game identifications of the main play game account number and the target game to a video restoration server, wherein the video restoration server is used for acquiring a game operation instruction stream based on the game identifications of the main play game account number and the target game, generating a live broadcast video stream based on the game operation instruction stream, and sending the live broadcast video stream to the social server; the game operation instruction stream is used for indicating a game operation instruction generated by a participated object of target competition corresponding to the main game account;
and sending the live video stream sent by the video restoration server to a live participation terminal.
The invention also provides a method for acquiring the live video stream, which is applied to the anchor terminal and comprises the following steps:
acquiring a target instruction initiated by a main broadcasting object to live a target game on a target live platform, wherein the target live platform is provided by a social application program;
Responding to the verification of the target instruction, sending a game live broadcast request to the social server, wherein the game live broadcast request carries a main play game account number and a game identifier of the target game, and the social server is used for providing service for the target live broadcast platform;
the social server is used for sending a video restoration instruction carrying the game identifications of the main play game account number and the target game to a video restoration server based on the game live broadcast request, acquiring a live broadcast video stream sent by the video restoration server, wherein the live broadcast video stream is generated by the video restoration server based on a reference game operation instruction stream, and the reference game operation instruction stream is acquired based on the game identifications of the main play game account number and the target game.
The invention also provides a method for acquiring the live video stream, which is applied to the video restoration server and comprises the following steps:
receiving a video restoration instruction carrying a game identifier of a host game account and a target game, which is sent by a social server;
determining a server of the target game based on a game identifier of the target game, sending a game operation instruction stream acquisition request carrying the main game account to the server of the target game, wherein the server of the target game is used for determining target athletic fight corresponding to the main game account, returning a game operation instruction stream generated in the target athletic fight to the video restoration server, and the game operation instruction stream is used for indicating a game operation instruction generated by a participated object of the target athletic fight;
Generating a live video stream based on a game operation instruction stream returned by the server of the target game;
and sending the live video stream to the social server.
In another aspect, an apparatus for acquiring a live video stream is provided, where the apparatus includes:
the acquisition unit is used for acquiring a game live broadcast request sent by the main broadcasting terminal, wherein the game live broadcast request carries a main broadcasting game account number and a game identifier of a target game;
the sending unit is used for sending a video restoration instruction carrying the game identifications of the main play game account number and the target game to a video restoration server based on the game live broadcast request, wherein the video restoration server is used for obtaining a game operation instruction stream based on the game identifications of the main play game account number and the target game, generating a live video stream based on the game operation instruction stream and sending the live video stream to the social server; the game operation instruction stream is used for indicating a game operation instruction generated by a participated object of target competition corresponding to the main game account;
the sending unit is further configured to send the live video stream sent by the video restoration server to a live participation terminal.
The device for acquiring the live video stream comprises:
the acquisition unit is used for acquiring a target instruction initiated by a main broadcasting object to live a target game on a target live platform, wherein the target live platform is provided by a social application program;
the sending unit is used for responding to the verification of the target instruction and sending a game live broadcast request to the social server, wherein the game live broadcast request carries a main broadcasting game account number and a game identifier of the target game, and the social server is used for providing service for the target live broadcast platform;
the social server is used for sending a video restoration instruction carrying the game identifications of the main play game account number and the target game to a video restoration server based on the game live broadcast request, acquiring a live broadcast video stream sent by the video restoration server, wherein the live broadcast video stream is generated by the video restoration server based on a reference game operation instruction stream, and the reference game operation instruction stream is acquired based on the game identifications of the main play game account number and the target game.
The device for acquiring the live video stream comprises:
The receiving unit is used for receiving a video restoration instruction which is sent by the social server and carries the game identification of the main game account and the target game;
the sending unit is used for determining a server of the target game based on the game identifier of the target game, sending a game operation instruction stream acquisition request carrying the main play game account to the server of the target game, wherein the server of the target game is used for determining target competition fight corresponding to the main play game account, returning a game operation instruction stream generated in the target competition fight to the video restoration server, and the game operation instruction stream is used for indicating a game operation instruction generated by a participator of the target competition fight;
the generation unit is used for generating a live video stream based on a game operation instruction stream returned by the server of the target game;
the sending unit is further configured to send the live video stream to the social server.
In another aspect, a computer device is provided, where the computer device includes a processor and a memory, where the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor, so as to implement the method for acquiring a live video stream as described in any one of the foregoing.
In another aspect, there is further provided a computer readable storage medium, where at least one computer program is stored, where the at least one computer program is loaded and executed by a processor, so as to implement any one of the above-mentioned methods for acquiring a live video stream.
In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs any of the above-described acquisition methods of live video streams.
The technical scheme provided by the embodiment of the application at least brings the following beneficial effects:
in the embodiment of the application, the live video stream is generated by the video restoration server according to the game operation instruction stream, and is sent to the social server by the video restoration server. Based on the process, the transmission of the live video stream does not need to consume the flow of the anchor terminal, thereby being beneficial to ensuring the performance of the anchor terminal and improving the stability of the live game; in addition, the live video stream generated according to the game operation instruction stream does not contain other redundant information except game pictures, so that the user privacy is protected, and the safety of game live broadcast is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an implementation environment of a method for acquiring a live video stream according to an embodiment of the present application;
fig. 2 is a flowchart of a method for acquiring a live video stream according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an interface in a process of acquiring a first instruction according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a display interface of an application program of a target game according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a display interface of an application program of a target game according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a display interface of an application program of a target game according to an embodiment of the present application;
fig. 7 is a schematic diagram of a process of acquiring a live account by a hosting terminal according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a display interface of a social application provided in an embodiment of the present application;
fig. 9 is a schematic diagram of a target live room corresponding to a live account of a main broadcast according to an embodiment of the present application;
fig. 10 is a schematic diagram of a process for implementing live game according to an embodiment of the present application;
fig. 11 is a schematic diagram of a live pendant according to an embodiment of the present application;
FIG. 12 is a schematic diagram of a display interface of an application program of a target game according to an embodiment of the present application;
fig. 13 is a schematic diagram of an acquisition device for a live video stream according to an embodiment of the present application;
fig. 14 is a schematic diagram of an acquisition device for a live video stream according to an embodiment of the present application;
fig. 15 is a schematic diagram of an acquisition device for a live video stream according to an embodiment of the present application;
fig. 16 is a schematic diagram of an acquisition device for a live video stream according to an embodiment of the present application;
fig. 17 is a schematic diagram of an acquisition device for a live video stream according to an embodiment of the present application;
fig. 18 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 19 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and in the claims of the present application are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
An embodiment of the present application provides a method for acquiring a live video stream, please refer to fig. 1, which is a schematic diagram illustrating an implementation environment of the method for acquiring a live video stream provided in the embodiment of the present application. The implementation environment comprises: a anchor terminal 11, a social server 12 and a video restoration server 13.
The hosting terminal 11 is provided with a social application program capable of providing a target live platform and an application program of a target game, and when a hosting object needs to live a target game on the target live platform, the method provided by the embodiment of the application can be applied to obtain a live video stream. The social server 12 is configured to provide services for the target live platform, and the social server 12 can obtain a live game request sent by the hosting terminal 11, and then send a video restoration instruction to the video restoration server 13 based on the live game request.
The video restoration server 13 is configured to receive a video restoration instruction sent by the social server, then acquire a live video stream based on the video restoration instruction, and send the acquired live video stream to the social server 12. The social server 12 can also send the live video stream sent by the video restoration server to the live participant terminal, so as to realize live game play.
In one possible implementation, the anchor terminal 11 is any electronic product that can interact with a user by one or more of a keyboard, a touch pad, a touch screen, a remote control, a voice interaction, or a handwriting device, such as a PC (Personal Computer ), a mobile phone, a smart phone, a PDA (Personal Digital Assistant, a personal digital assistant), a wearable device, a palm top computer PPC (Pocket PC), a tablet computer, a smart car machine, a smart television, a smart sound box, etc. The social server 12 is a server, or a server cluster composed of a plurality of servers, or a cloud computing service center. The video restoration server 13 is a server, or a server cluster composed of a plurality of servers, or a cloud computing service center. The anchor terminal 11 establishes a communication connection with the social server 12 through a wired or wireless network. The social server 12 establishes a communication connection with the video restoration server 13 through a wired or wireless network.
It should be understood by those skilled in the art that the above-described anchor terminal 11, social server 12 and video restore server 13 are only examples, and that other anchor terminals, social servers or video restore servers, as may be present or hereafter present, are also within the scope of the present application and are incorporated herein by reference.
Based on the implementation environment shown in fig. 1, the embodiment of the present application provides a method for acquiring a live video stream, which is applied to an interaction process of the anchor terminal 11, the social server 12 and the video restoration server 13. As shown in fig. 2, the method provided in the embodiment of the present application includes the following steps:
in step 201, a hosting terminal obtains a target instruction initiated by a hosting object to live a target game on a target live platform, where the target live platform is provided by a social application.
The anchor terminal refers to a terminal of an anchor object, and the anchor object refers to an object which needs to play live games. The target live platform refers to a platform provided by a social application program and capable of playing live games. In an exemplary embodiment, providing the target live platform is one of a plurality of functions provided by the social application, and the social application can provide instant messaging functions and the like in addition to being able to provide the target live platform. In the embodiment of the application, a server for providing services for a target live platform is called a social server. It should be noted that, the social server may provide services for all functions provided by the social application, or may provide services only for the target live platform provided by the social application, which is not limited in this embodiment of the present application.
The target game refers to any game that can be live. The embodiment of the present application is not limited to the type of the target game, and the target game is, for example, any one of a Third Person Shooter (TPS) game, a First Person Shooter (FPS) game, a multiplayer online tactical competition (Multiplayer Online Battle Arena, MOBA) game, a multiplayer gunfight survival game, and the like.
The target instruction is used for indicating that the host target wants to live the target game on the target live platform. Target instructions include, but are not limited to, the following two cases:
case 1: the target instruction is a first instruction initiated in the social application.
In one possible implementation, when the target instruction is a first instruction initiated in a social application program for providing a target live platform, the process of acquiring a target instruction initiated by a host object to live a target game on the target live platform is as follows: the method comprises the steps that a live broadcast terminal displays a live broadcast initiation entrance in an operation interface of a target live broadcast platform provided by a social application program; based on a trigger instruction of the live broadcast initiation portal, jumping to a live broadcast type selection interface; jumping to a game live broadcast confirmation interface based on a confirmation instruction of the game live broadcast type in the live broadcast type selection interface; based on a confirmation instruction of a target game in a game live confirmation interface, a first instruction of a main broadcasting object for live broadcasting the target game on a target live broadcasting platform, which is initiated in a social application program for providing the target live broadcasting platform, is obtained.
In an exemplary embodiment, the operation interface of the target live platform provided by the social application is used to display information related to the live object on the target live platform, for example, information related to the live object on the target live platform includes, but is not limited to, information browsed by the live object on the target live platform and information related to a live account number of the live object itself. The information browsed by the host broadcast object on the target live broadcast platform comprises but is not limited to live broadcast account numbers, praise dynamic states, collection dynamic states, messages and the like which are concerned by the host broadcast object; related information of the live account of the host object itself includes, but is not limited to, live account, number of people of interest, head portrait, messaging, functionality controls (e.g., publishing new dynamics, live launch entry), etc.
For example, a schematic diagram of an interface in the process of acquiring the first instruction is shown in fig. 3. Shown in fig. 3 (1) is an operation interface 31 of the target live platform provided by the social application, and in the operation interface 31, a live broadcast initiation portal 311 is displayed. When the trigger operation of the main broadcasting object on the live broadcasting initiation portal 311 is detected, a trigger instruction of the live broadcasting initiation portal 311 is acquired, and the live broadcasting type selection interface 32 as shown in (2) in fig. 3 is jumped to. In the live type selection interface 32, there are displayed alternative live types and live information to be configured (e.g., cover, live description, location, etc.).
When detecting the selection operation of the main broadcasting object on the game live broadcasting type 321 in the live broadcasting type selection interface 32 and acquiring the triggering operation of the start live broadcasting button 322, acquiring a determination instruction of the game live broadcasting type in the live broadcasting type selection interface; then, the process jumps to a live game confirmation interface 33 as shown in (3) in fig. 3, a game to be live can be selected in the live game confirmation interface 33, and when a selection operation of the main broadcasting object on the target game 331 is detected and a trigger operation of the "start live" button 332 is acquired, a confirmation instruction of the target game in the live game confirmation interface is obtained. Based on a confirmation instruction of a target game in a game live broadcast confirmation interface, a first instruction of a main broadcasting object for live broadcasting the target game on a target live broadcasting platform initiated by the main broadcasting object on the target live broadcasting platform is obtained. It should be noted that, in the live game confirmation interface 33, a cover, a live description, a location, and the like configured in the live type selection interface 32 can also be displayed for viewing or changing by the host object.
Case 2: the target instruction is a second instruction initiated in the application of the target game.
In one possible implementation manner, when the target instruction is a second instruction initiated in the application program of the target game, the process of obtaining the target instruction initiated by the main broadcasting object to live the target game on the target live platform is as follows: the method comprises the steps that a main broadcasting terminal displays a live broadcasting initiation entrance for indicating live broadcasting on a target live broadcasting platform in a display interface of an application program of a target game; based on the trigger instruction of the live broadcast initiation entrance, a second instruction of the host broadcast object for directly broadcasting the target game on the target live broadcast platform initiated in the application program of the target game is obtained.
For example, in the display interface 41 of the application program of the target game shown in fig. 4, a live broadcast initiation portal 411 for instructing live broadcast on the target live broadcast platform is presented. When the trigger operation of the live broadcast initiation portal 411 by the host object is detected, a trigger instruction of the live broadcast initiation portal is obtained, and then a second instruction of the host object for live broadcasting the target game on the target live broadcast platform initiated in the application program of the target game is obtained based on the trigger instruction of the live broadcast initiation portal. It should be noted that, the live broadcast initiation portal for indicating live broadcast on the target live broadcast platform may be set in one or more display interfaces of the application program of the target game, which may be flexibly adjusted according to the requirement, which is not limited in the embodiment of the present application.
In one possible implementation manner, when a game account logged in an application program of a target game has qualification of live broadcasting on a target live broadcasting platform, displaying a live broadcasting initiation entrance for indicating live broadcasting on the target live broadcasting platform on a display interface; if the game account number logged in the application program of the target game does not have the qualification of live broadcasting on the target live broadcasting platform, the live broadcasting initiation entrance for indicating live broadcasting on the target live broadcasting platform is not displayed.
The embodiment of the application is not limited to a method for judging whether the game account logged in the application program of the target game has the qualification of live broadcasting on the target live broadcasting platform, and the judging method may be different according to different application scenes. In one possible implementation, the qualification of a game account logged in an application of a target game to live on a target live platform means that: the social account corresponding to the logged-in game account in the application program of the target game corresponds to a live account for live broadcasting on the target live broadcasting platform.
In one possible implementation manner, the process of judging whether the game account number logged in the social application program of the target game has the qualification of playing live on the target live platform is executed after the game account number logs in the application program of the target game for the first time, and then a result of judging whether the game account number logged in the application program of the target game has the qualification of playing live on the target live platform is saved, so that whether a live broadcast initiation entrance for indicating playing live on the target live platform is displayed or not can be conveniently and directly determined according to the result, and the efficiency is improved.
According to the two situations of the target instruction, in the embodiment of the application, the main broadcasting object can initiate the instruction of directly broadcasting the target game on the target live broadcasting platform in the social application program for providing the target live broadcasting platform, and can initiate the instruction of directly broadcasting the target game on the target live broadcasting platform in the application program of the target game, so that the mode of initiating the instruction is rich. For the situation that an instruction for playing the target game on the target live platform is initiated in the application program of the target game, the main broadcasting object can play the live game on one key in the application program of the target game, the target live platform does not need to be entered for configuration, and the instruction initiation efficiency is high.
In step 202, the anchor terminal responds to the verification of the target instruction and transmits a live game request to the social server, wherein the live game request carries an anchor game account number and a game identifier of the target game.
The social server is used for providing services for the target live broadcast platform.
The game live request is used to indicate that the host wants to live the target game at the target live platform. Before sending a game live broadcast request to the social server, the anchor terminal firstly checks the target instruction, so that after the target instruction passes the check, the game live broadcast request is sent to the social server.
The live game request carries a game account number of the host game and a game identifier of the target game. The game account number of the anchor is a game account number logged in an application program of a target game installed on the anchor terminal and is used for providing data support for a subsequent video restoration server to acquire a game operation instruction stream. In an exemplary embodiment, the hosting game account is interrelated with the social account of the social application for providing the target live platform, e.g., the hosting game account is a social account of the social application for providing the target live platform, or the hosting game account is an account bound to a social account of the social application for providing the target live platform.
The game identifier of the target game is used to uniquely identify the target game, for example, the game identifier of the target game is a game name of the target game, a name code of the target game, or the like. It should be noted that, different objects have different game accounts in the same game, and the same object may have the same game account in different games, so that a main playing object can be uniquely determined according to the game identifiers of the main playing game account and the target game.
In one possible implementation, a process of checking the target instruction needs to be performed to determine whether the target instruction passes the check before step 202 is implemented. Next, a procedure of checking the target instruction in both cases of the target instruction, respectively, will be described.
In an exemplary embodiment, for the case where the target instruction is a first instruction initiated in the social application, the first instruction carries a live host account number and a game identification of the target game. The live account number of the anchor refers to a live account number logged in a target live platform provided by a social application installed on the anchor terminal, and the target game refers to a game determined by an anchor object in the process of initiating a first instruction. In this case, the process of checking the target instruction is: jumping to an application program of the target game based on the game identification of the target game, and acquiring a default game account number logged in the application program of the target game; and determining that the first instruction passes the verification in response to the live account number of the anchor and the default game account number meeting the association condition.
Because the game identifier of the target game can uniquely identify the target game, after the first instruction carrying the game identifier of the target game is obtained, the anchor terminal can jump to the application program of the target game from the current social application program, and after jumping to the application program of the target game, the default game account number registered in the application program of the target game can be obtained.
After a default game account number logged in an application program of a target game is obtained, whether a live broadcast account number of a host and the default game account number meet association conditions or not needs to be judged, and when the live broadcast account number of the host and the default game account number meet association conditions, the first instruction verification is confirmed to pass. The method includes the steps that target games can be live broadcast on a target live broadcast platform, at the moment, a default game account is used as a main game account, and further, a game live broadcast request carrying identification information of the main game account and the target games is sent to a social server.
In one possible implementation manner, the process of judging whether the live account number of the anchor and the default game account number meet the association condition includes the following steps 1 to 5:
step 1: and the anchor terminal transmits the anchor live account, the game identification of the target game and the default game account to the social server.
The social server is used for authenticating the live account number of the anchor and the default game account number so as to verify whether the live account number of the anchor and the default game account number are bound to the same social account number.
Step 2: the social server receives a live broadcast account number of a host, a game identifier of a target game and a default game account number, which are sent by a host terminal, wherein the default game account number is a game account number logged in an application program of the target game to which the host terminal jumps.
Step 3: the social server obtains a first social account number matched with the default game account number and the game identification of the target game.
The anchor terminal cannot directly determine the social account bound with the default game account, so as to ensure the security of the social account. For example, in the case that the social server can provide services for all functions of the social application program, the social server itself stores a correspondence between a social account number and a game identifier, and based on the correspondence, the first social account number that matches both the default game account number and the game identifier of the target game can be directly determined.
For example, where the social server provides services only for a target live platform for a social application, the social server cannot directly determine the social account number bound to the default game account number. In this case, therefore, in the process of authenticating the live anchor account and the default game account, the social server needs to send the game identifications of the default game account and the target game to the account management server of the social application program, so that the account management server of the social application program determines a first social account matched with the game identifications of the default game account and the target game and returns the first social account to the social server. Thus, the social server can acquire the first social account number bound with the default game account number.
In an exemplary embodiment, the account management server of the social application program stores a corresponding relationship between a social account number and a game identifier, and based on the corresponding relationship, a first social account number which is matched with both a default game account number and a game identifier of a target game can be determined.
Step 4: and the social server responds to the fact that the first social account number is consistent with a second social account number corresponding to the anchor live account number, and returns a first authentication passing response to the anchor terminal.
After the first social account number is obtained, the social server compares the first social account number with a second social account number corresponding to the anchor live account number, and when the first social account number is consistent with the second social account number corresponding to the anchor live account number, a first authentication passing response is returned to the anchor terminal. For example, when the first social account number is inconsistent with the second social account number corresponding to the live account number of the anchor, the social server returns prompt information that the live cannot be performed to the anchor terminal so as to prompt that the anchor object cannot live the target game on the target live platform because the live account number of the anchor and the default game account number do not meet the association condition.
In one possible implementation manner, the social server stores the correspondence between the live account and the social account, and the social server can directly determine the second social account corresponding to the live account of the anchor according to the correspondence between the live account and the social account.
In another possible implementation manner, the social server cannot directly determine a second social account corresponding to the live account of the anchor, and the social server sends the live account of the anchor to the account management server of the social application program to obtain the second social account corresponding to the live account of the anchor returned by the account management server of the social application program. In this case, the account management server of the social application program stores the corresponding relationship between the live account and the social account, and further determines a second social account corresponding to the live account of the anchor according to the corresponding relationship between the live account and the social account.
Step 5: and the anchor terminal responds to the received first authentication passing response to determine that the anchor live account and the default game account meet the association condition.
If the first authentication passing response is received, the anchor terminal determines that the anchor live account and the default game account meet the association condition. In this case, it is determined that the first instruction passes verification, and a game live request carrying identification information of the anchor game account and the target game is sent to the social server by taking the default game account as the anchor game account.
It should be noted that, the above steps 1 to 5 are only descriptions of one exemplary implementation manner of determining whether the live account number of the anchor and the default game account number meet the association condition, and the embodiment of the present application is not limited thereto, and may also determine whether the live account number of the anchor and the default game account number meet the association condition by using other manners. For example, for the case that the live account of the anchor and the default game account are obtained by directly registering with the social account, whether the live account of the anchor and the default game account meet the association condition is directly determined by determining whether the live account of the anchor is the same as the default game account.
In an exemplary embodiment, after jumping to the application of the target game and determining that the first instruction verification is passed, a live countdown control is displayed in a display interface of the application of the target game so as to remind the host that the formal live broadcast will begin after the countdown is finished. In an exemplary embodiment, after the countdown is finished, a live pendant is displayed in a display interface of an application program of the target game, the live pendant is used for displaying live information, when a host broadcasting object triggers the live pendant, a live panel can be displayed, and more detailed live information is displayed in the live panel. A detailed description of the live pendant will be presented in step 208, and is not repeated here.
For example, as shown in (1) of fig. 5, a live countdown control 511 is displayed in the display interface 51 of the application of the target game, and after the countdown is finished, as shown in (2) of fig. 5, a live pendant 512 is displayed at the upper left corner in the display interface 51 of the application of the target game.
In an exemplary embodiment, for the case that the target instruction is a second instruction initiated in the application program of the target game, the second instruction carries a hosting game account, where the hosting game account is a game account logged in the application program of the target game when the second instruction is initiated. The second instruction may be a non-live instruction initiated in the application program for the target game or may be a live instruction initiated in the application program for the target game. The process of checking for target instructions is also different in two different situations.
Case one: the second instruction is a non-first live instruction initiated in the application of the target game.
That is, the host object has initiated a live instruction in the application of the target game before initiating the second instruction, that is, the target game has been live in the target live platform by initiating a live instruction in the application of the target game before initiating the second instruction.
In one possible implementation, in this case, the process of checking the target instruction is: responding to a second instruction as a non-first live broadcast instruction initiated in an application program of the target game, and displaying first confirmation information in the application program of the target game, wherein the first confirmation information is used for indicating that the target game is live broadcast on a target live broadcast platform by utilizing a historical live broadcast account number; and determining that the second instruction passes the verification in response to the confirmation instruction of the first confirmation information.
The historical live account number refers to a live account number utilized in the process of live broadcasting the target game on the target live platform in a mode of initiating a live instruction in an application program of the target game. And for the case that the second instruction is a non-first live broadcast instruction initiated in the application program of the target game, the anchor terminal stores the historical live broadcast account number. And displaying first confirmation information for indicating to live a target game on a target live platform by utilizing the historical live account in an application program of the target game based on the stored historical live account. When a confirmation instruction of the first confirmation information is acquired, the fact that the host broadcasting object determines to utilize the historical live broadcasting account to live the target game on the target live broadcasting platform is explained, at the moment, the second instruction is determined to pass through verification, and a game live broadcasting request carrying the host broadcasting account and a game identifier of the target game is sent to the social server.
According to the embodiment of the application program of the target game, the display interface for displaying the first confirmation information is not limited, and the display interface can be flexibly set according to requirements. For example, as shown in fig. 6 (1), a display interface for displaying first confirmation information in an application program of the target game is shown, and the first confirmation information 611 is displayed in the display interface. In the first confirmation information 611, a historical live account "12345", an avatar corresponding to the historical live account, and live configuration information (e.g., cover, location, live description, etc.) corresponding to the historical live account are displayed. When the trigger operation of the anchor object on the "start live broadcast" button in the first confirmation information 611 is detected, a confirmation instruction of the first confirmation information is acquired. In an exemplary embodiment, after the confirmation instruction of the first confirmation information is acquired, as shown in (2) in fig. 6, a countdown control 612 is displayed in the display interface of the application program of the target game, so as to remind the host that the formal live broadcast will start after the countdown is finished.
In an exemplary embodiment, the historical live account needs to be acquired before storing the historical live account. Exemplary, a process of acquiring a live account by a hosting terminal is shown in fig. 7: 1. the method comprises the steps that a main broadcasting terminal sends a request for acquiring a live account to a social server, wherein the request for acquiring the live account carries a game identifier (marked as APPID) and a game account (marked as OPENID) of a target game; 2. the method comprises the steps that a social server sends a request for obtaining a social account corresponding to a game account to an account management server of a social application program based on a request for obtaining a live account, wherein the request for obtaining the social account corresponding to the game account carries a game identifier and a game account of a target game; 3. the account management server of the social application program converts the game account into a social account according to the game identifier and the game account of the target game; 4. the account management server of the social application program returns the social account to the social server; 5. after receiving the social account, the social server converts the social account into a live account; 6. and the social server returns the live account to the anchor terminal. In an exemplary embodiment, after converting the social account into the live account, the social server further obtains live configuration information corresponding to the live account, and then returns the live account and the live configuration information to the anchor terminal.
And a second case: the second instruction is a first live instruction acquired from an application program of the target game.
That is, the host object does not initiate a live instruction in the application of the target game before initiating the second instruction, that is, the target game is not live on the target live platform by initiating a live instruction in the application of the target game before initiating the second instruction.
In one possible implementation manner, in this second case, the process of checking the target instruction includes the following steps a to C:
step A: and the anchor terminal responds to the first live broadcast instruction initiated in the application program of the target game as the second instruction, jumps to the social application program and acquires a default live broadcast account number logged in a target live broadcast platform provided by the social application program.
Since the second instruction is initiated in the application of the target game, the application of the target game is displayed in the current interface of the anchor terminal when the second instruction is acquired. When the second instruction is the first live instruction initiated in the application program of the target game, the historical live account number cannot be directly determined, and the user needs to jump to the social application program for providing the target live platform to authenticate and acquire the live account number for live broadcasting the target game on the target live platform. After the social application program is jumped, the live account number logged in the target live platform provided by the social application program can be obtained, and the live account number is used as a default live account number.
And (B) step (B): and the anchor terminal responds to the fact that the default live account number and the anchor game account number meet the association condition, and displays second confirmation information in the social application program, wherein the second confirmation information is used for indicating that the target game is live broadcast on the target live platform by utilizing the default live account number.
After the default live account is obtained, judging whether the default live account and the main play game account meet the association condition, and displaying second confirmation information for indicating that the target game is live on the target live platform by utilizing the default live account in the social application program when the live account and the main play game account are determined to meet the association condition. According to the embodiment of the application, the interface for displaying the second confirmation information in the social application is not limited, and the flexible setting can be performed according to requirements. For example, as shown in fig. 8 (1), the display interface of the social application displaying the second confirmation information displays a default live account "12345" and an avatar corresponding to the default live account in the second confirmation information displayed in the display interface 81 of fig. 8 (1).
In one possible implementation manner, the process of judging whether the default live account and the main play account meet the association condition includes the following steps a to e:
Step a: and the anchor terminal sends the anchor game account, the game identification of the target game and the default live account to the social server.
The social server is used for authenticating the anchor game account and the default live account so as to verify whether the anchor game account and the default live account are both bound to the same social account.
Step b: and the social server receives the anchor game account number, the game identifier of the target game and the default live account number which are sent by the anchor terminal, wherein the default live account number is a live account number logged in a target live platform provided by a social application program which the anchor terminal jumps to.
Step c: the social server obtains a third social account number matched with the game identification of the anchor game account number and the target game.
Step d: and the social server responds to the fact that the third social account is consistent with a fourth social account corresponding to the default live account, and returns a second authentication passing response to the anchor terminal.
The implementation manners of the steps b to d refer to the steps 2 to 4 of the process of judging whether the live account number of the anchor and the default game account number meet the association condition, and are not repeated here.
In one possible implementation manner, the social server is further configured to send, in response to the third social account being consistent with the fourth social account corresponding to the default live account, the live account corresponding to the consistent social account to the anchor terminal, and the anchor terminal stores the live account in the application program of the target game, so that when the acquired instruction is a non-first live instruction initiated in the application program of the target game, the stored live account is directly determined to be a historical live account, and determination efficiency is improved.
Step e: and the anchor terminal responds to the received second authentication passing response to determine that the default live account number and the anchor game account number meet the association condition.
If a second authentication passing response is received, the anchor terminal determines that the default live account number and the anchor game account number meet the association condition, and displays second confirmation information in the social application program. In an exemplary embodiment, when it is determined that the default live account and the live game account satisfy the association relationship, the default live account is taken as the live account of the host, and the live account of the host can be sent to the social server in a live game request.
It should be noted that, steps a to e above are merely descriptions of one exemplary implementation manner of determining whether the default live account number and the main play account number meet the association condition, and the embodiment of the present application is not limited thereto, and may also determine whether the default live account number and the main play account number meet the association condition in other manners. For example, for the case that the default live account number and the anchor game account number are obtained by directly registering with the social account number, whether the default live account number and the anchor game account number meet the association condition is directly determined by determining whether the default live account number is the same as the anchor game account number.
Step C: the anchor terminal responds to a confirmation instruction of the second confirmation information to display live broadcast configuration information in the social application program; and determining that the second instruction passes the verification in response to the confirmation instruction of the live configuration information.
And after the second confirmation information is displayed, if the anchor terminal detects a confirmation instruction of the anchor object to the second confirmation information, displaying the live broadcast configuration information in the social application program. The live broadcast configuration information is used for indicating configuration information for live broadcasting of the target game on the target live broadcast platform by using a default live broadcast account number, and the live broadcast configuration information is displayed for viewing or modifying of a host broadcast object. And when a confirmation instruction of the host object to the live broadcast configuration information is detected, determining that the second instruction passes verification. And then sending a game live broadcast request carrying the identification information of the main play account number and the target game to the social server.
In an exemplary embodiment, since the live game needs to be implemented based on the game operation instruction stream generated by the host object in the application program of the target game, the host terminal jumps back to the application program of the target game after detecting the confirmation instruction of the live configuration information, so that the host object generates the game operation instruction stream in the application program of the target game.
For example, when the trigger operation of the "continue" button is detected in the display interface 81 of the social application program displaying the second confirmation information as shown in (1) in fig. 8, a confirmation instruction of the second confirmation information is acquired. After the confirmation instruction of the second confirmation information is acquired, live broadcast configuration information is displayed in a display interface 82 of the social application program shown in (2) in fig. 8. When the trigger operation of the "start live" button is detected in the display interface 82 of the social application, a confirmation instruction of the live configuration information is acquired, and the second instruction is determined to pass the verification. In addition, after the confirmation instruction of the live broadcast configuration information is acquired, the application program of the target game is jumped back, and after the application program of the target game is jumped back, a countdown control can be displayed in a display interface of the application program of the target game so as to remind the host that the formal live broadcast will be started after the countdown is finished, wherein the display interface with the countdown control is shown as (2) in fig. 6.
Whether the target instruction is a first instruction initiated in the social application or a second instruction initiated in the application of the target game, after determining that the target instruction passes verification, a live game request is sent to the social server, and step 203 is further performed.
In an exemplary embodiment, after a live game request is sent to a social server, an application program of a target game is displayed in a host terminal, and a host object participates in a game competition in the application program of the target game, and in the process of participating in the game competition, the host object continuously generates game operation instructions, and the continuously generated game operation instructions form a game operation instruction stream. And the anchor terminal transmits the game operation instruction stream generated by the anchor object to the server of the target game. The terminal of another object participating in the same game competition with the host object can acquire the game operation instruction stream generated by the own object, and then send the generated game operation instruction stream to the server of the target game.
The server of the target game is used for processing game fight information, and the server of the target game can receive game operation instruction streams generated by all objects participating in the same game fight and then send the game operation instruction streams generated by each object to terminals of other objects participating in the same game fight. The terminal of any one object (the terminal of the anchor object or the terminals of other objects) can generate a game screen based on the game operation instruction stream generated by each object. The game picture generated by the anchor terminal is the same as the game picture presented to the audience object in the live game process, and is generated from the viewing angle of the anchor object.
In step 203, the social server obtains a live game request sent by the hosting terminal, where the live game request carries a hosting game account number and a game identifier of the target game.
After the anchor terminal sends a game live broadcast request carrying an anchor game account number and a game identifier of a target game to the social server, the social server obtains the game live broadcast request sent by the anchor terminal. The game live request is used to indicate that the host wants to live the target game at the target live platform. In an exemplary embodiment, the game live broadcast request further carries a live broadcast account number of the host, so that after the social server obtains the live video stream, the live video stream is distributed to a terminal of a viewer object entering a live broadcast room corresponding to the live broadcast account number of the host. In the embodiment of the present application, a terminal of a viewer object entering a live broadcast room corresponding to a live broadcast account is referred to as a live broadcast participation terminal.
In step 204, the social server sends a video restoration instruction carrying a game identification of the hosting game account and the target game to the video restoration server based on the game live request.
In the embodiment of the application, the live video stream is not obtained by the anchor terminal through a screen recording mode, but is obtained by the video restoration server. After the social server acquires the live game request, a video restoration instruction carrying the game identification of the main play game account number and the target game is sent to the video restoration server, so that the video restoration server acquires the live video stream according to the video restoration instruction.
In step 205, the video restoration server receives a video restoration instruction carrying a game identifier of a host game account and a target game sent by the social server.
After the social server sends a video restoration instruction carrying the game identifications of the main play game account number and the target game to the video restoration server, the video restoration server receives the video restoration instruction carrying the game identifications of the main play game account number and the target game sent by the social server, and further obtains a game operation instruction stream for generating a live video stream based on the game identifications of the main play game account number and the target game.
In step 206, the video restoration server determines a server of the target game based on the game identifier of the target game, sends a game operation instruction stream acquisition request carrying the game account number of the host game to the server of the target game, and the server of the target game is used for determining a target athletic fight corresponding to the game account number of the host game, and returns the game operation instruction stream generated in the target athletic fight to the video restoration server.
The game operation instruction stream is used for indicating game operation instructions generated by the participated objects of target competition. The participation object of the target athletic competition refers to all objects participating in the target athletic competition, including the anchor object and other objects. The game operation instructions generated by the participation objects of the target competition match comprise game operation instructions generated by the main broadcasting object in the process of participating in the target competition match and game operation instructions generated by other objects in the process of participating in the target competition match.
The target athletic competition corresponding to the main game account number refers to the athletic competition in which the main game object is participating, and all game operation instruction streams generated in the target athletic competition include game operation instruction streams generated by the main game object in the process of participating in the target athletic competition and game operation instruction streams generated by other objects in the process of participating in the target athletic competition. That is, the server of the target game returns all the game operation instruction streams generated in the target competition with the host object to the video restoration server.
In step 207, the video restoration server generates a live video stream based on the game operation instruction stream returned by the server of the target game; and sending the live video stream to a social server.
After the server of the target game returns the game operation instruction stream generated in the target athletic competition to the video restoration server, the video restoration server receives the game operation instruction stream returned by the server of the target game. Thereby, the video restoration server acquires the game operation instruction stream.
After the game operation instruction stream is acquired, the video restoration server generates a live video stream based on the game operation instruction stream, and then sends the live video stream to the social server. The live video stream corresponds to the hosting game account. In an exemplary embodiment, the video restoration server generates a live video stream based on the game operation instruction stream by: the video restoration server directly generates a live video stream corresponding to the anchor game account based on the game operation instruction stream.
In another exemplary embodiment, the video restoration server generates a live video stream based on the game operation instruction stream by: and the video restoration server generates a target game picture based on the game operation instruction stream, and records the target game picture to obtain a live video stream.
In an exemplary embodiment, the game operation instruction stream obtained by the video restoration server includes a game operation instruction stream generated by a main broadcasting object and a game operation instruction stream generated by other objects, and the game operation instruction stream carries a game account number. The video restoration server is provided with a combat simulator which can restore the game operation instruction stream into a game picture, the combat simulator can be understood as a game application simulator, and the combat simulator is used for independently stripping combat engines of the game application and is deployed in the video restoration server without non-combat functions such as a mall.
And the video restoration server restores the game operation instruction stream by using a combat simulator deployed in the video restoration server in the process of generating the target game picture based on the game operation instruction stream to obtain the target game picture. In the process of restoring the game operation instruction stream, the game operation instruction stream is restored from the perspective of the main broadcasting object, that is, the obtained target game picture is the game picture obtained after the restoration from the perspective of the main broadcasting object, so as to ensure that the game picture played based on the live video stream obtained later is consistent with the game picture displayed in the terminal of the main broadcasting object.
After the target game picture is generated, the video restoration server records the target game picture to obtain a live video stream, and then the live video stream obtained by recording the target game picture is sent to the social server. In the process, as the target game picture is generated based on the game operation instruction stream, the live video stream obtained by recording the target game picture can ensure that the live picture is only the game picture, the privacy of the user can not be revealed, and the safety of live content can be guaranteed.
In addition, since the live video stream is acquired by the video restoration server and is sent to the social server, the uplink flow of the anchor terminal is not consumed, the running performance of the anchor terminal is not consumed, the game experience of an anchor object can be ensured, and the fluency of the game live broadcast is ensured.
In step 208, the social server sends the live video stream sent by the video restoration server to the live participant terminal.
And after the video restoration server sends the live video stream to the social server, the social server acquires the live video stream sent by the video restoration server. And the social server sends the live video stream to the live participation terminal after acquiring the live video stream sent by the video restoration server. The live broadcast participation terminal refers to a terminal of a viewer object entering a target live broadcast room corresponding to the main broadcast live broadcast account. And in response to the audience object entering a target living room corresponding to the anchor living account in the target living platform, transmitting the living video stream to the terminal of the audience object, namely, the living participation terminal. And the live broadcast participation terminal plays the live broadcast video stream in the target live broadcast room corresponding to the main broadcast live broadcast account number, so that the audience object can watch the game picture corresponding to the live broadcast video stream in the target live broadcast room.
Because the live video stream is obtained by recording the target game picture generated according to the game operation instruction stream, the live video stream watched by the audience object only comprises the game picture, and redundant information except the game picture is not included, thereby being beneficial to improving the watching experience of the audience object.
In an exemplary embodiment, before the social server sends the live video stream to the live participation terminal, the social server can compress the live video stream first, and then send the compressed live video stream to the live participation terminal, so as to save the traffic consumed by data transmission. In this case, after receiving the compressed live video stream, the live broadcast participating terminal decompresses the compressed live video stream, and then plays the live video stream in the target live broadcast room corresponding to the live broadcast account number.
In an exemplary manner, in a target living room corresponding to the live host account, in addition to displaying a game screen, the live host account, a head portrait corresponding to the live host account, the number of online people, the number of gifts, comment information, a comment information input box, a gift portal and the like can be displayed. For example, a target live room corresponding to a live account of a main broadcast is shown in fig. 9.
Illustratively, the implementation of a live game is shown in FIG. 10. The terminal of the main broadcasting object sends the game operation instruction stream generated by the main broadcasting object to the server of the target game; and the terminals of other objects send the game operation instruction stream generated by the object of the terminal to the server of the target game. The target game server is used for processing the fight information of the game, and the target game server sends all game operation instruction streams generated in the competition fight of the main broadcasting object to the video restoration server. And the video restoration server restores the game operation instruction stream into a target game picture by using the combat simulator, and transmits a live video stream obtained by recording the target game picture to the social server. And the social server distributes the live video stream to the live participation terminal, and the live participation terminal is used for playing the live video stream.
The server of the target game can transmit, to the video restoration server, not only all the game operation instruction streams generated in the competition with participation of the host object, but also game operation instruction streams generated by other objects than the host object to the terminals of the host object and game operation instruction streams generated by other objects than the other object to the terminals of the other object. Each terminal of the objects participating in the athletic fight can receive the game operation instruction stream generated by other objects, and generates a game picture by combining the game operation instruction stream generated by the object of the terminal.
In the exemplary embodiment, the game screen generated based on the game operation instruction stream may include a result of the game in addition to the competitive game screen, which is not limited in the embodiment of the present application.
In the process of realizing game live broadcast based on live video streaming, the social server can acquire live broadcast information corresponding to a live broadcast account number of a host, and then send the live broadcast information to the host terminal. The live broadcast information corresponding to the live broadcast account number of the main broadcast refers to live broadcast information generated in a live broadcast room corresponding to the live broadcast account number of the main broadcast. Live information includes, but is not limited to, interactive information of audience objects, system prompt information, and the like. Wherein, the interactive information of the audience object comprises but is not limited to comment information, barrage information, gift information and the like; system cues include, but are not limited to, cues for entering and leaving a live room, the total number of people viewing a game live in the live room, and the like.
It should be noted that, in the embodiment of the present application, the sending timing of the social server to send the live broadcast information to the anchor terminal is not limited. Illustratively, the social server sends live broadcast information to the anchor terminal once every a reference time interval; or the social server sends the live broadcast information to the anchor terminal based on the live broadcast information acquisition request sent by the anchor terminal.
In the live game process, the main broadcasting terminal can acquire a game operation instruction stream, and game pictures generated according to the game operation instruction stream are displayed in real time in a display interface of an application program, wherein the game pictures are the same as game pictures presented to audience objects in a live broadcasting room corresponding to a main broadcasting live broadcasting account number. The game operation instruction stream acquired by the main broadcasting terminal comprises a game operation instruction stream generated by a main broadcasting object and a game operation instruction stream generated by other objects participating in the same game competition with the main broadcasting object. The game operation instruction stream generated by the main broadcasting object is directly obtained by the main broadcasting terminal according to the game operation instruction of the main broadcasting object, and the game operation instruction streams generated by other objects are sent to the main broadcasting terminal by the server of the target game.
After obtaining the game operation instruction stream generated by the main playing object, the main playing terminal sends the game operation instruction stream generated by the main playing object to the server of the target game, so that the server of the target game sends the game operation instruction stream generated by the main playing object to terminals of other objects in real time, and the terminals of other objects generate and display game images in the application program of the target game.
And the host broadcasting terminal displays a live broadcasting pendant besides the game picture in a display interface of the application program of the target game, so that the host broadcasting object can acquire the live broadcasting information of the game live broadcasting based on the live broadcasting pendant. The display position and the display manner of the live pendant are not limited, and the display position of the live pendant is, for example, the upper left corner position of the display interface, or the upper right corner position of the display interface. The live pendant is dynamically displayed in a floating layer manner.
In one possible implementation, the live pendant may have one or more display forms, which embodiments of the present application are not limited in this regard. Exemplary live pendant presentation modalities include, but are not limited to, a default modality, a first modality for indicating an unread message, a second modality for indicating a new viewer object entering a live room corresponding to a hosting live account, and a third modality for indicating new interaction information. The text information displayed in the live pendant of the first, second and third forms is displayed according to the actual situation. For example, as shown in fig. 11, a live pendant with a default modality is shown at 1111, a live pendant with a first modality is shown at 1112, a live pendant with a second modality is shown at 1113, and a live pendant with a third modality is shown at 1114.
And after the live broadcast hanging piece is displayed, displaying live broadcast information corresponding to the live broadcast account number of the anchor based on a trigger instruction of the live broadcast hanging piece, wherein the live broadcast information is sent to the anchor terminal by the social server. In an exemplary embodiment, the anchor terminal sends a live information acquisition request to the social server based on a trigger instruction of the live pendant, and the social server sends live information to the anchor terminal based on the live information acquisition request, and then the anchor terminal displays the live information. In an exemplary embodiment, the live information is sent to the anchor terminal once by the anchor terminal every reference time interval, in which case the anchor terminal displays the last acquired live information based on the trigger instruction of the live pendant.
The triggering instruction of the live broadcast pendant is obtained based on the triggering operation of the live broadcast pendant by the host object, and when the triggering operation of the live broadcast pendant by the host object is detected, the host object is indicated to want to view detailed live broadcast information, and at the moment, the host terminal displays the live broadcast information corresponding to the direct host broadcast live broadcast account. Live information displayed at different times may be different, and embodiments of the present application are not limited in this regard. In one implementation, based on a trigger instruction of a live pendant, a live panel is displayed by a host terminal, and live information is displayed in the live panel.
For example, as shown in fig. 12, when a trigger operation of the live pendant 1111 in fig. 11 by the main broadcasting object is detected, a live broadcasting panel 1211 is displayed, and live broadcasting information is displayed in the live broadcasting panel 1211. In the live broadcast panel, in addition to displaying live broadcast information, a button for ending live broadcast can be displayed, and when the main broadcasting object triggers the button for ending live broadcast, the game live broadcast process is ended.
It should be noted that, the live pendant provided in the embodiment of the present application is embedded into the application program of the target game, which is friendly to all terminals of the operating system. That is, regardless of the terminal of any operating system, as long as the terminal installs the application program of the target game, the live pendant can be displayed in the process of live broadcasting the target game.
In the embodiment of the application, the live video stream is generated by the video restoration server according to the game operation instruction stream, and is sent to the social server by the video restoration server. Based on the process, the transmission of the live video stream does not need to consume the flow of the anchor terminal, thereby being beneficial to ensuring the performance of the anchor terminal and improving the stability of the live game; in addition, the live video stream generated according to the game operation instruction stream does not contain other redundant information except game pictures, so that the user privacy is protected, and the safety of game live broadcast is improved.
Referring to fig. 13, an embodiment of the present application provides an apparatus for acquiring a live video stream, where the apparatus includes:
an obtaining unit 1301, configured to obtain a live game request sent by a hosting terminal, where the live game request carries a hosting game account number and a game identifier of a target game;
a sending unit 1302, configured to send, based on a live game request, a video restoration instruction carrying game identifiers of a main play game account number and a target game to a video restoration server, where the video restoration server is configured to obtain a game operation instruction stream based on the game identifiers of the main play game account number and the target game, generate a live video stream based on the game operation instruction stream, and send the live video stream to a social server; the game operation instruction stream is used for indicating game operation instructions generated by the participated objects of target competition corresponding to the main game account;
the sending unit 1302 is further configured to send the live video stream sent by the video restoration server to the live participant terminal.
In one possible implementation, referring to fig. 14, the apparatus further includes:
the receiving unit 1303 is configured to receive a live host account number, a game identifier of a target game, and a default game account number, which are sent by a host terminal, the default game account number being a game account number logged in an application program of the target game that the host terminal jumps to;
The obtaining unit 1301 is further configured to obtain a first social account number that is matched with both the default game account number and the game identifier of the target game;
and a returning unit 1304, configured to return, to the anchor terminal, a first authentication passing response in response to the first social account being consistent with the second social account corresponding to the anchor live account.
In one possible implementation manner, the receiving unit 1303 is further configured to receive a hosting game account number, a game identifier of a target game, and a default live account number sent by a hosting terminal, where the default live account number is a live account number logged in a target live platform provided by a social application program that the hosting terminal jumps to;
the obtaining unit 1301 is further configured to obtain a third social account number that is matched with both the game identifier of the host game account number and the game identifier of the target game;
the returning unit 1304 is further configured to return, to the anchor terminal, a second authentication pass response in response to the third social account being consistent with a fourth social account corresponding to the default live account.
In one possible implementation, the game live request also carries a live account number of the host; the acquiring unit 1301 is further configured to acquire live broadcast information corresponding to the live broadcast account of the anchor;
the sending unit 1302 is further configured to send the live broadcast information to a hosting terminal.
In the embodiment of the application, the live video stream is generated by the video restoration server according to the game operation instruction stream, and is sent to the social server by the video restoration server. Based on the process, the transmission of the live video stream does not need to consume the flow of the anchor terminal, thereby being beneficial to ensuring the performance of the anchor terminal and improving the stability of the live game; in addition, the live video stream generated according to the game operation instruction stream does not contain other redundant information except game pictures, so that the user privacy is protected, and the safety of game live broadcast is improved.
Referring to fig. 15, an embodiment of the present application provides an apparatus for acquiring a live video stream, where the apparatus includes:
an obtaining unit 1501, configured to obtain a target instruction initiated by a host object to live a target game on a target live platform, where the target live platform is provided by a social application program;
a sending unit 1502, configured to send a live game request to a social server in response to the verification of the target instruction passing, where the live game request carries a hosting game account and a game identifier of the target game, and the social server is configured to provide a service for the target live platform;
the social server is used for sending a video restoration instruction carrying a game identifier of a main play account number and a target game to the video restoration server based on the game live broadcast request, acquiring a live broadcast video stream sent by the video restoration server, wherein the live broadcast video stream is generated by the video restoration server based on a reference game operation instruction stream, and the reference game operation instruction stream is acquired based on the game identifier of the main play account number and the target game.
In one possible implementation, the target instruction is a first instruction initiated in the social application program, the first instruction carrying a live host account number and a game identifier of the target game; referring to fig. 16, the apparatus further includes:
a jumping unit 1503 for jumping to an application of the target game based on the game identification of the target game;
the obtaining unit 1501 is further configured to obtain a default game account registered in an application program of the target game;
and the determining unit 1504 is configured to determine that the first instruction passes the verification in response to the live account number of the anchor and the default game account number meeting the association condition.
In one possible implementation manner, the sending unit 1502 is further configured to send the live host account, the game identifier of the target game, and the default game account to the social server;
the social server is used for acquiring a first social account number matched with the default game account number and the game identifier of the target game; responding to the fact that the first social account is consistent with a second social account corresponding to the anchor live account, and returning a first authentication passing response to the anchor terminal;
the determining unit 1504 is further configured to determine, in response to receiving the first authentication pass response, that the live account number of the anchor and the default game account number meet the association condition.
In one possible implementation, the target instruction is a second instruction initiated in an application program of the target game, the second instruction carrying a hosting game account; referring to fig. 16, the apparatus further includes:
the display unit 1505 is configured to respond to the second instruction being a non-first live broadcast instruction initiated in the application program of the target game, and display first confirmation information in the application program of the target game, where the first confirmation information is used to instruct live broadcasting of the target game on the target live broadcasting platform by using the historical live broadcasting account;
the determining unit 1504 is further configured to determine that the second instruction checks pass in response to the acknowledgement instruction of the first acknowledgement information.
In one possible implementation, the target instruction is a second instruction acquired from an application program of the target game, and the second instruction carries a hosting game account number;
a jump unit 1503, further configured to jump to the social application in response to the second instruction being a first live instruction initiated in the application of the target game;
the obtaining unit 1501 is further configured to obtain a default live account number logged in a target live platform provided by the social application;
the display unit 1505 is further configured to display second confirmation information in the social application program in response to the default live account number and the anchor game account number meeting the association condition, where the second confirmation information is used to instruct the target game to be live on the target live platform by using the default live account number; responding to a confirmation instruction of the second confirmation information, and displaying live configuration information in the social application program;
The determining unit 1504 is further configured to determine that the second instruction passes the check in response to a confirmation instruction of the live configuration information.
In one possible implementation manner, the sending unit 1502 is further configured to send the main play game account, the game identifier of the target game, and the default live account to the social server;
the social server is used for acquiring a third social account matched with the game identifications of the anchor game account and the target game; responding to the fact that the third social account is consistent with a fourth social account corresponding to the default live account, and returning a second authentication passing response to the anchor terminal;
the determining unit 1504 is further configured to determine that the default live account number and the hosting game account number satisfy the association condition in response to receiving the second authentication pass response.
In one possible implementation, the display unit 1505 is further configured to display a live pendant in a display interface of an application program of the target game; based on the triggering instruction of the live pendant, live information corresponding to the live account of the anchor is displayed, and the live information is sent to the anchor terminal by the social server.
In the embodiment of the application, the live video stream is generated by the video restoration server according to the game operation instruction stream, and is sent to the social server by the video restoration server. Based on the process, the transmission of the live video stream does not need to consume the flow of the anchor terminal, thereby being beneficial to ensuring the performance of the anchor terminal and improving the stability of the live game; in addition, the live video stream generated according to the game operation instruction stream does not contain other redundant information except game pictures, so that the user privacy is protected, and the safety of game live broadcast is improved.
Referring to fig. 17, an embodiment of the present application provides an apparatus for acquiring a live video stream, where the apparatus includes:
a receiving unit 1701, configured to receive a video restoration instruction carrying a game identifier of a host game account and a target game sent by a social server;
a sending unit 1702, configured to determine a server of a target game based on a game identifier of the target game, send a game operation instruction stream acquisition request carrying a main play game account to the server of the target game, where the server of the target game is configured to determine a target athletic fight corresponding to the main play game account, return a game operation instruction stream generated in the target athletic fight to a video restoration server, and the game operation instruction stream is configured to instruct a game operation instruction generated by a participant of the target athletic fight;
a generating unit 1703, configured to generate a live video stream based on a game operation instruction stream returned by the server of the target game;
the sending unit 1702 is further configured to send the live video stream to a social server.
In the embodiment of the application, the live video stream is generated by the video restoration server according to the game operation instruction stream, and is sent to the social server by the video restoration server. Based on the process, the transmission of the live video stream does not need to consume the flow of the anchor terminal, thereby being beneficial to ensuring the performance of the anchor terminal and improving the stability of the live game; in addition, the live video stream generated according to the game operation instruction stream does not contain other redundant information except game pictures, so that the user privacy is protected, and the safety of game live broadcast is improved.
It should be noted that, when the apparatus provided in the foregoing embodiment performs the functions thereof, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to perform all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the apparatus and the method embodiments are detailed in the method embodiments and are not repeated herein.
Fig. 18 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal is a hosting terminal or a live broadcast participation terminal. Illustratively, the terminal is: smart phones, tablet computers, notebook computers or desktop computers. Terminals may also be referred to by other names as user equipment, portable terminals, laptop terminals, desktop terminals, etc.
Generally, the terminal includes: a processor 1801 and a memory 1802.
Processor 1801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1801 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 1801 may also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1801 may be integrated with a GPU (Graphics Processing Unit, image processor) for taking care of rendering and rendering of content that the display screen is required to display. In some embodiments, the processor 1801 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
The memory 1802 may include one or more computer-readable storage media, which may be non-transitory. The memory 1802 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1802 is configured to store at least one instruction for execution by processor 1801 to implement a method of acquiring a live video stream provided by a method embodiment in the present application.
In some embodiments, the terminal may further optionally include: a peripheral interface 1803 and at least one peripheral. The processor 1801, memory 1802, and peripheral interface 1803 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 1803 by buses, signal lines or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1804, a display screen 1805, a camera assembly 1806, audio circuitry 1807, and a power supply 1809.
The peripheral interface 1803 may be used to connect I/O (Input/Output) related at least one peripheral device to the processor 1801 and memory 1802. In some embodiments, processor 1801, memory 1802, and peripheral interface 1803 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 1801, memory 1802, and peripheral interface 1803 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 1804 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1804 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 1804 converts electrical signals to electromagnetic signals for transmission, or converts received electromagnetic signals to electrical signals. Optionally, the radio frequency circuit 1804 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 1804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 1804 may also include NFC (Near Field Communication ) related circuitry, which is not limited in this application.
The display 1805 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 1805 is a touch display, the display 1805 also has the ability to collect touch signals at or above the surface of the display 1805. The touch signal may be input as a control signal to the processor 1801 for processing. At this point, the display 1805 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1805 may be one and disposed on the front panel of the terminal; in other embodiments, the display 1805 may be at least two, respectively disposed on different surfaces of the terminal or in a folded design; in other embodiments, the display 1805 may be a flexible display disposed on a curved surface or a folded surface of the terminal. Even more, the display screen 1805 may be arranged in an irregular pattern other than rectangular, i.e., a shaped screen. The display 1805 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 1806 is used to capture images or video. Optionally, the camera assembly 1806 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1806 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuitry 1807 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1801 for processing, or inputting the electric signals to the radio frequency circuit 1804 for realizing voice communication. For the purpose of stereo acquisition or noise reduction, a plurality of microphones can be respectively arranged at different parts of the terminal. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is then used to convert electrical signals from the processor 1801 or the radio frequency circuit 1804 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuitry 1807 may also include a headphone jack.
The power supply 1809 is used to power the various components in the terminal. The power supply 1809 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1809 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal further includes one or more sensors 1810. The one or more sensors 1810 include, but are not limited to: acceleration sensor 1811, gyro sensor 1812, pressure sensor 1813, optical sensor 1815, and proximity sensor 1816.
The acceleration sensor 1811 may detect the magnitudes of accelerations on three coordinate axes of a coordinate system established with a terminal. For example, the acceleration sensor 1811 may be used to detect components of gravitational acceleration on three coordinate axes. The processor 1801 may control the display screen 1805 to display a user interface in either a landscape view or a portrait view based on gravitational acceleration signals acquired by the acceleration sensor 1811. The acceleration sensor 1811 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1812 may detect a body direction and a rotation angle of the terminal, and the gyro sensor 1812 may collect a 3D motion of the user to the terminal in cooperation with the acceleration sensor 1811. The processor 1801 may implement the following functions based on the data collected by the gyro sensor 1812: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
Pressure sensor 1813 may be disposed on a side frame of the terminal and/or below display 1805. When the pressure sensor 1813 is disposed at a side frame of the terminal, a grip signal of the terminal by a user may be detected, and the processor 1801 performs left-right hand recognition or quick operation according to the grip signal collected by the pressure sensor 1813. When the pressure sensor 1813 is disposed at the lower layer of the display 1805, the processor 1801 controls the operability control on the UI interface according to the pressure operation of the user on the display 1805. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The optical sensor 1815 is used to collect the ambient light intensity. In one embodiment, the processor 1801 may control the display brightness of the display screen 1805 based on the intensity of ambient light collected by the optical sensor 1815. Specifically, when the intensity of the ambient light is high, the display brightness of the display screen 1805 is turned up; when the ambient light intensity is low, the display brightness of the display screen 1805 is turned down. In another embodiment, the processor 1801 may also dynamically adjust the shooting parameters of the camera assembly 1806 based on the intensity of ambient light collected by the optical sensor 1815.
A proximity sensor 1816, also known as a distance sensor, is typically provided at the front panel of the terminal. The proximity sensor 1816 is used to collect the distance between the user and the front of the terminal. In one embodiment, when the proximity sensor 1816 detects that the distance between the user and the front of the terminal is gradually decreasing, the processor 1801 controls the display screen 1805 to switch from the bright screen state to the off-screen state; when the proximity sensor 1816 detects that the distance between the user and the front of the terminal gradually increases, the processor 1801 controls the display screen 1805 to switch from the off-screen state to the on-screen state.
It will be appreciated by those skilled in the art that the structure shown in fig. 18 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
Fig. 19 is a schematic structural diagram of a server provided in an embodiment of the present application, where the server is any one of a social server, a video restoration server, a server for a target game, and a server for a social application. The server may include one or more processors (Central Processing Units, CPU) 1901 and one or more memories 1902, where the one or more memories 1902 store at least one computer program, and the at least one computer program is loaded and executed by the one or more processors 1901 to implement the method for acquiring live video streams provided in the foregoing method embodiments. Of course, the server may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
In an exemplary embodiment, a computer device is also provided, the computer device comprising a processor and a memory, the memory having at least one computer program stored therein. The at least one computer program is loaded and executed by one or more processors to implement any of the methods of live video stream acquisition described above.
In an exemplary embodiment, there is also provided a computer readable storage medium having stored therein at least one computer program loaded and executed by a processor of a computer device to implement any of the above-mentioned live video stream acquisition methods.
In one possible implementation, the computer readable storage medium may be a Read-Only Memory (ROM), a random-access Memory (Random Access Memory, RAM), a compact disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs any of the above-described methods for acquiring a live video stream.
It should be understood that references herein to "a plurality" are to two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The foregoing description of the exemplary embodiments of the present application is not intended to limit the invention to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, alternatives, and alternatives falling within the spirit and scope of the invention.

Claims (18)

1. A method for acquiring a live video stream, wherein the method is applied to a social server, and the method comprises the following steps:
acquiring a game live broadcast request sent by a main broadcasting terminal, wherein the game live broadcast request carries a main broadcasting game account number, a main broadcasting live broadcast account number and a game identifier of a target game;
based on the game live broadcast request, sending a video restoration instruction carrying the game identification of the main play game account number and the target game to a video restoration server; the video restoration server is used for determining a server of the target game based on the game identifier of the target game, and sending a game operation instruction stream acquisition request carrying the main play game account number to the server of the target game; the server of the target game is used for determining target athletic fight corresponding to the main game account number, and returning a game operation instruction stream generated in the target athletic fight to the video restoration server; the video restoration server is further used for acquiring a game operation instruction stream returned by the server of the target game, generating a live video stream based on the game operation instruction stream, and sending the live video stream to the social server; the game operation instruction stream is used for indicating a game operation instruction generated by a participated object of target competition corresponding to the main game account;
The live video stream sent by the video restoration server is sent to a live participation terminal;
acquiring a live broadcast information acquisition request sent by the anchor terminal based on a trigger instruction of a live broadcast pendant, wherein the live broadcast pendant is displayed in a display interface of an application program of the target game by the anchor terminal, and the display mode of the live broadcast pendant is a default mode, a first mode for indicating unread information, a second mode for indicating a new audience object to enter a live broadcast room corresponding to the anchor live broadcast account, or a third mode for indicating new interaction information;
acquiring live broadcast information generated in a live broadcast room corresponding to the main broadcast live broadcast account based on the live broadcast information acquisition request; and sending the live broadcast information to the anchor terminal, wherein the anchor terminal is used for displaying the live broadcast information in a display interface of an application program of the target game.
2. The method according to claim 1, wherein the method further comprises:
receiving a live host account number, a game identifier of the target game and a default game account number, which are sent by the host terminal, wherein the default game account number is a game account number logged in an application program of the target game to which the host terminal jumps;
Acquiring a first social account number matched with the default game account number and the game identifier of the target game;
and responding to the fact that the first social account is consistent with a second social account corresponding to the anchor live account, and returning a first authentication passing response to the anchor terminal.
3. A method for acquiring a live video stream, wherein the method is applied to a hosting terminal, and the method comprises the following steps:
acquiring a target instruction initiated by a main broadcasting object to live a target game on a target live platform, wherein the target live platform is provided by a social application program;
responding to the verification of the target instruction, sending a game live broadcast request to a social server, wherein the game live broadcast request carries a main broadcasting game account number, a main broadcasting live broadcast account number and a game identifier of the target game, and the social server is used for providing service for the target live broadcast platform;
the social server is used for sending a video restoration instruction carrying the game identification of the main play account number and the target game to a video restoration server based on the game live broadcast request; the video restoration server is used for determining a server of the target game based on the game identifier of the target game, and sending a game operation instruction stream acquisition request carrying the main play game account number to the server of the target game; the server of the target game is used for determining target athletic fight corresponding to the main game account number, and returning a game operation instruction stream generated in the target athletic fight to the video restoration server; the video restoration server is further used for acquiring a game operation instruction stream returned by the server of the target game, generating a live video stream based on the game operation instruction stream, and sending the live video stream to the social server; the social server is also used for acquiring the live video stream sent by the video restoration server and sending the live video stream to a live participation terminal; the game operation instruction stream is used for indicating game operation instructions generated by the participated objects of the target competition;
Displaying a live pendant in a display interface of an application program of the target game, wherein the display form of the live pendant is a default form, a first form used for indicating that unread information exists, a second form used for indicating that a new audience object enters a live room corresponding to the hosting live account or a third form used for indicating that new interaction information exists;
based on the triggering instruction of the live broadcast pendant, a live broadcast information acquisition request is sent to the social server, and the social server is further used for acquiring live broadcast information generated in a live broadcast room corresponding to the live broadcast account number of the host broadcast based on the live broadcast information acquisition request, and sending the live broadcast information to the host broadcast terminal;
and displaying the live information in a display interface of the application program of the target game.
4. The method of claim 3, wherein the target instruction is a first instruction initiated in the social application, the first instruction carrying a live host account number and a game identification of the target game;
the method further comprises, before sending a live game request to the social server in response to the target instruction verification passing:
Jumping to an application program of the target game based on the game identification of the target game, and acquiring a default game account registered in the application program of the target game;
and determining that the first instruction passes verification in response to the live host account and the default game account meeting association conditions.
5. The method of claim 4, wherein the determining that the first instruction passes before the live host account and the default game account satisfy an association condition, the method further comprises:
transmitting the live host account, the game identifier of the target game and the default game account to the social server;
the social server is used for acquiring a first social account number matched with the default game account number and the game identifier of the target game; responding to the fact that the first social account is consistent with a second social account corresponding to the anchor live account, and returning a first authentication passing response to the anchor terminal;
and in response to receiving the first authentication pass response, determining that the live host account and the default game account meet association conditions.
6. A method according to claim 3, wherein the target instruction is a second instruction initiated in an application of the target game, the second instruction carrying a host gaming account;
the method further comprises, before sending a live game request to the social server in response to the target instruction verification passing:
responding to the second instruction as a non-first live broadcast instruction initiated in the application program of the target game, and displaying first confirmation information in the application program of the target game, wherein the first confirmation information is used for indicating that the target game is live broadcast on the target live broadcast platform by utilizing a historical live broadcast account number;
and responding to the confirmation instruction of the first confirmation information, and determining that the second instruction passes the verification.
7. A method according to claim 3, wherein the target instruction is a second instruction obtained from an application of the target game, the second instruction carrying a host game account;
the method further comprises, before sending a live game request to the social server in response to the target instruction verification passing:
responding to the second instruction as a first live broadcast instruction initiated in the application program of the target game, jumping to the social application program, and acquiring a default live broadcast account number logged in a target live broadcast platform provided by the social application program;
Responsive to the default live account number and the anchor game account number meeting associated conditions, displaying second confirmation information in the social application program, wherein the second confirmation information is used for indicating that the target game is live on the target live platform by utilizing the default live account number;
responsive to a confirmation instruction of the second confirmation information, displaying live configuration information in the social application program; and responding to the confirmation instruction of the live broadcast configuration information, and determining that the second instruction passes the verification.
8. A method for acquiring a live video stream, wherein the method is applied to a video restoration server, and the method comprises the following steps:
receiving a video restoration instruction which is sent by a social server based on a game live broadcast request and carries a game identification of a live game account and a target game, wherein the game live broadcast request is sent to the social server by a live broadcast terminal, and the game live broadcast request carries the game identifications of the live game account, the live game account and the target game;
determining a server of the target game based on a game identifier of the target game, sending a game operation instruction stream acquisition request carrying the main game account to the server of the target game, wherein the server of the target game is used for determining target athletic fight corresponding to the main game account, returning a game operation instruction stream generated in the target athletic fight to the video restoration server, and the game operation instruction stream is used for indicating a game operation instruction generated by a participated object of the target athletic fight;
Generating a live video stream based on a game operation instruction stream returned by the server of the target game;
the live video stream is sent to the social server, and the social server is used for sending the live video stream sent by the video restoration server to a live participation terminal;
the social server is further configured to obtain a live broadcast information obtaining request sent by the anchor terminal based on a trigger instruction of a live broadcast pendant, where the live broadcast pendant is displayed in a display interface of an application program of the target game by the anchor terminal, and a display mode of the live broadcast pendant is a default mode, a first mode for indicating that an unread message exists, a second mode for indicating that a new audience object enters a live broadcast room corresponding to the anchor live broadcast account, or a third mode for indicating that new interaction information exists; acquiring live broadcast information generated in a live broadcast room corresponding to the main broadcast live broadcast account based on the live broadcast information acquisition request; and sending the live broadcast information to the anchor terminal, wherein the anchor terminal is used for displaying the live broadcast information in a display interface of an application program of the target game.
9. An acquisition device of a live video stream, the device comprising:
The acquisition unit is used for acquiring a game live broadcast request sent by the anchor terminal, wherein the game live broadcast request carries an anchor game account number, an anchor live broadcast account number and a game identifier of a target game;
the sending unit is used for sending a video restoration instruction carrying the game identification of the main play account number and the target game to a video restoration server based on the game live broadcast request; the video restoration server is used for determining a server of the target game based on the game identifier of the target game, and sending a game operation instruction stream acquisition request carrying the main play game account number to the server of the target game; the server of the target game is used for determining target athletic fight corresponding to the main game account number, and returning a game operation instruction stream generated in the target athletic fight to the video restoration server; the video restoration server is also used for acquiring a game operation instruction stream returned by the server of the target game, generating a live video stream based on the game operation instruction stream, and sending the live video stream to the social server; the game operation instruction stream is used for indicating a game operation instruction generated by a participated object of target competition corresponding to the main game account;
The sending unit is further configured to send the live video stream sent by the video restoration server to a live participation terminal;
the acquiring unit is further configured to acquire a live broadcast information acquiring request sent by the anchor terminal based on a trigger instruction of a live broadcast pendant, where the live broadcast pendant is displayed in a display interface of an application program of the target game by the anchor terminal, and a display mode of the live broadcast pendant is a default mode, a first mode for indicating that an unread message exists, a second mode for indicating that a new audience object enters a live broadcast room corresponding to the anchor live broadcast account, or a third mode for indicating that new interaction information exists; acquiring live broadcast information generated in a live broadcast room corresponding to the main broadcast live broadcast account based on the live broadcast information acquisition request;
the sending unit is further configured to send the live broadcast information to the anchor terminal, where the anchor terminal is configured to display the live broadcast information in a display interface of an application program of the target game.
10. The apparatus of claim 9, wherein the apparatus further comprises:
the receiving unit is used for receiving the live host account number, the game identifier of the target game and a default game account number which are sent by the host terminal, wherein the default game account number is a game account number which is logged in an application program of the target game and is jumped to by the host terminal;
The acquisition unit is further used for acquiring a first social account number matched with the default game account number and the game identifier of the target game;
and the return unit is used for responding to the fact that the first social account is consistent with the second social account corresponding to the anchor live account, and returning a first authentication passing response to the anchor terminal.
11. An acquisition device of a live video stream, the device comprising:
the acquisition unit is used for acquiring a target instruction initiated by a main broadcasting object to live a target game on a target live platform, wherein the target live platform is provided by a social application program;
the sending unit is used for responding to the verification of the target instruction and sending a game live broadcast request to a social server, wherein the game live broadcast request carries a main broadcasting game account number, the main broadcasting live broadcast account number and a game identifier of the target game, and the social server is used for providing service for the target live broadcast platform;
the social server is used for sending a video restoration instruction carrying the game identification of the main play account number and the target game to a video restoration server based on the game live broadcast request; the video restoration server is used for determining a server of the target game based on the game identifier of the target game, and sending a game operation instruction stream acquisition request carrying the main play game account number to the server of the target game; the server of the target game is used for determining target athletic fight corresponding to the main game account number, and returning a game operation instruction stream generated in the target athletic fight to the video restoration server; the video restoration server is further used for acquiring a game operation instruction stream returned by the server of the target game, generating a live video stream based on the game operation instruction stream, and sending the live video stream to the social server; the social server is also used for acquiring the live video stream sent by the video restoration server and sending the live video stream to a live participation terminal; the game operation instruction stream is used for indicating game operation instructions generated by the participated objects of the target competition;
The display unit is used for displaying the live pendant in the display interface of the application program of the target game, wherein the display mode of the live pendant is a default mode, a first mode for indicating unread information, a second mode for indicating a new audience object to enter a live room corresponding to the main broadcasting live account or a third mode for indicating new interaction information;
the sending unit is further configured to send a live broadcast information acquisition request to the social server based on a trigger instruction of the live broadcast pendant, and the social server is further configured to obtain live broadcast information generated in a live broadcast room corresponding to the live broadcast account number based on the live broadcast information acquisition request, and send the live broadcast information to a hosting terminal;
the display unit is further configured to display the live information on a display interface of the application program of the target game.
12. The apparatus of claim 11, wherein the target instruction is a first instruction initiated in the social application, the first instruction carrying a live host account number and a game identification of the target game;
the apparatus further comprises:
a jumping unit, configured to jump to an application program of the target game based on a game identifier of the target game;
The acquisition unit is also used for acquiring a default game account number registered in the application program of the target game;
and the determining unit is used for determining that the first instruction passes verification in response to the fact that the live account number of the anchor and the default game account number meet the association condition.
13. The apparatus of claim 12, wherein the sending unit is further configured to send the live host account, the game identifier of the target game, and the default game account to the social server;
the social server is used for acquiring a first social account number matched with the default game account number and the game identifier of the target game; responding to the fact that the first social account is consistent with a second social account corresponding to the anchor live account, and returning a first authentication passing response to the anchor terminal;
and the determining unit is further used for determining that the live account number of the anchor and the default game account number meet the association condition in response to receiving the first authentication passing response.
14. The apparatus of claim 11, wherein the target instruction is a second instruction initiated in an application of the target game, the second instruction carrying a host gaming account;
The display unit is further configured to display first confirmation information in the application program of the target game in response to the second instruction being a non-first live broadcast instruction initiated in the application program of the target game, where the first confirmation information is used to instruct the target game to be live broadcast on the target live broadcast platform by using the historical live broadcast account number;
the apparatus further comprises:
and the determining unit is used for responding to the confirmation instruction of the first confirmation information and determining that the second instruction passes the verification.
15. The apparatus of claim 11, wherein the target instruction is a second instruction obtained in an application of the target game, the second instruction carrying a host gaming account;
the apparatus further comprises:
a jump unit, configured to jump to the social application program in response to the second instruction being a first live broadcast instruction initiated in the application program of the target game;
the acquisition unit is further used for acquiring a default live account number logged in a target live platform provided by the social application program;
the display unit is further configured to display second confirmation information in the social application program in response to the default live account and the main play account meeting the association condition, where the second confirmation information is used to instruct the target live platform to live the target game by using the default live account; responsive to a confirmation instruction of the second confirmation information, displaying live configuration information in the social application program;
And the determining unit is used for responding to the confirmation instruction of the live broadcast configuration information and determining that the second instruction passes the verification.
16. An acquisition device of a live video stream, the device comprising:
the receiving unit is used for receiving a video restoration instruction which is sent by the social server based on a game live broadcast request and carries a game identifier of a live game account and a target game, wherein the game live broadcast request is sent to the social server by a live broadcast terminal and carries the game identifier of the live game account, the live game account and the target game;
the sending unit is used for determining a server of the target game based on the game identifier of the target game, sending a game operation instruction stream acquisition request carrying the main play game account to the server of the target game, wherein the server of the target game is used for determining target athletic fight corresponding to the main play game account, returning a game operation instruction stream generated in the target athletic fight to a video restoration server, and the game operation instruction stream is used for indicating a game operation instruction generated by a participated object of the target athletic fight;
The generation unit is used for generating a live video stream based on a game operation instruction stream returned by the server of the target game;
the sending unit is further configured to send the live video stream to the social server, where the social server is configured to send the live video stream sent by the video restoration server to a live participation terminal;
the social server is further configured to obtain a live broadcast information obtaining request sent by the anchor terminal based on a trigger instruction of a live broadcast pendant, where the live broadcast pendant is displayed in a display interface of an application program of the target game by the anchor terminal, and a display mode of the live broadcast pendant is a default mode, a first mode for indicating that an unread message exists, a second mode for indicating that a new audience object enters a live broadcast room corresponding to the anchor live broadcast account, or a third mode for indicating that new interaction information exists; acquiring live broadcast information generated in a live broadcast room corresponding to the main broadcast live broadcast account based on the live broadcast information acquisition request; and sending the live broadcast information to the anchor terminal, wherein the anchor terminal is used for displaying the live broadcast information in a display interface of an application program of the target game.
17. A computer device, characterized in that it comprises a processor and a memory, in which at least one computer program is stored, which is loaded and executed by the processor to implement the method of acquiring a live video stream according to any one of claims 1 to 2, or the method of acquiring a live video stream according to any one of claims 3 to 7, or the method of acquiring a live video stream according to claim 8.
18. A computer readable storage medium, wherein at least one computer program is stored in the computer readable storage medium, and the at least one computer program is loaded and executed by a processor to implement the method for acquiring a live video stream according to any one of claims 1 to 2, the method for acquiring a live video stream according to any one of claims 3 to 7, or the method for acquiring a live video stream according to claim 8.
CN202011273323.XA 2020-11-13 2020-11-13 Live video stream acquisition method, device, equipment and storage medium Active CN114501040B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011273323.XA CN114501040B (en) 2020-11-13 2020-11-13 Live video stream acquisition method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011273323.XA CN114501040B (en) 2020-11-13 2020-11-13 Live video stream acquisition method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114501040A CN114501040A (en) 2022-05-13
CN114501040B true CN114501040B (en) 2024-01-30

Family

ID=81490385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011273323.XA Active CN114501040B (en) 2020-11-13 2020-11-13 Live video stream acquisition method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114501040B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018113405A1 (en) * 2016-12-19 2018-06-28 广州虎牙信息科技有限公司 Live broadcast interaction method based on video stream, and corresponding apparatus thereof
CN109011574A (en) * 2018-08-06 2018-12-18 广州华多网络科技有限公司 Interface display methods, system, terminal and device based on live streaming
CN109525851A (en) * 2018-11-12 2019-03-26 咪咕互动娱乐有限公司 live broadcast method, device and storage medium
CN110536146A (en) * 2019-08-19 2019-12-03 广州点云科技有限公司 A kind of live streaming based on cloud game is started broadcasting method, apparatus and storage medium
KR20200069630A (en) * 2018-12-07 2020-06-17 주식회사 볼트홀 System for providing game broadcasting service based on cloud and operating method thereof
CN111314724A (en) * 2020-02-18 2020-06-19 华为技术有限公司 Cloud game live broadcasting method and device
CN111491197A (en) * 2020-04-17 2020-08-04 腾讯科技(深圳)有限公司 Live content display method and device and storage medium
CN111773667A (en) * 2020-07-28 2020-10-16 网易(杭州)网络有限公司 Live game interaction method and device, computer readable medium and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9333433B2 (en) * 2014-02-04 2016-05-10 Sony Computer Entertainment America Llc Online video game service with split clients
US10341537B2 (en) * 2017-09-29 2019-07-02 Sony Interactive Entertainment America Llc Spectator view into an interactive gaming world showcased in a live event held in a real-world venue

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018113405A1 (en) * 2016-12-19 2018-06-28 广州虎牙信息科技有限公司 Live broadcast interaction method based on video stream, and corresponding apparatus thereof
CN109011574A (en) * 2018-08-06 2018-12-18 广州华多网络科技有限公司 Interface display methods, system, terminal and device based on live streaming
CN109525851A (en) * 2018-11-12 2019-03-26 咪咕互动娱乐有限公司 live broadcast method, device and storage medium
KR20200069630A (en) * 2018-12-07 2020-06-17 주식회사 볼트홀 System for providing game broadcasting service based on cloud and operating method thereof
CN110536146A (en) * 2019-08-19 2019-12-03 广州点云科技有限公司 A kind of live streaming based on cloud game is started broadcasting method, apparatus and storage medium
CN111314724A (en) * 2020-02-18 2020-06-19 华为技术有限公司 Cloud game live broadcasting method and device
CN111491197A (en) * 2020-04-17 2020-08-04 腾讯科技(深圳)有限公司 Live content display method and device and storage medium
CN111773667A (en) * 2020-07-28 2020-10-16 网易(杭州)网络有限公司 Live game interaction method and device, computer readable medium and electronic equipment

Also Published As

Publication number Publication date
CN114501040A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN112929687B (en) Live video-based interaction method, device, equipment and storage medium
CN112717423B (en) Live broadcast method, device, equipment and storage medium for game match
CN110213608B (en) Method, device, equipment and readable storage medium for displaying virtual gift
CN109803154B (en) Live broadcast method, equipment and storage medium for chess game
CN110139116B (en) Live broadcast room switching method and device and storage medium
CN111318026B (en) Team forming method, device, equipment and storage medium for competitive game
CN110772793A (en) Virtual resource configuration method and device, electronic equipment and storage medium
CN113509720B (en) Virtual fight playback method, device, terminal, server and storage medium
CN112583806B (en) Resource sharing method, device, terminal, server and storage medium
CN111918086A (en) Video connection method, device, terminal, server and readable storage medium
CN114845129B (en) Interaction method, device, terminal and storage medium in virtual space
CN113274729B (en) Interactive observation method, device, equipment and medium based on virtual scene
CN109771955B (en) Invitation request processing method, device, terminal and storage medium
CN113413615B (en) Game invitation method, game invitation device, computer equipment and storage medium
CN108579075B (en) Operation request response method, device, storage medium and system
CN113204671A (en) Resource display method, device, terminal, server, medium and product
CN114040219B (en) Game live broadcast method, device, system, equipment and computer readable storage medium
CN110833695B (en) Service processing method, device, equipment and storage medium based on virtual scene
CN112367533B (en) Interactive service processing method, device, equipment and computer readable storage medium
CN114405013A (en) Method, device and equipment for communication between different teams in same pair
CN112843703B (en) Information display method, device, terminal and storage medium
CN112261482B (en) Interactive video playing method, device and equipment and readable storage medium
CN111589143B (en) Animation playing method, device, equipment and storage medium
CN112040267A (en) Chorus video generation method, chorus method, apparatus, device and storage medium
CN115086737B (en) Data processing method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40070355

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant