Cross-platform microphone-connected live broadcast authentication method and device, and storage medium
By establishing a connection between the live broadcast platform server, and using the binding between the virtual anchor account and the real anchor account to realize cross-platform live media stream mapping and subscription, the data security of the existing technology mid- and cross-platform live broadcast is solved. and management issues improve the diversity and fun of the audience experience.
Patent Information
- Application Number
- CN202311009354.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-10
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2043-08-10
AI Technical Summary
The existing live broadcast technology of live broadcast is limited to the same live broadcast platform, and lacks diversity, resulting in a reduced interest in the audience's experience, and cross-platform live broadcast of live broadcast is difficult to ensure data security and effective management.
A cross-platform live broadcast authentication method is proposed. By establishing a connection between the first live broadcast platform server and the second live broadcast platform server, the binding between the virtual anchor account and the real anchor account is achieved. Live media stream mapping and subscription for the platform.
The orderly management of cross-platform live broadcasts is realized, the data security of the live broadcast platform is ensured, data is avoided illegally pulling, and the richness and fun of live broadcasts are improved.
Smart Images

Figure CN119484906A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network live broadcasting, and in particular to an authentication method, device and storage medium for cross-platform live broadcasting. Background Art
[0002] Live streaming is a technology that allows anchors to share live audio and video streams with viewers on the Internet through a live streaming platform. Live streaming is a new form of Internet business that reflects the open and shared characteristics of the Internet, giving every ordinary person the opportunity to showcase their talents on the Internet.
[0003] Currently, many live broadcast platforms have the function of live broadcast with microphones. Live broadcast with microphones refers to the host establishing a live broadcast session connection with other live broadcasters through the host terminal. After the live broadcast session connection is established, the host can have two-way audio and video interaction with other live broadcasters, so that the audience can watch the audio and video interaction process between the host and other live broadcasters. Live broadcast with microphones includes live broadcast with microphones for two people and live broadcast with microphones for multiple people. However, the existing live broadcast with microphones is generally limited to the hosts on the same live broadcast platform, lacks diversity, and the fun it brings to the audience is becoming increasingly limited. In this regard, live broadcast with microphones across live broadcast platforms can improve the richness and fun of live broadcast with microphones.
[0004] However, how to ensure the orderly progress of cross-platform live broadcasting, ensure the effective management of live broadcasting on this platform, and ensure the data security of this platform to prevent the data of this platform from being illegally pulled by other live broadcasting platforms has become an important issue that needs to be solved in cross-platform live broadcasting. Summary of the invention
[0005] Based on this, the purpose of this application is to provide an authentication method for cross-platform live broadcast, which realizes orderly management of cross-platform live broadcast and ensures the data security of the live broadcast platform.
[0006] In a first aspect, an embodiment of the present application discloses a cross-platform live broadcast authentication method, which is applied to a first live broadcast platform server, wherein the first live broadcast platform server has a live broadcast account for live broadcasting in a live broadcast room of the first live broadcast platform, wherein the live broadcast account includes a first anchor account and a first virtual anchor account; wherein the first virtual anchor account is bound to a second anchor account of a second live broadcast platform server;
[0007] The following steps are involved:
[0008] In response to a login request sent by the second live broadcast platform server, the login request includes an account identifier of the first live broadcast platform streaming account, verifying whether the first live broadcast platform streaming account is legal, and if so, setting the first live broadcast platform streaming account to a logged-in state;
[0009] In response to a subscription request sent by the second live broadcast platform server, the subscription request includes the account identifier of the first live broadcast platform streaming account and the account identifier of the first anchor account, verifying whether the first live broadcast platform streaming account is logged in, and if so, determining whether the first anchor account can be subscribed according to a preset cross-platform co-hosting anchor whitelist, and if so, recording the subscription information;
[0010] According to the subscription information, the live media stream of the first anchor account is sent to the second live broadcast platform server, so that the second live broadcast platform server receives the live media stream of the first anchor account and maps it to the live media stream of the second virtual anchor account; wherein the second virtual anchor account is bound to the first anchor account.
[0011] A second aspect of the embodiment of the present application discloses a cross-platform live broadcast authentication method, comprising the following steps:
[0012] The second live broadcast platform server sends a login request to the first live broadcast platform server, the login request including the account identifier of the first live broadcast platform streaming account; wherein the first live broadcast platform server has a first live broadcast account for live broadcasting with microphones in the live broadcast room of the first live broadcast platform, the first live broadcast account including a first anchor account and a first virtual anchor account; the second live broadcast platform server has a second live broadcast account for live broadcasting with microphones in the live broadcast room of the second live broadcast platform, the second live broadcast account including a second anchor account and a second virtual anchor account; wherein the first virtual anchor account is bound to the second anchor account, and the second virtual anchor account is bound to the first anchor account;
[0013] The first live broadcast platform server verifies whether the first live broadcast platform streaming account is legal in response to the login request, and if so, sets the first live broadcast platform streaming account to a login state;
[0014] The second live broadcast platform server sends a subscription request to the first live broadcast platform server, where the subscription request includes the account identifier of the first live broadcast platform streaming account and the account identifier of the first anchor account;
[0015] The first live broadcast platform server responds to the subscription request and verifies whether the first live broadcast platform streaming account is in a logged-in state. If the first live broadcast platform account is in a logged-in state, the server determines whether the first anchor account can be subscribed according to a preset cross-platform live broadcast anchor whitelist. If the first anchor account can be subscribed, the server records the subscription information.
[0016] The first live broadcast platform server sends the live broadcast media stream of the first anchor account to the second live broadcast platform server according to the subscription information, so that the second live broadcast platform server receives the live broadcast media stream of the first anchor account and maps it to the live broadcast media stream of the second virtual anchor account.
[0017] A third aspect of an embodiment of the present application discloses a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the computer program implements the steps of the method described in any one of the embodiments of the present application when executed by the processor.
[0018] A fourth aspect of an embodiment of the present application discloses a computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a method as described in any one of the embodiments of the present application.
[0019] In the authentication method for cross-platform live broadcast with microphones described in the embodiment of the present application, the second live broadcast platform server uses the stream-pulling account of the first live broadcast platform to log in to the first live broadcast platform server. When the login is successful, a subscription instruction is generated according to the stream-pulling account of the first live broadcast platform and the first anchor account to subscribe to the live media stream of the first anchor account in the first live broadcast platform server; the first live broadcast platform server verifies whether the stream-pulling account of the first live broadcast platform is in the login state. If it is in the login state, it determines whether the first anchor account can be subscribed according to the preset cross-platform live broadcast with microphones whitelist. If it can be subscribed, the subscription information is recorded; when the live broadcast with microphones starts, the first live broadcast platform server sends the live media stream of the first anchor account to the second live broadcast platform server according to the subscription information. Similarly, authentication can also be performed in the second live broadcast platform server according to the same technical concept and corresponding steps. The authentication method for cross-platform live broadcast with microphones described in the embodiment of the present application ensures the orderly conduct of the cross-platform live broadcast with microphones, ensures the effective management of the live broadcast of this platform, and ensures the data security of this platform, and prevents the data of this platform from being illegally pulled by other live broadcast platforms.
[0020] For better understanding and implementation, the present application is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of an application scenario of a method for cross-platform live broadcast authentication according to an embodiment of the present application;
[0022] Figure 2 A schematic diagram of a live broadcast room interface of an embodiment of the present application;
[0023] Figure 3 A schematic diagram of a flow chart of a method for cross-platform live broadcast authentication according to an embodiment of the present application;
[0024] Figure 4 An interactive schematic diagram of an authentication method for cross-platform live broadcasting with microphones according to an embodiment of the present application;
[0025] Figure 5 An interactive schematic diagram of the steps of processing an access request for a live broadcast account according to an embodiment of the present application;
[0026] Figure 6 A flowchart of an authentication method for cross-platform live broadcasting with microphones according to another embodiment of the present application;
[0027] Figure 7 A schematic diagram of the structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0028] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0029] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0030] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" / "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determination".
[0031] Those skilled in the art will appreciate that the "client", "terminal", "terminal device", and "intelligent device" used in this application include both devices with wireless signal receivers, which are devices with only wireless signal receivers without transmission capabilities, and devices with receiving and transmitting hardware, which are devices with receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. Such devices may include: cellular or other communication devices such as personal computers and tablet computers, which have single-line displays or multi-line displays or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service, personal communication system), which can combine voice, data processing, fax and / or data communication capabilities; PDA (Personal Digital Assistant, personal digital assistant), which may include a radio frequency receiver, pager, Internet / intranet access, web browser, notepad, calendar and / or GPS (Global Positioning System, global positioning system) receiver; conventional laptop and / or palmtop computers or other devices, which have and / or include a conventional laptop and / or palmtop computer or other device with and / or including a radio frequency receiver. The "client", "terminal", "terminal device" and "intelligent device" used herein may be portable, transportable, installed in a vehicle (air, sea and / or land), or suitable for and / or configured to run locally, and / or in a distributed form, at any other location on the earth and / or in space. The "client", "terminal", "terminal device" and "intelligent device" used herein may also be a communication terminal, an Internet terminal, a music / video playing terminal, such as a PDA, a MID (Mobile Internet Device) and / or a mobile phone with a music / video playing function, or may be a smart TV, a set-top box and other devices.
[0032] The hardware referred to by the names such as "server", "client", "service node", and "smart device" in this application is essentially a computer device with the equivalent capabilities of a personal computer. It is a hardware device with the necessary components revealed by the von Neumann principle, such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. The computer program is stored in its memory, and the central processing unit calls the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input and output devices to complete specific functions.
[0033] It should be pointed out that the concept of "server" referred to in this application can also be extended to the case of server clusters. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided. In physical space, these servers can be independent of each other but can be called through interfaces, or integrated into a physical computer or a set of computer clusters. Those skilled in the art should understand this flexibility, and should not use it to restrict the implementation of the network deployment method of this application.
[0034] Please refer to Figure 1 , Figure 1 A schematic diagram of an application scenario of the authentication method for cross-platform live broadcasting provided in an embodiment of the present application, the application scenario includes the first live broadcast platform server 101 provided in an embodiment of the present application and the first anchor client 102 and the first audience client 103 logged in to the first live broadcast platform server 101, wherein the first anchor client 102 and the first audience client 103 interact through the first live broadcast platform server 101; and includes a second live broadcast platform server 201 and the second anchor client 202 and the second audience client 203 logged in to the second live broadcast platform server 201, wherein the second anchor client 202 and the second audience client 203 interact through the second live broadcast platform server 201.
[0035] Among them, the first anchor client 102 has a first anchor account registered in the first live broadcast platform server 101, and it can log in to the first anchor account through the first platform real-time communication tool and push or pull streams; the second anchor client 202 has a second anchor account registered in the second live broadcast platform server 201, and it can log in to the second anchor account through the second platform real-time communication tool and push or pull streams.
[0036] Among them, the first live broadcast platform server 101 communicates with the second live broadcast platform server 201 by loading the second platform real-time communication tool, and pulls the live media stream of the second anchor account from the second live broadcast platform server 201 through the second platform real-time communication tool; the second live broadcast platform server 201 communicates with the first live broadcast platform server 101 by loading the first platform real-time communication tool, and pulls the live media stream of the first anchor account from the first live broadcast platform server 101 through the first platform real-time communication tool.
[0037] In an embodiment of the present application, the real-time communication tool refers to a tool for communicating with a server in an RTC (Real Time Communication) high real-time network, and specifically refers to a program module that can run a specific function to enable a computer device to enter the RTC network and communicate with the server, such as an RTC SDK (Software Development Kit). The first platform real-time communication tool refers to a tool for communicating with the first live broadcast platform server 101 in the RTC high real-time network of the first live broadcast platform, and specifically refers to the RTC SDK of the first live broadcast platform in this embodiment; the second platform real-time communication tool refers to a tool for communicating with the second live broadcast platform server 201 in the RTC high real-time network of the second live broadcast platform, and specifically refers to the RTC SDK of the second live broadcast platform in this embodiment.
[0038] Among them, the first anchor client 102 and the second anchor client 202 refer to the end that sends the live broadcast video, which is usually the client used by the anchor (ie, the live broadcast anchor user) in the live broadcast.
[0039] The first viewer client 103 and the second viewer client 203 refer to an end for receiving and watching a live network video, and are generally the clients used by viewers (ie, live viewer users) who watch the video in a live network video.
[0040] The hardware pointed to by the client is essentially a computer device, specifically, it can be a computer device of the type of a smart phone, a smart interactive tablet, a personal computer, etc. Each client can access the Internet through a well-known network access method and establish a data communication link with the server.
[0041] The first live broadcast platform server 101 and the second live broadcast platform server 201 may be business servers, each of which includes or is connected to the audio data server, video stream server and other servers providing related support for the first live broadcast platform and the second live broadcast platform, thereby forming a logically related service cluster to serve related terminal devices, such as Figure 1 Provides services to the various clients shown in .
[0042] In the embodiment of the present application, the host client and the audience client of the same live broadcast platform can join the live broadcast room (i.e., live broadcast channel) created by the corresponding live broadcast platform server. The above-mentioned live broadcast room refers to a chat room realized by Internet technology, which usually has audio and video broadcast control functions. The host user broadcasts live in the live broadcast room through the host client, and the audience of the audience client can log in to the live broadcast platform server to enter the live broadcast room to watch the live broadcast.
[0043] In the live broadcast room, the host and the audience can interact through known online interactive methods such as voice, video, and text. Generally, the host user performs programs for the audience in the form of audio and video streams, and can also generate behaviors during the interaction. Of course, the application form of the live broadcast room is not limited to online entertainment, but can also be extended to other related scenarios, such as: video conferencing scenarios, product promotion and sales scenarios, and any other scenarios that require similar interactions.
[0044] Specifically, the process of watching live broadcasts by viewers is as follows: viewers can click to access the live broadcast application installed on the viewer client, and choose to enter any live broadcast room, triggering the viewer client to load the live broadcast room interface for the viewer, and conduct various online interactions.
[0045] The first live broadcast platform server 101 and the second live broadcast platform server 201 are two independent network live broadcast platforms, such as the server of the first network live broadcast platform and the second network live broadcast platform.
[0046] The first live broadcast platform server 101 and the second live broadcast platform server 201 establish a network connection and perform data interaction through the network. The first live broadcast platform server 101 locally creates a first virtual anchor client 104 and a first virtual anchor account corresponding to the first virtual anchor client 104. The first virtual anchor client 104 is implemented by the first live broadcast platform server 101 through computational simulation, and the first virtual anchor account corresponding to it is an anchor account that can be logged in to the first live broadcast platform server 101. It should be noted that the virtual anchor client is essentially a program module that implements part or all of the functions (or similar functions) of a general anchor client, which is to enable the live broadcast platform server to conveniently maintain the virtual anchor account according to general procedures, such as the procedure of logging in to the anchor account, the procedure of pushing the stream, the procedure of authentication, etc. The specific steps performed by the virtual anchor client can be set according to the situation, for example, the virtual anchor client can simulate the issuance of a login request to log in to the virtual anchor account on the live broadcast platform server, and for example, the virtual anchor client can simulate the issuance of a push stream instruction to push the stream on the live broadcast platform server.
[0047] Please refer to Figure 2 , Figure 2This is a schematic diagram of the interface of a live broadcast room with microphones in an embodiment of the present application, which displays a live broadcast room with microphones 41 and a virtual anchor and a real anchor located in the live broadcast room with microphones 41. When live broadcasting with microphones is being conducted, the live broadcast media stream of the virtual anchor account and the live broadcast media stream of the real anchor account will be displayed in the live broadcast room with microphones 41. For example, in the live broadcast room of the first live broadcast platform of this embodiment, the live broadcast media stream of the first anchor account and the live media stream of the first virtual anchor account will be displayed.
[0048] When implementing cross-platform live broadcasting by anchors, the first live broadcast platform server 101 obtains the live broadcast media stream uploaded by the first anchor client 102 logged in on the platform. In addition, the first live broadcast platform server 101 obtains the second anchor account corresponding to the second anchor client 202 logged in by the second live broadcast platform server 201, and establishes a binding relationship between the second anchor account and the first virtual anchor account. The first live broadcast platform server 101 obtains the live broadcast media stream uploaded by the second anchor client 202 from the second live broadcast platform server 201 through the binding relationship, and maps the live broadcast media stream uploaded by the second anchor client 202 into the media stream of the first virtual anchor client 104 created locally, so that the second anchor client 202 logged in by the second live broadcast platform server 201 can perform live broadcast in the first live broadcast platform server 101 as the first virtual anchor client 104. The live media stream of the first virtual anchor client 104 can be set by the first live platform server 101 to be viewable / searchable / followable individually or not viewable / searchable / followable individually. In this embodiment, the first live platform server 101 sets the live media stream of the first virtual anchor client 104 to be not viewable / searchable / followable individually, that is, the live media stream of the first virtual anchor client 104 can only be used for live broadcast with microphone connection.
[0049] When the live broadcast with microphones is turned on, the first live broadcast platform server 101 creates a live broadcast room with microphones, adds the first virtual anchor account and the first anchor account to the live broadcast room with microphones, receives the first live media stream sent by the first anchor client 102 as the live media stream of the first anchor account, and pulls the live media stream of the second anchor account from the second live broadcast platform server by loading the second platform real-time communication tool and maps it to the live media stream of the first virtual anchor account, generates the first live media stream with microphones by combining the live media stream of the first anchor account and the live media stream of the first virtual anchor account, and sends the first live media stream with microphones to the client that has joined the first live broadcast room with microphones. The second live broadcast platform server 201 is similar and will not be described in detail.
[0050] In one embodiment, the first live broadcast platform server 101 obtains the live broadcast media stream corresponding to the first anchor account and the live broadcast media stream corresponding to the first virtual anchor account, mixes the live broadcast media stream of the first anchor account and the live broadcast media stream of the first virtual anchor account to obtain a mixed live broadcast media stream, and sends the mixed live broadcast media stream to the client that has joined the live broadcast room with microphones. Among them, the client that joins the live broadcast room with microphones created by the first live broadcast platform server 101 includes the first anchor client 102 and the first audience client 103 that log in to the first live broadcast platform. The second live broadcast platform server 201 is the same and will not be repeated.
[0051] Please refer to Figure 3 and Figure 4 The embodiment of the present application discloses a cross-platform live broadcast authentication method, comprising the following steps:
[0052] S101: The second live broadcast platform server sends a login request to the first live broadcast platform server, wherein the login request includes an account identifier of the first live broadcast platform streaming account; wherein the first live broadcast platform server has a first live broadcast account for live broadcasting with microphones in a live broadcast room of the first live broadcast platform, wherein the first live broadcast account includes a first anchor account and a first virtual anchor account; the second live broadcast platform server has a second live broadcast account for live broadcasting with microphones in a live broadcast room of the second live broadcast platform, wherein the second live broadcast account includes a second anchor account and a second virtual anchor account; wherein the first virtual anchor account is bound to the second anchor account, and the second virtual anchor account is bound to the first anchor account;
[0053] S102: The first live broadcast platform server verifies whether the first live broadcast platform streaming account is legal in response to the login request, and if so, sets the first live broadcast platform streaming account to a login state;
[0054] S103: The second live broadcast platform server sends a subscription request to the first live broadcast platform server, where the subscription request includes the account identifier of the first live broadcast platform streaming account and the account identifier of the first anchor account;
[0055] S104: The first live broadcast platform server verifies, in response to the subscription request, whether the first live broadcast platform streaming account is in a logged-in state. If the first live broadcast platform account is in a logged-in state, the server determines whether the first anchor account can be subscribed according to a preset cross-platform live broadcast anchor whitelist. If the first anchor account can be subscribed, the server records the subscription information.
[0056] S105: The first live broadcast platform server sends the live broadcast media stream of the first anchor account to the second live broadcast platform server according to the subscription information, so that the second live broadcast platform server receives the live broadcast media stream of the first anchor account and maps it to the live broadcast media stream of the second virtual anchor account.
[0057] In the authentication method for cross-platform live broadcast with microphones described in the embodiment of the present application, the second live broadcast platform server uses the stream-pulling account of the first live broadcast platform to log in to the first live broadcast platform server. When the login is successful, a subscription instruction is generated according to the stream-pulling account of the first live broadcast platform and the first anchor account to subscribe to the live media stream of the first anchor account in the first live broadcast platform server; the first live broadcast platform server verifies whether the stream-pulling account of the first live broadcast platform is in the login state. If it is in the login state, it determines whether the first anchor account can be subscribed according to the preset cross-platform live broadcast with microphones whitelist. If it can be subscribed, the subscription information is recorded; when the live broadcast with microphones starts, the first live broadcast platform server sends the live media stream of the first anchor account to the second live broadcast platform server according to the subscription information. Similarly, authentication can also be performed in the second live broadcast platform server according to the same technical concept and corresponding steps. The authentication method for cross-platform live broadcast with microphones described in the embodiment of the present application ensures the orderly conduct of the cross-platform live broadcast with microphones, ensures the effective management of the live broadcast of this platform, and ensures the data security of this platform, and prevents the data of this platform from being illegally pulled by other live broadcast platforms.
[0058] Among them, the connected wheat live broadcast room essentially refers to a session connection established between two or more connected wheat anchor clients that can perform two-way audio and video interaction. The establishment of this session connection enables the two or more connected wheat anchors to be displayed together in the audience client and the audio and video interaction between the two or more anchors can be viewed. Specifically, from the perspective of the audience client, the connected wheat live broadcast room can have only one live broadcast room entrance, and all users who watch the connected wheat live broadcast room enter from this unified entrance, or the connected wheat live broadcast room can also have multiple different live broadcast room entrances, for example, each connected wheat anchor has his own live broadcast room, and the connected wheat live broadcast picture can be seen by entering from any live broadcast room of the connected wheat anchor, that is, the connected wheat live broadcast room is not limited to one live broadcast room, it can also be in various forms, as long as the connected wheat live broadcast picture can be viewed after entering the live broadcast room, it should be considered that the live broadcast room belongs to the connected wheat live broadcast room.
[0059] Specifically, there are various forms or methods for creating a live broadcast room with microphones, especially different live broadcast platforms may be different. For example, a live broadcast channel may be created, and two or more live broadcast accounts of the live broadcast may be pulled into the live broadcast channel. Then, when the live broadcast channel is started, the live broadcast media streams of the two or more live broadcast accounts in the live broadcast channel are obtained, thereby achieving the effect of two or more live broadcasts of the live broadcast; for example, the live broadcast channels of the live broadcast accounts of the live broadcasters may be bound to each other, such as binding the first live broadcast channel of the first live broadcast account with the second live broadcast channel of the second live broadcast account. When the live broadcast is carried out with microphones, the second live broadcast channel pulls the live broadcast media stream of the first live broadcast channel from the first live broadcast channel, and the first live broadcast channel pulls the live broadcast media stream of the second live broadcast channel from the second live broadcast channel, thereby achieving the effect of playing the live broadcast effect of the live broadcast on the first live broadcast channel and the second live broadcast channel respectively. In addition, live broadcast with microphones may be realized in various other forms. In this regard, the present application does not limit the method of creating a live broadcast room with microphones, and it should be considered that any suggested method of live broadcast with microphones without departing from the concept of the present application is within the scope of protection of the present application.
[0060] Among them, the live broadcast account with microphones, including the first and second live broadcast accounts with microphones, refers to the host account of the live broadcast with microphones, which may include several host accounts with microphones. In the cross-platform live broadcast authentication method with microphones in this embodiment, the first live broadcast account with microphones includes the first host account and the first virtual host account, and the second live broadcast account with microphones includes the second host account and the second virtual host account.
[0061] In the embodiment of the present application, the number of host accounts for live broadcast with microphone connection is not limited, and two or more host accounts can be used for live broadcast with microphone connection. In the present embodiment, the first host account and the first virtual host account are used for live broadcast with microphone connection in the first live broadcast platform server, and the second host account and the second virtual host account are used for live broadcast with microphone connection in the second live broadcast platform server. In other embodiments, more host accounts can be used for live broadcast with microphone connection, for example, the first host account can be one or more, and the first virtual host account can also be one or more.
[0062] In the embodiment of the present application, the anchor account, including the first anchor account and the second anchor account, is a real account registered by the anchor of the live broadcast platform on the platform, which is generally also the account used by the anchor to broadcast live or watch others' live broadcast on the platform; and the virtual anchor account, including the first virtual anchor account and the second virtual anchor account, is a virtual anchor account of the platform created by the live broadcast platform server, and the virtual anchor account and the real anchor account of other live broadcast platforms are bound, and the live media stream of the client of the real anchor account of other live broadcast platforms is mapped to the live media stream of the virtual anchor account bound to the live broadcast platform, so that the real anchor account of other live broadcast platforms can be connected to the real anchor account of the live broadcast platform through the virtual live broadcast account created by the platform. Among them, the live media stream is the media data of the anchor's live broadcast, which can be audio and video data, or only video data or only audio data. This application does not limit this, and it can be set or adjusted according to the live broadcast scene.
[0063] Specifically, registering an account generally requires initiating a registration request through a special interface provided by the live broadcast platform and undergoing a specific review process. However, in this embodiment, the virtual anchor account is not registered according to the general registration process, but is directly created in the live broadcast platform server. Of course, the virtual anchor account can also be registered by the anchor of the other platform according to the general registration process and created by the live broadcast platform server. The specific technical means of implementation can be adjusted according to the application scenario, and this application does not limit this.
[0064] In the following, the embodiments of the present application will mainly explain the relevant steps from the perspective of the first live broadcast platform server. The technical concepts embodied therein can also be applied to the second live broadcast platform server. The description of the relevant steps can also be applied to the second live broadcast platform server, which will not be repeated here. Of course, in other embodiments, the second live broadcast platform server can also adopt different authentication methods. In fact, different live broadcast platforms can have their own authentication methods, and these authentication methods can be different. This application does not limit this.
[0065] In step S101, the second live broadcast platform server sends a login request to the first live broadcast platform server, and the login request includes the account identifier of the first live broadcast platform streaming account.
[0066] Among them, the first live broadcast platform streaming account is an account used to log in to the first live broadcast platform server, which can be an audience account or an anchor account of the first live broadcast platform. In this embodiment, the first live broadcast platform streaming account is a live broadcast account established in addition to the first anchor account and the first virtual anchor account. The live broadcast account can be used to establish a live broadcast subscription relationship with the first anchor account, thereby pulling the live media stream of the first anchor account. In other embodiments, the first live broadcast platform streaming account can also be the first virtual anchor account, that is, the second live broadcast platform server can directly log in to the first virtual anchor account in the first live broadcast platform server, and initiate a live broadcast subscription for other anchor accounts on the first live broadcast platform server, thereby pulling the live media streams of other anchor accounts on the first live broadcast platform server.
[0067] In this embodiment, the first live broadcast platform server has pre-configured the first live broadcast platform streaming account, and sent the first live broadcast platform streaming account information, such as the account identifier of the first live broadcast platform streaming account, to the second live broadcast platform server, so that during the cross-platform live broadcast, the second live broadcast platform server can log in to the first live broadcast platform server according to the first live broadcast platform streaming account. After logging in, the first live broadcast platform streaming account can be used to subscribe to the anchor account of the first live broadcast platform server. Generally speaking, after the subscription is successful, the live media stream of the subscribed anchor account on the first live broadcast platform server can be received when the subscribed anchor account starts broadcasting.
[0068] More specifically, in the cross-platform live broadcast in the embodiment of the present application, the anchor account of the second live broadcast platform used for the live broadcast with the first live broadcast platform is bound to a corresponding streaming account of the first live broadcast platform. When the second live broadcast platform server has multiple different anchor accounts that are connected to the anchor account of the first live broadcast platform server across live broadcast platforms, each anchor account of the second live broadcast platform is respectively configured with a streaming account of the first live broadcast platform, and logs in to the first live broadcast platform server through their respective first live broadcast platform streaming accounts, and subscribes to the live media stream of the anchor account of the first live broadcast platform server.
[0069] Please refer to Figure 4 In one embodiment, before step S101, the following steps are also included:
[0070] S100: The first live broadcast platform server obtains the first live broadcast platform microphone connection information, which includes the account identifier of the first live broadcast platform streaming account and the account identifier of the first anchor account, and sends the first live broadcast platform microphone connection information to the second live broadcast platform server, so that the second live broadcast platform server generates the login request according to the account identifier of the first live broadcast platform streaming account, and generates the subscription request according to the account identifier of the first live broadcast platform streaming account and the account identifier of the first anchor account.
[0071] In this embodiment, the first live broadcast platform microphone connection information is used by the second live broadcast platform server to log in to the first live broadcast platform streaming account and subscribe to the live media stream of the anchor account of the first live broadcast platform in the first live broadcast platform server, which specifically includes the first live broadcast platform streaming account information and the anchor account information of the first live broadcast platform for cross-live broadcast platform microphone connection. Specifically, the first live broadcast platform server configures the relevant first live broadcast platform streaming account information and the anchor account information participating in the cross-live broadcast platform microphone connection in advance. After the configuration is completed, the first live broadcast platform microphone connection information including the account identifier of the first live broadcast platform streaming account and the account identifier of the first anchor account is sent to the second live broadcast platform server, and the relevant request of the second live broadcast platform server will be authenticated later according to these configuration information.
[0072] In one embodiment, before the step S100 in which the first live broadcast platform server obtains the first live broadcast platform microphone connection information and sends the first live broadcast platform microphone connection information to the second live broadcast platform server, the step further includes:
[0073] The first live broadcast platform server receives a request instruction including a request for obtaining microphone connection information sent by the second live broadcast platform server, parses the request instruction to obtain source IP address information, and determines whether the source IP address information is legal according to a preset IP address whitelist; if legal, responds to the request for obtaining microphone connection information, obtains the microphone connection information of the first live broadcast platform, and sends the microphone connection information of the first live broadcast platform to the second live broadcast platform server.
[0074] In this embodiment, the second live broadcast platform server first sends a request instruction to the first live broadcast platform server to request the first live broadcast platform connection information. In order to ensure the security of the first live broadcast platform connection information, the first live broadcast platform server needs to first determine whether the request instruction is from a credible source, and respond to the connection information acquisition request only after determining that the source is credible. Specifically, the first live broadcast platform server receives and parses the request instruction including the connection information acquisition request, obtains the source IP address information therein, and determines whether the source IP address information is legal according to the preset IP address whitelist. If it is legal, it responds to the connection information acquisition request, obtains the first live broadcast platform connection information, and sends the first live broadcast platform connection information to the second live broadcast platform server. Among them, the IP address whitelist stores the IP address information of several servers of the second live broadcast platform server. If the IP address whitelist stores the source IP address information, it is determined that the source IP address information is legal. The several servers of the second live broadcast platform server can be servers designated before the cross-platform connection live broadcast for obtaining the first live broadcast platform connection information, for example, they can be business servers or media servers of the second live broadcast platform.
[0075] In one embodiment, in step S100, the first live broadcast platform microphone connection information includes the first live broadcast platform authentication information and the account identifier of the first anchor account, and the first live broadcast platform authentication information includes the account identifier of the first live broadcast platform streaming account;
[0076] The step of the first live broadcast platform server sending the first live broadcast platform microphone connection information to the second live broadcast platform server includes:
[0077] The first live broadcast platform server sends the first live broadcast platform connection information to the second live broadcast platform server, so that the second live broadcast platform server generates the login request according to the first live broadcast platform authentication information, and generates the subscription request according to the first live broadcast platform authentication information and the account identifier of the first anchor account.
[0078] In this embodiment, the first live broadcast platform authentication information is verification information generated by the first live broadcast platform server using encryption and / or digital signature, which needs to be verified by the corresponding decryption algorithm and / or digital signature verification method preset by the first live broadcast platform server. The specific information stored in the first live broadcast platform authentication information includes the account identifier of the first live broadcast platform streaming account and can also include other information as needed. Specifically, the first live broadcast platform authentication information can be a token generated by encryption and / or digital signature, and the token includes the account identifier of the first live broadcast platform streaming account and can also include other information. In one embodiment, the first live broadcast platform authentication information can also include time information and a cross-live broadcast platform microphone connection identifier. Among them, the time information is used to limit the effective time of the first live broadcast platform authentication information, which can be an expiration time, such as a certain time point on a certain day of a certain year; the cross-live broadcast platform microphone connection identifier is a preset identifier for identifying the cross-live broadcast platform microphone connection live broadcast, so as to distinguish it from other non-cross-live broadcast platform microphone connection live broadcast types. The first live broadcast platform server stores a preset microphone connection identifier for determining whether the cross-live broadcast microphone connection identifier matches when receiving the first live broadcast platform authentication information.
[0079] For step S102, the first live broadcast platform server responds to the login request to verify whether the first live broadcast platform streaming account is legal, and if it is legal, the first live broadcast platform streaming account is set to a logged-in state.
[0080] Among them, verifying whether the first live broadcast platform streaming account is legal can be to determine whether the first live broadcast platform streaming account is a legal account of this platform or whether it is a legal account of this platform with streaming authority. If so, it is legal, otherwise it is illegal. Specifically, in one embodiment, according to a preset list of first live broadcast platform streaming accounts that records the first live broadcast platform streaming account, it can be determined whether the first live broadcast platform streaming account is in the list. If so, it is legal, otherwise it is illegal. In another embodiment, the first live broadcast platform streaming account list records the first live broadcast platform streaming account and the corresponding authority information, and according to the authority information recorded in the first live broadcast platform streaming account list, it can be determined whether the first live broadcast platform streaming account has streaming authority. If it has streaming authority, it is legal, otherwise it is illegal.
[0081] Among them, setting the first live streaming platform streaming account to the logged-in state may specifically be setting the state information of the first live streaming platform streaming account in the first live streaming platform server end to the logged-in state, or may be recording the first live streaming platform streaming account in a logged-in state account list for storing accounts in the logged-in state, and of course may be other ways of identifying the logged-in state, which are not limited in this application. Therefore, when it is necessary to verify whether the first live streaming platform streaming account is in the logged-in state during the subscription authentication stage, it may be determined according to the state information, according to the logged-in state account list, or other related methods.
[0082] In an optional embodiment, the login request includes the first live broadcast platform authentication information, and the first live broadcast platform authentication information includes the account identifier of the first live broadcast platform streaming account;
[0083] Step S102: the first live broadcast platform server responds to the login request, and the steps of verifying whether the first live broadcast platform streaming account is legitimate include:
[0084] The first live broadcast platform server responds to the login request sent by the second live broadcast platform server, verifies whether the authentication information of the first live broadcast platform is legal, and if so, verifies whether the first live broadcast platform streaming account has the streaming authority according to the preset first live broadcast platform streaming account list, and if the first live broadcast platform streaming account has the streaming authority, verifies that the first live broadcast platform streaming account is legal.
[0085] In this embodiment, the first live broadcast platform server responds to the login request and verifies whether the first live broadcast platform authentication information is legal through a preset corresponding decoding algorithm and / or digital signature verification method. Only if it is verified to be legal, it further verifies whether the first live broadcast platform streaming account has the permission to pull the stream according to the preset first live broadcast platform streaming account list. If the first live broadcast platform streaming account has the permission to pull the stream, it verifies that the first live broadcast platform streaming account is legal. Among them, the first live broadcast platform streaming account list stores the first live broadcast platform streaming account information with the permission to pull the stream, which can specifically store the account ID of the first live broadcast platform streaming account. Therefore, when verifying whether the first live broadcast platform streaming account has the permission to pull the stream, it can be determined whether the corresponding account ID is stored in the first live broadcast platform streaming account list.
[0086] In a preferred embodiment, the login request includes the first live broadcast platform authentication information, and the first live broadcast platform authentication information includes the account identifier, time information and cross-live broadcast platform microphone connection identifier of the first live broadcast platform streaming account;
[0087] The first live broadcast platform server responds to the login request, and the step of verifying whether the first live broadcast platform streaming account is legitimate includes:
[0088] The first live broadcast platform server responds to the login request sent by the second live broadcast platform server, verifies whether the authentication information of the first live broadcast platform is legal, and if so, determines whether the login request is valid at the current time according to the time information, determines whether the cross-live broadcast connection microphone identifier is a preset connection microphone identifier, and verifies whether the first live broadcast platform flow pulling account has the flow pulling permission according to the preset first live broadcast platform flow pulling account list; if the login request is valid at the current time, the cross-live broadcast connection microphone identifier is a preset connection microphone identifier and the first live broadcast platform flow pulling account has the flow pulling permission, then it is verified that the first live broadcast platform flow pulling account is legal.
[0089] In this embodiment, the first live broadcast platform server verifies whether the authentication information of the first live broadcast platform is legal through the corresponding decoding algorithm and / or digital signature verification method. If it is legal, it further determines whether the login request is valid at the current time based on the time information, determines whether the cross-live broadcast connection mark is a preset connection mark, and verifies whether the first live broadcast platform flow-pulling account has the right to pull the flow based on the preset first live broadcast platform flow-pulling account list. If the login request is valid at the current time, the cross-live broadcast connection mark is a preset connection mark and the first live broadcast platform flow-pulling account has the right to pull the flow, then it is verified that the first live broadcast platform flow-pulling account is legal, otherwise it is verified that the first live broadcast platform flow-pulling account is illegal. Among them, the first live broadcast platform server determines that the login request is invalid when it is determined that the current time exceeds the expiration time of the authentication information of the first live broadcast platform based on the time information and the current time, and determines that the login request is valid if it is determined that the current time does not exceed the expiration time.
[0090] In step S103, the second live broadcast platform server sends a subscription request to the first live broadcast platform server, and the subscription request includes the account identifier of the first live broadcast platform streaming account and the account identifier of the first anchor account.
[0091] Among them, subscription generally refers to the establishment of a live broadcast account and a live broadcast channel of another live broadcast account. When such a live broadcast subscription relationship is successfully established, once the live broadcast channel of the subscribed live broadcast account starts broadcasting, the live broadcast service end will automatically push the live broadcast media stream of the subscribed live broadcast account to the client corresponding to the live broadcast account that issued the subscription. Specifically in this embodiment, if the subscription request is successfully subscribed at the first live broadcast platform service end, the first live broadcast platform service end will record the subscription information, and when the live broadcast channel of the subscribed first anchor account starts broadcasting, the received live broadcast media stream of the first anchor account will be pushed to the second live broadcast platform service end.
[0092] In one embodiment, the subscription request includes the first live broadcast platform authentication information, and the second live broadcast platform server generates the subscription request according to the first live broadcast platform authentication information and the account identifier of the first anchor account and sends the subscription request to the first live broadcast platform server. Similarly, the first live broadcast platform authentication information can be used to further verify the legitimacy of the subscription request.
[0093] For step S104, the first live broadcast platform server responds to the subscription request and verifies whether the first live broadcast platform streaming account is logged in. If it is logged in, it determines whether the first anchor account can be subscribed according to the preset cross-platform live broadcast anchor whitelist. If it is subscribed, the subscription information is recorded.
[0094] The cross-platform mic-linked anchor whitelist stores the anchor account information of the first live broadcast platform participating in the cross-platform mic-linked live broadcast, and specifically can store the account identifier of the anchor account, so that when the first live broadcast platform server detects that the account identifier of the first anchor account is stored in the cross-platform mic-linked anchor whitelist, it determines that the first anchor account can be subscribed, otherwise it determines that the first anchor account cannot be subscribed. Alternatively, the cross-platform mic-linked anchor whitelist stores the account identifier of the anchor account of the first live broadcast platform participating in the cross-platform mic-linked live broadcast and records the information whether it can be subscribed, so that the first live broadcast platform server determines whether the first anchor account can be subscribed according to the information recorded in the cross-platform mic-linked anchor whitelist.
[0095] Generally, when a streaming account successfully subscribes to the live media stream of a host account, the live streaming platform will record the relevant subscription information. The subscription information records the streaming account information that issued the subscription, the host account information that was subscribed to, or the channel information of the subscribed host account, etc. Therefore, when the subscribed host account starts broadcasting, the live media stream of the subscribed host account is automatically obtained according to the recorded subscription information and pushed to the streaming account that issued the subscription.
[0096] In this step, after verifying that the first live streaming platform streaming account is in a logged-in state, if the first anchor account can be subscribed, the subscription is successful and the subscription information is recorded. Specifically, the account ID of the first live streaming platform streaming account, the account ID of the first anchor account, and the channel information of the first anchor account may be recorded in a dedicated subscription database or subscription server and their binding relationship may be recorded.
[0097] In one embodiment, the subscription request includes the first live broadcast platform authentication information;
[0098] Step S104: the first live broadcast platform server responds to the subscription request, and the step of verifying whether the first live broadcast platform streaming account is in a logged-in state includes:
[0099] The first live broadcast platform server responds to the subscription request sent by the second live broadcast platform server, verifies whether the authentication information of the first live broadcast platform is legal, and if so, verifies whether the streaming account of the first live broadcast platform is in a logged-in state.
[0100] In this embodiment, when the first live broadcast platform server receives the subscription request, it is necessary to first verify whether the first live broadcast platform authentication information is legal through a preset decoding algorithm and / or digital signature verification method. If it is legal, it is necessary to further verify whether the first live broadcast platform streaming account is in a logged-in state.
[0101] For step S105, the first live broadcast platform server sends the live broadcast media stream of the first anchor account to the second live broadcast platform server according to the subscription information, so that the second live broadcast platform server receives the live broadcast media stream of the first anchor account and maps it to the live broadcast media stream of the second virtual anchor account.
[0102] Specifically, when the first live broadcast platform server receives the live media stream uploaded by the anchor client corresponding to the subscribed anchor account in the live broadcast platform, it will automatically push the live media stream of the subscribed anchor account to the first live broadcast platform stream pulling account that issued the subscription on the second live broadcast platform server according to the subscription information recorded in the platform. After receiving the live media stream of the first anchor account, the second live broadcast platform server maps the live media stream of the first anchor account to the live media stream of the second virtual anchor account, so that the second virtual anchor account can be connected to other anchor accounts of the second live broadcast platform, such as the second anchor account, for live broadcast in the second live broadcast platform server.
[0103] In one embodiment, the step of sending the live media stream of the first anchor account to the second live broadcast platform server in step S105 further includes:
[0104] At preset intervals, it is detected whether the first live broadcast platform streaming account has the streaming authority and whether the channel status corresponding to the first anchor account is normal. If it is detected that the first live broadcast platform streaming account does not have the streaming authority or the channel status corresponding to the first anchor account is abnormal, the live media stream of the first anchor account is stopped from being sent to the second live broadcast platform server.
[0105] In this embodiment, during the process of the first live broadcast platform server pushing the stream to the second live broadcast platform server, the first live broadcast platform server also periodically performs transmission authentication. The preset period is generally not too long, and can be set to 10 seconds, for example, according to the situation. In this embodiment, the preset period is 10 seconds, mainly to be able to perform transmission authentication in real time and respond in time. Among them, the transmission authentication is mainly to detect whether the streaming authority of the first live broadcast platform streaming account is normal and whether the live broadcast channel of the subscribed first anchor account is normal. If the streaming authority has changed, that is, the first live broadcast platform streaming account no longer has the streaming authority, then the streaming should be stopped in time, or if it is detected that the live broadcast channel of the first anchor account is abnormal, then the streaming should also be stopped in time. Among them, the abnormal situation of the live broadcast channel may include that the live broadcast channel is detected to be in violation, or the live broadcast channel is offline, or there are other faults in the live broadcast channel, etc. The judgment conditions for the abnormality of the live broadcast channel can be set according to the situation.
[0106] More specifically, in this embodiment, the first live broadcast platform server includes a media service and a business service; the media service receives a login request sent by the second live broadcast platform server, verifies the first live broadcast platform authentication information, and verifies whether the first live broadcast platform streaming account is legitimate;
[0107] The media service receives the subscription request sent by the second live broadcast platform server, verifies the authentication information of the first live broadcast platform, and verifies whether the first live broadcast platform streaming account is logged in. If it is logged in, generates a subscription authentication instruction according to the account identifier of the first anchor account, and sends the subscription authentication instruction to the business service;
[0108] The business service responds to the subscription authentication instruction, determines whether the first anchor account can be subscribed according to a preset cross-platform live broadcast anchor whitelist, and sends the determination result to the media service;
[0109] The media service receives the determination result, and if the first anchor account is subscribing, records subscription information;
[0110] The media service generates a transmission authentication instruction according to the account identifier of the first live streaming platform streaming account and the account identifier and / or channel information of the first anchor account at every preset period, and sends the transmission authentication instruction to the business service;
[0111] In response to the transmission authentication instruction, the business service detects whether the first live broadcast platform streaming account has streaming authority and whether the channel status of the first anchor account is normal, and returns the detection result to the media service.
[0112] In this embodiment, the media service is responsible for responding to login requests and subscription requests and based on subscription information, which can refer to a media server or a media server cluster; the business service is responsible for business logic and account information management services, specifically managing live accounts including anchor accounts and / or audience accounts, live channels or microphone channels of live accounts, and management-related permissions, which can refer to a business server or a business server cluster. In this embodiment, multiple services with different divisions of labor interact and collaborate with each other, are compatible with the existing service architecture of the live platform, and achieve efficient authentication.
[0113] Please refer to Figure 4 In one embodiment, the cross-platform live broadcast authentication method further includes the steps of:
[0114] S106: The first live broadcast platform server receives the live broadcast media stream of the second anchor account sent by the second live broadcast platform server and maps it to the live broadcast media stream of the first virtual anchor account.
[0115] In this embodiment, during the cross-platform live broadcast, the first live broadcast platform server also obtains the live media stream of the second live broadcast platform's live broadcast account, such as the second anchor account, from the second live broadcast platform server, and maps it to the live media stream of the first virtual anchor account, so that the first virtual anchor account can perform live broadcast with other anchor accounts of the first live broadcast platform, such as the first anchor account.
[0116] Correspondingly, the second live broadcast platform server can perform authentication based on the same technical concept. Then, before receiving the live media stream of the second anchor account sent by the second live broadcast platform server, the first live broadcast platform server also needs to send a login instruction and a subscription instruction, log in to the second live broadcast platform stream pulling account and subscribe to the second live broadcast platform's connected microphone anchor account, such as the live broadcast channel of the second anchor account, in the second live broadcast platform server, and before that, send a request instruction including a request for obtaining microphone connection information to the second live broadcast platform server to obtain the second live broadcast platform microphone connection information. For details, please refer to the relevant content that has been disclosed in this embodiment, which will not be repeated here. Of course, the second live broadcast platform server can perform authentication based on different technical concepts. Then the first live broadcast platform server can also obtain the live media stream of the connected microphone anchor account from the second live broadcast platform server in other ways.
[0117] In one embodiment, in step S106, the first live broadcast platform server receives the live broadcast media stream of the second anchor account sent by the second live broadcast platform server and maps it to the live broadcast media stream of the first virtual anchor account, including:
[0118] The first live broadcast platform server receives the live media stream of the second anchor account sent by the second live broadcast platform server, and obtains the live stream name of the first virtual anchor account according to the binding relationship between the second anchor account and the first virtual anchor account, wherein the live stream name is generated according to the account identifier of the first virtual anchor account and the corresponding channel information; and generates the live media stream of the first virtual anchor account according to the live media stream of the second anchor account and the live stream name.
[0119] In this embodiment, the live broadcast platform generally generates a dedicated live stream name based on the account ID of the broadcasting anchor account and the corresponding channel information before the live broadcast starts, and registers the live stream name. Only the live media stream carrying the registered live stream name can be successfully pushed to the corresponding anchor channel to start broadcasting. Specifically, the first live broadcast platform server receives the live media stream of the second anchor account sent by the second live broadcast platform server, determines that the live media stream of the second anchor account is the live media stream of the first virtual anchor account based on the preset binding relationship between the second anchor account and the first virtual anchor account, obtains the live stream name of the first virtual anchor account, and generates the live media stream of the first virtual anchor account based on the live media stream of the second anchor account and the live stream name.
[0120] Please refer to Figure 5 In one embodiment, the cross-platform live broadcast authentication method further includes the steps of:
[0121] S107: When the first live broadcast platform server receives an access request for a live broadcast account sent by the viewer client, it determines whether the live broadcast account is the first virtual anchor account; if not, it responds to the access request; if so, it does not respond to the access request.
[0122] Among them, the access request may specifically include a follow request and / or a channel search request and / or a request to enter a live broadcast room. In this embodiment, since the virtual anchor account of the live broadcast platform server is actually used for anchors of other platforms to broadcast live, in order to avoid the traffic of this platform being sucked away by anchors of other platforms, it is necessary to impose certain restrictions on the virtual anchor account, including prohibiting the follow and / or search for the virtual anchor account and / or entering the live broadcast room of the virtual anchor account. Specifically, when the first live broadcast platform server receives an access request for a live broadcast account sent by the audience client, it determines whether the live broadcast account is the first virtual anchor account according to the preset list of virtual anchor accounts; if not, it responds to the access request normally, and if so, it does not respond to the access request. Specifically, the way of not responding to the access request can be not executing and not generating a reaction, or it can be not executing but sending the corresponding request failure information to the audience client. Among them, the preset virtual anchor account list stores virtual anchor account information such as account identification. Specifically, in this embodiment, the account identification of the first virtual anchor account is stored. By judging whether the account identification of the live broadcast account is in the virtual anchor account list, if so, the live broadcast account is the first virtual anchor account, and then restrictions are imposed on it.
[0123] Please refer to Figure 6 The embodiment of the present application also discloses a cross-platform live broadcast authentication method, which is applied to the first live broadcast platform server, and includes the following steps:
[0124] S201: responding to a login request sent by a second live broadcast platform server, the login request including an account identifier of a first live broadcast platform streaming account, verifying whether the first live broadcast platform streaming account is legitimate, and if so, setting the first live broadcast platform streaming account to a logged-in state;
[0125] S202: responding to a subscription request sent by the second live broadcast platform server, the subscription request including the account identifier of the first live broadcast platform streaming account and the account identifier of the first anchor account, verifying whether the first live broadcast platform streaming account is logged in, and if so, determining whether the first anchor account can be subscribed according to a preset cross-platform live broadcast anchor whitelist, and if so, recording the subscription information;
[0126] S203: According to the subscription information, the live media stream of the first anchor account is sent to the second live broadcast platform server, so that the second live broadcast platform server receives the live media stream of the first anchor account and maps it to the live media stream of the second virtual anchor account; wherein the second virtual anchor account is bound to the first anchor account.
[0127] The cross-platform live broadcast authentication method described in this embodiment is protected from the execution perspective of the first live broadcast platform server. Its specific implementation refers to the steps disclosed in any of the above embodiments.
[0128] Please refer to Figure 7 The embodiment of the present application also discloses a computer device 301, including a memory 302, a processor 303, and a computer program 304 stored in the memory 302; when the processor 303 executes the computer program 304, the steps of the method described in any of the above embodiments are implemented.
[0129] Among them, the processor 303 may include one or more processing cores. The processor 303 uses various interfaces and lines to connect various parts in the computer device 301, and executes various functions and processes data of the computer device 301 by running or executing instructions, programs, code sets or instruction sets stored in the memory 302, and calling the data in the memory 302. Optionally, the processor 303 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programble Logic Array, PLA). The processor 303 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch display; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 303, and it can be implemented separately through a chip.
[0130] Among them, the memory 302 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 302 includes a non-transitory computer-readable storage medium. The memory 302 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 302 may also be optionally at least one storage device located away from the aforementioned processor 303.
[0131] The present application embodiment also discloses a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to perform the method described in any of the above embodiments. That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to make a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) perform all or part of the steps of the method described in each embodiment of the present application. The computer program may include a computer program code, which may be in the form of source code, object code, executable file or some intermediate form, etc. The aforementioned storage medium includes: any entity or device capable of carrying a computer program code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0132] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present application, and the present application is also intended to include such modifications and modifications.
Claims
1. A cross-platform live broadcast authentication method, characterized in that: The following steps are involved: The second live broadcast platform server sends a login request to the first live broadcast platform server, the login request including the account identifier of the first live broadcast platform streaming account; wherein the first live broadcast platform server has a first live broadcast account for live broadcasting with microphones in the live broadcast room of the first live broadcast platform, the first live broadcast account including a first anchor account and a first virtual anchor account; the second live broadcast platform server has a second live broadcast account for live broadcasting with microphones in the live broadcast room of the second live broadcast platform, the second live broadcast account including a second anchor account and a second virtual anchor account; wherein the first virtual anchor account is bound to the second anchor account, and the second virtual anchor account is bound to the first anchor account; The first live broadcast platform server verifies whether the first live broadcast platform streaming account is legal in response to the login request, and if so, sets the first live broadcast platform streaming account to a login state; The second live broadcast platform server sends a subscription request to the first live broadcast platform server, where the subscription request includes the account identifier of the first live broadcast platform streaming account and the account identifier of the first anchor account; The first live broadcast platform server responds to the subscription request and verifies whether the first live broadcast platform streaming account is in a logged-in state. If the first live broadcast platform account is in a logged-in state, the server determines whether the first anchor account can be subscribed according to a preset cross-platform live broadcast anchor whitelist. If the first anchor account can be subscribed, the server records the subscription information. The first live broadcast platform server sends the live broadcast media stream of the first anchor account to the second live broadcast platform server according to the subscription information, so that the second live broadcast platform server receives the live broadcast media stream of the first anchor account and maps it to the live broadcast media stream of the second virtual anchor account.
2. A cross-platform live broadcast authentication method, characterized in that: Applied to a first live broadcast platform server, the first live broadcast platform server has a first live broadcast account for live broadcasting in a live broadcast room of the first live broadcast platform, the first live broadcast account includes a first anchor account and a first virtual anchor account; wherein the first virtual anchor account is bound to a second anchor account of a second live broadcast platform server; The following steps are involved: In response to a login request sent by the second live broadcast platform server, the login request includes an account identifier of the first live broadcast platform streaming account, verifying whether the first live broadcast platform streaming account is legal, and if so, setting the first live broadcast platform streaming account to a logged-in state; In response to a subscription request sent by the second live broadcast platform server, the subscription request includes the account identifier of the first live broadcast platform streaming account and the account identifier of the first anchor account, verifying whether the first live broadcast platform streaming account is logged in, and if so, determining whether the first anchor account can be subscribed according to a preset cross-platform co-hosting anchor whitelist, and if so, recording the subscription information; According to the subscription information, the live media stream of the first anchor account is sent to the second live broadcast platform server, so that the second live broadcast platform server receives the live media stream of the first anchor account and maps it to the live media stream of the second virtual anchor account; wherein the second virtual anchor account is bound to the first anchor account.
3. The cross-platform live broadcast authentication method according to claim 2, characterized in that: The login request includes the first live broadcast platform authentication information, and the first live broadcast platform authentication information includes the account identifier of the first live broadcast platform streaming account; The step of verifying whether the first live streaming platform streaming account is legitimate in response to the login request sent by the second live streaming platform server includes: In response to the login request sent by the second live broadcast platform server, verify whether the authentication information of the first live broadcast platform is legal. If it is legal, verify whether the first live broadcast platform streaming account has the streaming authority according to the preset first live broadcast platform streaming account list. If the first live broadcast platform streaming account has the streaming authority, verify that the first live broadcast platform streaming account is legal.
4. The cross-platform live broadcast authentication method according to claim 2, characterized in that: The login request includes the first live broadcast platform authentication information, and the first live broadcast platform authentication information includes the account identifier of the first live broadcast platform streaming account, time information, and a cross-live broadcast platform microphone connection identifier; The step of verifying whether the first live streaming platform streaming account is legitimate in response to the login request sent by the second live streaming platform server includes: In response to a login request sent by the second live broadcast platform server, verify whether the authentication information of the first live broadcast platform is legal; if so, determine whether the login request is valid at the current time according to the time information, determine whether the cross-live broadcast connection mark is a preset connection mark, and verify whether the first live broadcast platform connection account has the connection authority according to a preset list of first live broadcast platform connection accounts; If the login request is valid at the current time, the cross-live broadcast connection identifier is a preset connection identifier, and the first live broadcast platform streaming account has the streaming authority, then it is verified that the first live broadcast platform streaming account is legal.
5. The cross-platform live broadcast authentication method according to claim 3, characterized in that: The subscription request includes the first live broadcast platform authentication information; The step of verifying whether the first live streaming platform streaming account is in a logged-in state in response to the subscription request sent by the second live streaming platform server includes: In response to the subscription request sent by the second live broadcast platform server, verify whether the authentication information of the first live broadcast platform is legal, and if it is legal, verify whether the first live broadcast platform streaming account is in a logged-in state.
6. The cross-platform live broadcast authentication method according to any one of claims 2 to 5, characterized in that: The step of sending the live media stream of the first anchor account to the second live broadcast platform server also includes: At preset intervals, it is detected whether the first live broadcast platform streaming account has the streaming authority and whether the channel status corresponding to the first anchor account is normal. If it is detected that the first live broadcast platform streaming account does not have the streaming authority or the channel status corresponding to the first anchor account is abnormal, the live media stream of the first anchor account is stopped from being sent to the second live broadcast platform server.
7. The cross-platform live broadcast authentication method according to claim 2, characterized in that: Also includes the steps: The first live broadcast platform microphone connection information is obtained, where the first live broadcast platform microphone connection information includes the account identifier of the first live broadcast platform streaming account and the account identifier of the first anchor account, and the first live broadcast platform microphone connection information is sent to the second live broadcast platform server, so that the second live broadcast platform server generates the login request according to the account identifier of the first live broadcast platform streaming account, and generates the subscription request according to the account identifier of the first live broadcast platform streaming account and the account identifier of the first anchor account.
8. The cross-platform live broadcast authentication method according to claim 7, characterized in that: Before the step of obtaining the microphone connection information of the first live broadcast platform and sending the microphone connection information of the first live broadcast platform to the second live broadcast platform server, the step further includes: Receive a request instruction including a request for obtaining microphone connection information sent by the second live broadcast platform server, parse the request instruction to obtain source IP address information, and determine whether the source IP address information is legal according to a preset IP address whitelist; if it is legal, respond to the request for obtaining microphone connection information, obtain the microphone connection information of the first live broadcast platform, and send the microphone connection information of the first live broadcast platform to the second live broadcast platform server.
9. The cross-platform live broadcast authentication method according to claim 7, characterized in that: The first live broadcast platform microphone connection information includes the first live broadcast platform authentication information and the account identifier of the first anchor account, and the first live broadcast platform authentication information includes the account identifier of the first live broadcast platform streaming account; The step of sending the microphone connection information of the first live broadcast platform to the second live broadcast platform server includes: The first live broadcast platform connection information is sent to the second live broadcast platform server, so that the second live broadcast platform server generates the login request according to the first live broadcast platform authentication information, and generates the subscription request according to the first live broadcast platform authentication information and the account identifier of the first anchor account.
10. The cross-platform live broadcast authentication method according to claim 2, characterized in that: The following steps are also included: Receive the live media stream of the second anchor account sent by the second live broadcast platform server and map it to the live media stream of the first virtual anchor account.
11. The cross-platform live broadcast authentication method according to claim 10, characterized in that: The step of receiving the live media stream of the second anchor account sent by the second live broadcast platform server and mapping it to the live media stream of the first virtual anchor account includes: Receive the live media stream of the second anchor account sent by the second live broadcast platform server, and obtain the live stream name of the first virtual anchor account according to the binding relationship between the second anchor account and the first virtual anchor account, wherein the live stream name is generated according to the account identifier of the first virtual anchor account and the corresponding channel information; generate the live media stream of the first virtual anchor account according to the live media stream of the second anchor account and the live stream name.
12. The cross-platform live broadcast authentication method according to claim 2, characterized in that: Also includes the steps: When receiving an access request for a live broadcast account sent by a viewer client, determine whether the live broadcast account is the first virtual anchor account; if not, respond to the access request; if so, do not respond to the access request.
13. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory, wherein the computer program implements the steps of the method according to any one of claims 1 to 12 when executed by the processor.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Live video streaming method and relevant equipment
CN106454537A
Cross-platform microphone connection method and device, storage medium and electronic equipment
CN112714131A
Multi-anchor live broadcast method and device
CN115842936A
Interactive livestreaming experience
US20230209103A1