WO2021238098A1 - 直播方法、装置、电子设备及存储介质 - Google Patents

直播方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2021238098A1
WO2021238098A1 PCT/CN2020/128679 CN2020128679W WO2021238098A1 WO 2021238098 A1 WO2021238098 A1 WO 2021238098A1 CN 2020128679 W CN2020128679 W CN 2020128679W WO 2021238098 A1 WO2021238098 A1 WO 2021238098A1
Authority
WO
WIPO (PCT)
Prior art keywords
live broadcast
account
live
identifier
record
Prior art date
Application number
PCT/CN2020/128679
Other languages
English (en)
French (fr)
Inventor
梁栩华
Original Assignee
北京达佳互联信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Priority to EP20938376.9A priority Critical patent/EP4054198A1/en
Publication of WO2021238098A1 publication Critical patent/WO2021238098A1/zh
Priority to US17/745,702 priority patent/US11523146B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23109Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion by placing content in organized collections, e.g. EPG data repository
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25875Management of end-user data involving end-user authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/654Transmission by server directed to the client
    • H04N21/6547Transmission by server directed to the client comprising parameters, e.g. for client setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8352Generation of protective data, e.g. certificates involving content or source identification data, e.g. Unique Material Identifier [UMID]

Definitions

  • the present disclosure relates to the field of video live broadcast technology, and in particular to a live broadcast method, device, electronic equipment, and storage medium.
  • any ordinary user can start the live broadcast through the device, so that he can share his life as an anchor in real time with other users around the world, such as the well-known game live broadcast, show live broadcast (eating broadcast, talent show) , Travel live broadcast) and other scenes.
  • the live broadcast behavior of the live broadcast is initiated by the anchor through the live broadcast device (PC client, Android client, iOS client, etc.).
  • the initiated live broadcast will be written into MySQL (database) through the interactive service (server), and each live broadcast has a corresponding live record in MySQL.
  • a live broadcast is initiated by a host through any live broadcast device.
  • the live broadcast status will be set to LIVING (live broadcast status) in the live broadcast record of the live broadcast.
  • the live broadcast status will be set to ENDED (live broadcast). End state).
  • LIVING live broadcast status
  • ENDED live broadcast
  • an anchor initiates a new live broadcast through another live broadcast device, if the interactive service finds that the anchor currently has a LIVING live broadcast in the live broadcast record, it will first set the current LIVING live broadcast to ENDED, and send the live broadcast to the live broadcaster and The viewer sends the message "The live broadcast room has been closed", and then initiates a new live broadcast, adds a new live broadcast record in MySQL for the new live broadcast, and sets the live broadcast status to LIVING in the new live broadcast record.
  • the present disclosure provides a live broadcast method, device, electronic equipment, and storage medium.
  • the technical solutions of the present disclosure are as follows:
  • a live broadcast method is applied to a server, the server is used to store a first live broadcast record of a first live broadcast, and the first live broadcast record includes a live broadcast status, a first live broadcast identifier, and A live broadcast account, the live broadcast device of the first live broadcast is the first device; the method includes: receiving a pre-live broadcast request sent by the second device through the live broadcast account; determining the corresponding first live broadcast record according to the live broadcast account, and Acquire the live broadcast status from the first live broadcast record; when the live broadcast status is the live broadcast state, send the first live broadcast parameter to the live broadcast account of the second device; wherein, the first live broadcast parameter Corresponding to the first live broadcast identifier; receive the live broadcast start request corresponding to the first live broadcast parameter sent by the second device through the live broadcast account; send the live broadcast account of the second device to carry the first live broadcast identifier
  • the first live broadcast start instruction of the second device causes the second device to push the live broadcast data carrying the first
  • a live broadcast method applied to a second device includes:
  • a pre-live broadcast request is sent to the server through a live broadcast account; the server is used to store a first live broadcast record of the first live broadcast.
  • the first live broadcast record includes a live broadcast status, a first live broadcast identifier, and a live broadcast account.
  • the live broadcast device is the first device;
  • the live broadcast parameter sent by the server is received through the live broadcast account; wherein, the first live broadcast parameter is the same as all the live broadcast parameters.
  • the first live broadcast parameter is the same as all the live broadcast parameters.
  • the first live broadcast instruction carrying the first live broadcast identifier sent by the server is received through the live broadcast account, and the live broadcast data carrying the first live broadcast identifier is pushed to continue the first live broadcast.
  • a live broadcast device applied to a server, the server is used to store a first live broadcast record of a first live broadcast, and the first live broadcast record includes a live broadcast status and a first live broadcast identifier And a live account, the live broadcast device of the first live broadcast is the first device; the device includes:
  • the first request receiving unit is configured to receive the pre-live broadcast request sent by the second device through the live broadcast account
  • the live broadcast status obtaining unit is configured to execute the determination of the corresponding first live broadcast record according to the live broadcast account, and obtain the live broadcast status from the first live broadcast record;
  • the parameter sending unit is configured to send first live broadcast parameters to the live broadcast account of the second device when the live broadcast status is the live broadcast state; wherein, the first live broadcast parameters are the same as the first live broadcast Logo correspondence;
  • a second request receiving unit configured to perform receiving a live broadcast start request corresponding to the first live broadcast parameter sent by the second device through the live broadcast account;
  • the live broadcast instruction sending unit is configured to send a first live broadcast start instruction carrying the first live broadcast identifier to the live broadcast account of the second device, so that the second device pushes and carries the live broadcast account through the live broadcast account.
  • the live broadcast data identified by the first live broadcast is used to continue the first live broadcast.
  • a live broadcast device which is applied to a second device, and the device includes:
  • the first request sending unit is configured to send a pre-live broadcast request to the server through the live broadcast account;
  • the server is used to store the first live broadcast record of the first live broadcast, and the first live broadcast record includes the live broadcast status and the first live broadcast identifier
  • a live broadcast account the live broadcast device of the first live broadcast is the first device;
  • the parameter receiving unit is configured to receive the first live broadcast parameter sent by the server through the live broadcast account when the live broadcast status in the first live broadcast record corresponding to the live broadcast account is the live broadcast state; wherein, The first live broadcast parameter corresponds to the first live broadcast identifier;
  • the second request sending unit is configured to send a live broadcast start request corresponding to the first live broadcast parameter to the server through the live broadcast account;
  • the live broadcast data pushing unit is configured to receive the first live broadcast start instruction carrying the first live broadcast identifier sent by the server through the live broadcast account, and push the live broadcast data carrying the first live broadcast identifier to continue the live broadcast. Said the first live broadcast.
  • an electronic device including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the instructions to implement Perform the live broadcast method as described above.
  • a storage medium when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the above-mentioned live broadcast method.
  • a computer program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of the device reads from the readable storage medium The computer program is read and executed, so that the device executes the live broadcast method described in any one of the embodiments of the first aspect and the second aspect.
  • Fig. 1 is a diagram showing an application environment of a live broadcast method according to an embodiment of the present disclosure.
  • Fig. 2 is a flowchart showing a live broadcast method according to an embodiment of the present disclosure.
  • Fig. 3 is a schematic diagram showing a flow of live broadcast when switching devices according to an embodiment of the present disclosure.
  • Fig. 4 is a flowchart showing another live broadcast method according to an embodiment of the present disclosure.
  • Fig. 5 is a schematic diagram showing another flow of live broadcasting when switching devices according to an embodiment of the present disclosure.
  • Fig. 6 is a block diagram showing a live broadcast device according to an embodiment of the present disclosure.
  • Fig. 7 is a block diagram showing another live broadcast device according to an embodiment of the present disclosure.
  • Fig. 8 is an internal structure diagram of an electronic device according to an embodiment of the present disclosure.
  • Fig. 9 is a diagram showing the internal structure of another electronic device according to an embodiment of the present disclosure.
  • the live broadcast method provided by the present disclosure can be applied to the application environment as shown in FIG. 1.
  • the application environment includes a first device 101, a second device 102, a server 103, and a video stream source station 104, and these network nodes are connected through a network.
  • the first live broadcast record corresponding to the first live broadcast will be written in the database of the server 103, where the first live broadcast record includes the live broadcast status, the first live broadcast identifier, and the live broadcast If the second device 102 sends a pre-live broadcast request to the server 103 through the live broadcast account, the server 103 determines the corresponding first live broadcast record according to the live broadcast account, and obtains the live broadcast status from the first live broadcast record.
  • the server 103 receives the live broadcast start request corresponding to the first live broadcast parameter sent by the second device 102 through the live broadcast account,
  • the first live broadcast instruction carrying the first live broadcast identifier is sent to the live broadcast account of the second device 102;
  • the second device 102 pushes the live broadcast data carrying the first live broadcast identifier to the video streaming source station 104 through the live broadcast account to continue the first live broadcast.
  • the first device 101 and the second device 102 can be, but are not limited to, various personal computers, laptops, smart phones, tablets, and portable wearable devices.
  • the server 103 can be an independent server or a server cluster composed of multiple servers. accomplish. Among them, the server 103 can be connected to the first device 101 and the second device 102, and of course can also be connected to other devices to return corresponding data to the first device 101 and the second device 102. At the same time, the video stream source station 104 is connected to at least one The content distribution network node pushes the live broadcast data pushed by the first device 101 and the second device 102 to each content distribution network node.
  • Fig. 2 is a flow chart of a live broadcast method according to an embodiment of the present disclosure.
  • the live broadcast method is used in a server, and the server is used to store a first live record of the first live broadcast. Including the live broadcast status, the first live broadcast identifier, and the live broadcast account.
  • the live broadcast device of the first live broadcast is the first device; including the following steps:
  • step S201 a pre-live broadcast request sent by the second device through the live broadcast account is received.
  • the first device and the second device refer to the live broadcast equipment for the anchor to push live broadcast data for live broadcast.
  • each anchor has its own live broadcast account, and the corresponding anchor can be uniquely located through the live broadcast account.
  • the second device sends the pre-live broadcast request through the live broadcast account, and the live broadcast account is the live broadcast account of the live broadcast device (that is, the first device) that initiated the first live broadcast, indicating that it is the operation of the same anchor.
  • the first device refers to the live broadcast device when the anchor starts the first live broadcast.
  • the first device may request the server to enable the first live broadcast through the live broadcast account, and when the server agrees to the first device to enable the first live broadcast, the first live broadcast identifier (such as the live broadcast ID ( Identity document)), and return the first live broadcast identifier and the live broadcast address of the video stream source station to the first device, so that the first device can push the live broadcast data carrying the first live broadcast identifier to the video stream source station based on the live broadcast address,
  • the CDN Content Delivery Network, content delivery network
  • the server when the server agrees that the first device opens the first live broadcast, the first live broadcast record will be saved on the server.
  • the information in the first live broadcast record includes at least the live broadcast status of the first live broadcast, the first live broadcast identifier, and the information of the first live broadcast. Live account. It should be noted that if the first live broadcast has not been closed, then the first live broadcast is in the live broadcast state.
  • the first live broadcast when the first live broadcast is still in the live broadcast state, if the first device has problems such as crash, power outage or touch failure, the first device will not be able to continue to push the live data to the video streaming source station.
  • the live broadcast can continue.
  • the host will choose to use the second device to request the server to start the live broadcast through the same live broadcast account.
  • step S202 the corresponding first live broadcast record is determined according to the live broadcast account, and the live broadcast status is obtained from the first live broadcast record.
  • the server’s database pre-stores the live records of multiple live accounts, the server queries the database according to the live account of the second device, obtains the live record corresponding to the live account, and uses it as the first live record. Acquire the live broadcast status in the first live broadcast record.
  • step S203 when the live broadcast status is the live broadcast status, the first live broadcast parameter is sent to the live broadcast account of the second device; wherein the first live broadcast parameter corresponds to the first live broadcast identifier.
  • the live broadcast status when the live broadcast status is the live broadcast state, it means that the first live broadcast initiated by the live broadcast account on the first device is in the live broadcast state, and the first live broadcast parameters and the second live broadcast parameters are sent to the second device through the server. , For the account selection of the second device; wherein, the first live broadcast parameter corresponds to the first live broadcast identifier.
  • the host can choose to use the live account used when opening the first live broadcast through the first device in the second device, then the live account of the second device and the live account of the first device are the same, which means it is the same host operate.
  • Two live broadcast parameters can be returned to the second device, namely the first live broadcast parameter (currentLivePrePushResult) and the second live broadcast parameter (prePushResult), which correspond to the first live broadcast (the old live broadcast) and the second live broadcast (new live broadcast) respectively, that is, the first live broadcast parameter (currentLivePrePushResult) and the second live broadcast parameter (new live broadcast).
  • a live broadcast parameter corresponds to the first live broadcast identifier of the first live broadcast.
  • step S204 a live broadcast start request corresponding to the first live broadcast parameter sent by the second device through the live broadcast account is received.
  • the live broadcast start request is a corresponding request when the account of the second device selects the first live broadcast parameter; the live broadcast start request includes the second device identifier of the second device.
  • the second device can confirm that the current account is using another device for live broadcast, so it will generate a prompt message based on the two live broadcast parameters and pop it up on the second device, such as a pop-up prompt message It can be "detect when you currently have another live broadcast on the first device", and provide three options "restart a new live broadcast/switch an existing live broadcast to the second device/cancel operation" for the account of the second device ( Anchor) selection.
  • the account of the second device selects the option of "switching the existing live broadcast to the second device", that is, the first live broadcast parameter is selected, it means that the first live broadcast is to be switched to the second device, that is, the broadcast is restarted without changing the live broadcast.
  • the account of the second device selects the option of “restart the new live broadcast”, that is, selects the second live broadcast parameters, it means that the subsequent process is the same as the plan for the first device to activate the first live broadcast, except that the second device is activated with a new one.
  • the server will stop the first live broadcast and start a new live broadcast.
  • the server when the user of the second device selects the option of "switching the existing live broadcast to the second device", that is, selects the first live broadcast parameter, the server will receive and the second device sent through the live broadcast account.
  • the live broadcast start request corresponding to the first live broadcast parameter indicates that the account of the second device wishes to switch the first live broadcast to the second device.
  • step S205 the first live broadcast instruction carrying the first live broadcast identifier is sent to the live broadcast account of the second device, so that the second device pushes the live broadcast data carrying the first live broadcast identifier through the live broadcast account to continue the first live broadcast.
  • the server After it is determined that the account wants to switch the first live broadcast to the second device, the server will send the first live broadcast identification of the first live broadcast to the live broadcast account of the second device, so that the second device can send the live broadcast account to the video streaming source station Push the live broadcast data carrying the first live broadcast identifier to continue the first live broadcast.
  • the first live broadcast record is generated, and the first live broadcast record in the live broadcast state is stored.
  • the second device receives the live broadcast through the live broadcast at this time
  • the pre-live broadcast request sent by the account the corresponding first live record is determined according to the live account, and the live status is obtained from the first live record; when the live status is in the live status, the first live broadcast parameters are sent to the live account of the second device ;
  • the first live broadcast parameter corresponds to the first live broadcast identifier; receive the live broadcast start request corresponding to the first live broadcast parameter sent by the second device through the live broadcast account; send the first live broadcast identifier carrying the first live broadcast to the live broadcast account of the second device
  • the live broadcast start instruction causes the second device to push the live broadcast data carrying the first live broadcast identifier through the live broadcast account to continue the first live broadcast, that is, restart the broadcast without changing the live broadcast.
  • the first device's processing of the live broadcast (that is, the first live broadcast) of the live broadcast state can be switched to the second device, because the second device continues to use the first live broadcast when pushing live broadcast data to the video streaming source station.
  • the viewer device requests live data based on the first live broadcast identifier. Therefore, even if the device is switched during the live broadcast process, there is no need for the viewer device to request a new one from the server. Live broadcast identification.
  • the embodiments of the present disclosure are particularly suitable for large-scale live broadcasts, and a large number of viewer devices do not need to re-initiate requests, saving server resources.
  • the first live broadcast instruction carrying the first live broadcast identification is sent to the live broadcast account of the second device, so that the second device pushes the live broadcast data carrying the first live broadcast identification through the live broadcast account to continue
  • Performing the first live broadcast specifically includes: sending a first live broadcast start instruction carrying a first live broadcast identifier to the live broadcast account of the second device.
  • the first live broadcast start instruction also includes the live broadcast address of the video stream source station, so that the second device can use the live broadcast account Push the live broadcast data carrying the first live broadcast identifier to the video streaming source station based on the live broadcast address to continue the first live broadcast.
  • the server after determining that the account wants to switch the first live broadcast to the second device, the server will send the first start carrying the first live broadcast identifier and the live broadcast address of the video streaming source station to the live broadcast account of the second device.
  • Live broadcast instruction after receiving the first live broadcast start instruction, the second device finds the corresponding video stream source station according to the live broadcast address of the video stream source station, and pushes the first live broadcast identifier to the video stream source station through the live broadcast account Live broadcast data to continue the first live broadcast.
  • the audience device does not need to request a new live broadcast identifier from the server, that is, does not need to re-initiate the request, and the server does not need to respond to too many requests, thereby saving server resources.
  • the first live broadcast parameter is sent to the live broadcast account of the second device, It also includes: sending the first live broadcast parameters to the live account of the second device, and at the same time sending the second live parameters to the live account of the second device; sending the first live parameters to the live account of the second device, and at the same time to the second
  • the method further includes: receiving a live broadcast start request corresponding to the second live broadcast parameters sent by the second device through the live broadcast account; generating a second live broadcast identifier, and generating a second live broadcast record; second The live broadcast record includes the second live broadcast identifier and the live broadcast account; the second live broadcast instruction carrying the second live broadcast identifier is sent to the live broadcast account of the second device, so that the second device pushes the live broadcast data carrying the second live broadcast.
  • the live broadcast start request corresponding to the second live broadcast parameter refers to a request corresponding to when the second live broadcast parameter is selected by the account of the second device.
  • the server includes a database (MySQL) for recording live broadcasts, each live broadcast corresponds to a live broadcast record, and the first live broadcast started by the first device has a corresponding first live broadcast record in the database.
  • MySQL database
  • the server allows the second device to start the second live broadcast, and assigns a second live broadcast identifier to the second live broadcast.
  • the second live broadcast record for the second live broadcast will be inserted into the database.
  • the information in the second live broadcast record includes a second live broadcast identifier and a live broadcast account.
  • the server will also feed back the second live broadcast identification to the live broadcast account of the second device in the form of a second live broadcast start instruction, so that the second device can push the live broadcast carrying the second live broadcast identification to the video streaming source station through the live broadcast account. Data for the second live broadcast.
  • applying the embodiments of the present disclosure can continue to start the second live broadcast on the second device through the same live broadcast account in the case that the account has already started the first live broadcast on the first device through the live broadcast account, so that the account can appear on the device When there are problems such as crashes, the device is switched to continue the live broadcast, thus ensuring the normal live broadcast of the account.
  • the first device is used to push the live broadcast data carrying the first live broadcast identifier through the live broadcast account to continue the first live broadcast.
  • the first device after the second device starts the second live broadcast through the live broadcast account, the first device (that is, the original device) can still continue the first live broadcast.
  • sending the second live broadcast instruction carrying the second live broadcast identifier to the live broadcast account of the second device so that the second device pushes the live broadcast data carrying the second live broadcast identifier through the live broadcast account to perform the second live broadcast. It includes: sending a second live broadcast start instruction carrying a second live broadcast identifier to the live broadcast account of the second device, and the second live broadcast start instruction also includes the live broadcast address of the source station of the video stream, so that the second device sends the live broadcast to the video stream based on the live broadcast address through the live broadcast account.
  • the source station pushes the live broadcast data carrying the second live broadcast identifier to perform the second live broadcast.
  • the server after determining that the account wants to start a new live broadcast through the second device, the server will send the second live broadcast carrying the second live broadcast identifier and the live broadcast address of the video stream source station to the live broadcast account of the second device.
  • the second device finds the corresponding video streaming source station according to the live broadcast address of the video streaming source station, and pushes the video streaming source station carrying the second live broadcast identifier through the live broadcast account Live data for the second live broadcast.
  • the account can switch to a new device to continue the live broadcast when the device has problems such as crashes, thereby ensuring the normal live broadcast of the account.
  • the first live broadcast record and the second live broadcast record include a status field
  • the second live broadcast instruction carrying the second live broadcast identifier is sent to the live broadcast account of the second device so that the second device can use the live broadcast account
  • the method further includes: modifying the status field in the first live broadcast record from the live broadcast state to the live broadcast end state, and changing the status field in the second live broadcast record Set to the live broadcast state; after the status field in the first live broadcast record is changed from the live broadcast state to the live broadcast end state, a notification message to close the live broadcast is sent to the first device, so that the first device stops pushing and carrying the first live broadcast account through the live broadcast account.
  • the live broadcast data of the live broadcast identifier is modifying the status field in the first live broadcast record from the live broadcast state to the live broadcast end state, and changing the status field in the second live broadcast record Set to the live broadcast state
  • a notification message to close the live broadcast is sent to the first device, so that the first device stops pushing and carrying the first live broadcast account through the live broadcast account.
  • the live record includes a status field (status), among which, if the status field in the live record is set to LIVING (live live status), it means that the live broadcast corresponding to the live record is still live. If the status in the live record is If the field is set to END (live broadcast end state), it means that the live broadcast corresponding to the live broadcast record has ended.
  • status field status field
  • the status field in the first live broadcast record is the live broadcast status, if At this time, the account uses the second device to start the second live broadcast, then the status field in the first live broadcast record is modified to the live broadcast end state through the server, and a notification message to close the live broadcast is sent to the first device to notify the first device to stop using the live broadcast.
  • the account pushes the live broadcast data carrying the first live broadcast identifier, that is, closes the first live broadcast.
  • the server sets the status field of the second live broadcast record corresponding to the second live broadcast to the live broadcast state.
  • the server may also modify or add live broadcast records according to actual conditions, and may perform processing according to actual conditions when the same account requests to start live broadcast next time.
  • FIG. 3 it shows a schematic diagram of a live broadcast flow when switching devices, involving viewers of live1, viewers of live2, device A (second device), device B (first device), interactive service (server), MySQL (Database), video stream source station, the specific implementation steps are as follows:
  • Device A sends a prePush request (pre-live broadcast request) to the interactive service through the live broadcast account to request prePushResult;
  • Device A sends a startPush request (request to start live broadcast) to the interactive service based on prePushResult;
  • the interactive service inserts a live 2 live record into MySQL, and sets the status field (status) of the live record to LIVING (live status);
  • the interactive service informs device B that it has been turned off;
  • device B has activated live2 (first live broadcast) through the same live broadcast account, the interactive service will notify the viewers of live2 that the broadcast has been closed;
  • startPushResult (start live broadcast parameter) returned by the interactive service, where startPushResult includes the live broadcast address (KTP (Kwai Transport Protocol) live broadcast address) and some other business parameters (live broadcast identifier and live broadcast title) Wait);
  • KTP Kwai Transport Protocol
  • Device A uses the KTP protocol to push live data to the video streaming source station to start live1 (the second live broadcast);
  • the interactive service informs the audience of live1 that it has been closed
  • step 12 If device A fails to broadcast live, it will automatically initiate a shutdown to the interactive service and skip to step 12;
  • Device A sends stopPush (to close the live broadcast instruction) to the interactive service
  • the interactive service sets the status in the live2 live record in the database to END (live broadcast end status);
  • the interactive service returns a live broadcast end message to device A.
  • the same account can initiate live broadcasts through different devices, and the previously initiated live broadcasts will not affect the live broadcasts initiated later, but you can choose to close the live broadcasts initiated earlier so that the live broadcasts initiated later can proceed normally. , Then even if the device fails, the user can still live broadcast normally.
  • the live broadcast start request includes the second device identifier of the second device
  • the first live broadcast record also includes the re-live broadcast device field.
  • the first live broadcast includes a live broadcast device field in the first live broadcast record in the database, and when the first live broadcast is started by the first device, the live broadcast device field (PushDeviceId) of the first live broadcast record is written in the first live broadcast record.
  • the device identification of a device is unique in the world and is used to identify a specific live broadcast device.
  • the server receives the pre-live broadcast request sent by the second device, it sets the rePushDeviceId of the first live broadcast record of the first live broadcast in the database to the second device identifier of the second device.
  • the server receives the pre-live broadcast request sent by the second device, it sets the rePushDeviceId of the first live broadcast record of the first live broadcast in the database to the second device identifier of the second device.
  • the server receives the pre-live broadcast request sent by the second device, it sets the rePushDeviceId of the first live broadcast record of the first live broadcast in the database to the second device identifier of the second device.
  • the server receives the pre-live broadcast request sent by the second device, it sets the rePushDeviceId of the first live broadcast record of the first live broadcast in the database to the second device identifier of the second device.
  • the re-live broadcast device field is empty.
  • the method further includes: receiving a live-streaming shutdown instruction for the first live-streaming sent through the live-streaming account;
  • the device identification is extracted from the live broadcast instruction, and the first live broadcast record corresponding to the first live broadcast is obtained; when the device identification is consistent with the second device identification in the re-live broadcast device field of the first live broadcast record, the The status field is modified to the end status of the live broadcast.
  • the first device after the second device takes over the first live broadcast started by the first device, the first device will not be allowed to perform operations such as closing or suspending the first live broadcast, thereby avoiding misoperation of the first device.
  • the second device when the account wants to close the first live broadcast, the second device can send a close live broadcast instruction for the first live broadcast to the interactive service through the live broadcast account. If the field is not empty, the broadcast can be turned off only if the device ID in the close live broadcast instruction is equal to the re-live broadcast device field. In this way, the original live broadcast device of the first live broadcast, that is, the first device may be shut down by mistaken operations.
  • step S201 before receiving the pre-live broadcast request sent by the second device through the live broadcast account, the method further includes: receiving a live broadcast data request sent by the viewer device, and the live broadcast data request includes the live broadcast account; and obtaining The first live broadcast identification corresponding to the live broadcast account and the live broadcast data acquisition address of the content distribution network; the first live broadcast identification and the live broadcast data acquisition address are sent to the audience device, so that the audience device obtains the first live broadcast data acquisition address from the content distribution network according to the live broadcast data acquisition address.
  • the audience device requests the live data of the corresponding account through the server.
  • the first device or the second device will push the live data to the source station of the video stream, and the source station of the video stream will then distribute the live data to the corresponding distributed network.
  • the viewer device may send the live data to the server.
  • the server With the startPlay request (ie, the live broadcast data request), the server will obtain the corresponding first live broadcast identifier and the live broadcast data acquisition address of the distributed network based on the live broadcast account carried in the live broadcast data request and feed it back to the audience device, so that the audience device can pass
  • the live broadcast protocol pulls the live broadcast data of the corresponding account from the live broadcast data acquisition address in the distributed network CDN, such as the live broadcast data corresponding to the first live broadcast identifier, to watch the first live broadcast.
  • the video streaming source station is used to reject the first device that carries the first live broadcast identification sent by the first device through the live broadcast account when receiving the live broadcast data that carries the first live broadcast identification pushed by the second device through the live broadcast account. Live data.
  • the video streaming source station will reject the previous device (ie The live data of the first device) is processed in this way to switch the live data of the first live broadcast to the second device, while avoiding the phenomenon of screen tearing caused by the simultaneous live broadcast of the first device and the second device.
  • Fig. 4 is a flowchart showing a live broadcast method according to an embodiment of the present disclosure. As shown in Fig. 4, the live broadcast method is used in a second device and includes the following steps:
  • a pre-live broadcast request is sent to the server through the live broadcast account; the server is used to store the first live broadcast record of the first live broadcast.
  • the first live broadcast record includes the live broadcast status, the first live broadcast identifier, and the live broadcast account.
  • the live broadcast of the first live broadcast The device is the first device.
  • the first live broadcast record is written in the database of the server, and the first live broadcast record includes the live broadcast status, live broadcast account, and live broadcast status of the first live broadcast.
  • the first live broadcast logo when the first live broadcast has not been closed, the status field of the first live broadcast record is the live broadcast status.
  • step S402 when the live broadcast status in the first live broadcast record corresponding to the live broadcast account is the live broadcast state, the first live broadcast parameter sent by the server is received through the live broadcast account; wherein the first live broadcast parameter corresponds to the first live broadcast identifier.
  • the account can choose to use the second device to send a pre-live broadcast request to the server through the same live broadcast account to request to restart the broadcast. If the server recognizes the first live broadcast record corresponding to the live broadcast account When the live broadcast status in is the live broadcast status, then the second device will receive the first live broadcast parameter and the second live broadcast parameter, where the first live broadcast parameter corresponds to the first live broadcast identifier.
  • step S403 a live broadcast start request corresponding to the first live broadcast parameter is sent to the server through the live broadcast account.
  • the first live broadcast start request is the corresponding request when the account of the second device selects the first live broadcast parameters; the first live broadcast start request includes the second device identification of the second device, and the server is used for according to the second device identification of the second device Update the record of the first live broadcast.
  • the second device if the user of the second device selects the option of "switch the existing live broadcast to the second device", that is, selects the first live broadcast parameter, it means that they want to switch the first live broadcast to the second device, and the second device will send the first live broadcast to the second device.
  • the live broadcast request is sent to the corresponding server.
  • step S403 may include: generating a live broadcast device switching option according to the first live broadcast parameter, and generating and turning on a new live broadcast option according to the second live broadcast parameter; when the user selects the live broadcast device switching option, according to the first live broadcast The parameter generates a corresponding start live broadcast request; when the user chooses to open a new live broadcast option, a corresponding start live broadcast request is generated according to the second live broadcast parameter.
  • the second device of the embodiment of the present disclosure can confirm that the current account is using another device for live broadcast, so a prompt message will be generated based on the two live broadcast parameters And pop up on the interface of the second device, for example, the pop-up prompt message can be "Detect when you currently have another live broadcast on the first device", and provide three options "Restart the new live broadcast/Switch the existing live broadcast to "Second device/cancel operation" is for the user (host) of the second device to choose.
  • step S404 the first live broadcast instruction carrying the first live broadcast identification sent by the server is received through the live broadcast account, and the live broadcast data carrying the first live broadcast identification is pushed to continue the first live broadcast.
  • the second device After the second device receives the first live broadcast instruction carrying the live broadcast address of the video stream source station and the first live broadcast identifier sent by the server through the live broadcast account, it finds the corresponding video streaming source station according to the live broadcast address, and sends the instruction to The video streaming source station pushes the live broadcast data carrying the first live broadcast identifier to continue the first live broadcast.
  • the server receives the first live broadcast parameter sent by the second device, it indicates that the account of the second device chooses to switch the live broadcast of the first device to the second device, and then sends the live broadcast address of the video stream source station and the first live broadcast to the second device ID, so that the second device can push the live data with the first live ID and the second device ID to the video streaming source station based on the live broadcast address; wherein, the video streaming source station will reject the first live ID and the second device sent by the first device.
  • the live data of a device identification indicates that the account of the second device chooses to switch the live broadcast of the first device to the second device, and then sends the live broadcast address of the video stream source station and the first live broadcast to the second device ID, so that the second device can push the live data with the first live ID and the second device ID to the video streaming source station based on the live broadcast address; wherein, the video streaming source station will reject the first live ID and the second device sent by the first device.
  • the host can restart the broadcast through the second device without changing the live broadcast when the first live broadcast has been started through the first live broadcast. Since the viewers of the viewer device do not need to re-initiate the request to enter the live broadcast, the viewer experience It has been improved, and the peak of requests for a large number of viewers to re-enter the live broadcast after the relaunch is reduced, and server resources are saved.
  • step S403 sending a live broadcast start request corresponding to the first live broadcast parameter to the server through the live broadcast account, includes: generating a live broadcast device switching option according to the first live broadcast parameter; when the live broadcast device switching option is triggered, Generate a live broadcast start request according to the first live broadcast parameter and send it to the server through the live broadcast account.
  • the second device when the account selects the live streaming device switching option on the second device interface, the second device responds to the account's triggering operation of the live streaming device switching option, generates a live broadcast start request according to the corresponding first live broadcast parameters, and Send the live broadcast start request to the server through the live broadcast account.
  • step S402 receiving the first live broadcast parameter sent by the server through the live broadcast account includes: receiving the first live broadcast parameter sent by the server through the live broadcast account, and at the same time receiving the first live broadcast parameter sent by the server through the live broadcast account.
  • the second live broadcast parameter includes: receiving the first live broadcast parameter sent by the server through the live broadcast account, and at the same time receiving the first live broadcast parameter sent by the server through the live broadcast account. The second live broadcast parameter.
  • the second device simultaneously receives the first live broadcast parameter and the second live broadcast parameter sent by the server through the live broadcast account, generates the live broadcast device switching option according to the first live broadcast parameter, and generates the switch option according to the second live broadcast parameter.
  • New live broadcast options are possible.
  • the method further includes: sending the server through the live account to the server corresponding to the second live broadcast parameter Start live broadcast request; receive the second live broadcast start instruction carrying the second live broadcast identifier sent by the server, and push the live broadcast data carrying the second live broadcast identifier through the live broadcast account to perform the second live broadcast.
  • the second device after receiving the second live broadcast instruction carrying the live broadcast address of the video stream source station and the second live broadcast identifier sent by the server through the live broadcast account, finds the corresponding video stream source according to the live broadcast address Station, push the live broadcast data carrying the second live broadcast identifier to the video streaming source station through the live broadcast account to perform the second live broadcast (that is, a new live broadcast).
  • the server If the server receives the second live broadcast parameters sent by the second device, indicating that the account of the second device chooses to restart the new live broadcast on the second device, the server sends the live broadcast address of the video stream source station and the second live broadcast identifier to the second device, The second device can push the live data with the second live broadcast identifier to the video stream source station based on the live broadcast address to perform the second live broadcast.
  • sending a live broadcast request corresponding to the second live broadcast parameter to the server through the live broadcast account includes: generating a new live broadcast option according to the second live broadcast parameter; when the new live broadcast option is triggered, according to the first 2.
  • the live broadcast parameter generates a live broadcast start request.
  • the second device when the account selects to enable the new live broadcast option on the interface of the second device, the second device responds to the trigger operation of the account to enable the new live broadcast option, and generates a start corresponding to the second live broadcast parameter Live broadcast request, and send the live broadcast start request to the server through the live broadcast account.
  • FIG. 5 it shows a schematic diagram of a live broadcast flow when switching devices, involving new live (second live broadcast) viewers, old live (first live broadcast) viewers, device A (second device), and device B ( The first device), interactive service (server), MySQL (database), video streaming source station, the specific implementation steps are as follows:
  • Device A sends a prePush request (pre-live broadcast request) to the interactive service through the account to request prePushResult;
  • the interactive service will inform device A that there is another live broadcast (old live) currently in the account, and return two prePushResults, namely the first live broadcast parameter and the second live broadcast parameter.
  • the first live broadcast parameter is for the first live broadcast, so it corresponds to the first live broadcast identifier of the first live broadcast;
  • Device A sends a startPush request (start live broadcast request) to the interactive service based on the original live (old live) prePushResult;
  • the interactive service modifies the original live broadcast record in MySQL, and changes the rePushDeviceId in the live broadcast record to the device ID of device A (deviceid);
  • Device A receives the startPushResult (start live broadcast parameter) returned by the interactive service, where startPushResult includes the live broadcast address (the live broadcast address of the KTP protocol) and some other business parameters (old live live broadcast identification and live broadcast title, etc.);
  • Device A uses the KTP protocol to push the live broadcast data carrying the old live live broadcast identifier to the video streaming source station to continue the old live;
  • Device B will be rejected if it pushes the live broadcast data carrying the old live broadcast logo to the video streaming source station;
  • Device A sends a startPush request (start live broadcast request) to the interactive service based on the new live (new live) prePushResult;
  • the interactive service sets the status in the old live live broadcast record to END (live broadcast end status);
  • the interactive service informs that device B has been turned off
  • the interactive service informs the old live audience that the broadcast has been closed
  • the interactive service inserts the new live live broadcast record into MySQL, and sets the status in the new live live broadcast record to LIVING (live broadcast status);
  • Device A receives the startPushResult (start live broadcast parameter) returned by the interactive service, where startPushResult includes the live broadcast address (the live broadcast address of the KTP protocol) and some other business parameters (new live live broadcast identifier and live broadcast title, etc.);
  • Device A uses the KTP protocol to push live data to the video streaming source station to start new live;
  • Device A sends a startPush request (request to start live broadcast) to the interactive service based on prePushResult;
  • the interactive service inserts the new live live broadcast record into MySQL, and sets the status in the new live live record record to LIVING (live broadcast status);
  • startPushResult (start live broadcast parameter) to device A, where startPushResult includes the live broadcast address (the live broadcast address of the KTP protocol) and some other business parameters (new live live broadcast identifier and live broadcast title, etc.);
  • Device A uses the KTP protocol to push the live broadcast data carrying the live broadcast identifier of new live to the video streaming source station to start new live;
  • the interactive service informs the new live audience that the broadcast has been closed
  • device A fails to broadcast live, it will automatically initiate a shutdown to the interactive service, and then skip to step 23;
  • Device A sends stopPush (stop live broadcast instruction) to the interactive service
  • the interactive service sets the status in the new live live record in the database to END (live broadcast end status);
  • the interactive service returns a live broadcast end message to device A;
  • the interactive service informs the new live audience that the broadcast has been closed.
  • the account (host) used in the embodiment of the present disclosure can use another device (device A) to restart the broadcast without changing the live broadcast. Therefore, it is not necessary for the viewers of the audience device to re-initiate a request for the live broadcast to the server, so that The audience experience is improved, and because the audience device does not need to re-initiate a request, the peak of requests for a large number of audience devices to re-enter the live broadcast after the re-start is reduced, and server resources are saved.
  • Fig. 6 is a block diagram showing a live broadcast device according to an embodiment of the present disclosure. Referring to FIG. 6, it is applied to a server, and the server is used to store a first live broadcast record of the first live broadcast.
  • the first live broadcast record includes a live broadcast status, a first live broadcast identifier, and a live broadcast account.
  • the live broadcast device of the first live broadcast is the first device; this The device includes:
  • the first request receiving unit 601 is configured to receive the pre-live broadcast request sent by the second device through the live broadcast account;
  • the live broadcast status obtaining unit 602 is configured to execute the determination of the corresponding first live broadcast record according to the live broadcast account, and obtain the live broadcast status from the first live broadcast record;
  • the parameter sending unit 603 is configured to send the first live broadcast parameter to the live broadcast account of the second device when the live broadcast status is the live broadcast state; wherein, the first live broadcast parameter corresponds to the first live broadcast identifier;
  • the second request receiving unit 604 is configured to receive a live broadcast start request corresponding to the first live broadcast parameter sent by the second device through the live broadcast account;
  • the live broadcast instruction sending unit 605 is configured to execute the first live broadcast start instruction carrying the first live broadcast identification to the live broadcast account of the second device, so that the second device pushes the live broadcast data carrying the first live broadcast identification through the live broadcast account to continue the first live broadcast.
  • One live is configured to execute the first live broadcast start instruction carrying the first live broadcast identification to the live broadcast account of the second device, so that the second device pushes the live broadcast data carrying the first live broadcast identification through the live broadcast account to continue the first live broadcast.
  • the live broadcast instruction sending unit 605 is further configured to send a first live broadcast start instruction carrying a first live broadcast identifier to the live broadcast account of the second device, and the first live broadcast start instruction also includes the video streaming source station.
  • the live broadcast address of the second device uses the live broadcast account to push the live broadcast data carrying the first live broadcast identifier to the video streaming source station based on the live broadcast address to continue the first live broadcast.
  • the parameter sending unit 603 is further configured to send the first live broadcast parameters to the live broadcast account of the second device, and at the same time send the second live broadcast parameters to the live broadcast account of the second device; receive the second device The live broadcast start request corresponding to the second live broadcast parameter sent through the live broadcast account; generates a second live broadcast identifier and generates a second live broadcast record; the second live broadcast record includes the second live broadcast identifier and the live broadcast account; sent to the live broadcast account of the second device
  • the second live broadcast start instruction carrying the second live broadcast identifier causes the second device to push the live broadcast data carrying the second live broadcast identifier through the live broadcast account to perform the second live broadcast; the second live broadcast is a live broadcast initiated through the same live broadcast account as the first live broadcast.
  • the first device is used to push the live broadcast data carrying the first live broadcast identifier through the live broadcast account to continue the first live broadcast.
  • the parameter sending unit 603 is further configured to send a second live broadcast start instruction carrying a second live broadcast identifier to the live broadcast account of the second device, and the second live broadcast start instruction also includes the video streaming source station's The live broadcast address enables the second device to push the live broadcast data carrying the second live broadcast identifier to the video streaming source station based on the live broadcast address through the live broadcast account to perform the second live broadcast.
  • the first live broadcast record and the second live broadcast record include a status field
  • the live broadcast device further includes a notification message sending unit configured to execute the modification of the status field in the first live broadcast record from the status in the live broadcast to The live broadcast end status, and the status field in the second live broadcast record is set to the live broadcast state; after the status field in the first live broadcast record is changed from the live broadcast state to the live broadcast end state, a message to close the live broadcast is sent to the first device
  • the notification message causes the first device to stop pushing the live broadcast data carrying the first live broadcast identifier through the live broadcast account.
  • the live broadcast start request includes the second device identification of the second device
  • the first live broadcast record further includes a re-live broadcast device field
  • the device further includes a device identification setting unit configured to execute the first live broadcast record
  • the re-live streaming device field in is set to the second device identifier of the second device.
  • the device further includes a status field modification unit configured to execute a live broadcast close instruction for the first live broadcast sent through the live broadcast account; extract the device identifier from the live broadcast close instruction, and obtain the first live broadcast instruction.
  • the first live broadcast record corresponding to the live broadcast; when the device identifier is consistent with the second device identifier in the re-live broadcast device field of the first live broadcast record, the status field in the first live broadcast record is modified to the live broadcast end state.
  • the device further includes an address sending unit configured to perform a live broadcast data request sent by the viewer device, and the live broadcast data request includes a live broadcast account; to obtain the first live broadcast identification and content distribution corresponding to the live broadcast account The live broadcast data acquisition address of the network; the first live broadcast identification and the live broadcast data acquisition address are sent to the audience device, so that the audience device obtains the live broadcast data corresponding to the first live broadcast identification from the content distribution network according to the live broadcast data acquisition address.
  • an address sending unit configured to perform a live broadcast data request sent by the viewer device, and the live broadcast data request includes a live broadcast account; to obtain the first live broadcast identification and content distribution corresponding to the live broadcast account The live broadcast data acquisition address of the network; the first live broadcast identification and the live broadcast data acquisition address are sent to the audience device, so that the audience device obtains the live broadcast data corresponding to the first live broadcast identification from the content distribution network according to the live broadcast data acquisition address.
  • the video streaming source station is used to reject the first device that carries the first live broadcast identification sent by the first device through the live broadcast account when receiving the live broadcast data that carries the first live broadcast identification pushed by the second device through the live broadcast account. Live data.
  • Fig. 7 is a block diagram showing a live broadcast device according to an embodiment of the present disclosure. Referring to Figure 7, applied to the second device, the device includes:
  • the first request sending unit 701 is configured to send a pre-live broadcast request to the server through the live broadcast account; the server is used to store the first live broadcast record of the first live broadcast, and the first live broadcast record includes the live broadcast status, the first live broadcast identifier, and the live broadcast account.
  • the live broadcast device of the first live broadcast is the first device;
  • the parameter receiving unit 702 is configured to receive the first live broadcast parameter sent by the server through the live broadcast account when the live broadcast status in the first live broadcast record corresponding to the live broadcast account is the live broadcast state; wherein, the first live broadcast parameter is the same as the first live broadcast parameter. Live broadcast logo corresponding;
  • the second request sending unit 703 is configured to send a live broadcast start request corresponding to the first live broadcast parameter to the server through the live broadcast account;
  • the live broadcast data pushing unit 704 is configured to execute the first live broadcast start instruction carrying the first live broadcast identifier sent by the server through the live broadcast account, and push the live broadcast data carrying the first live broadcast identifier to continue the first live broadcast.
  • the second request sending unit 703 is also configured to execute the generation of a live broadcast device switching option according to the first live broadcast parameter; when the live broadcast device switch option is triggered, a live broadcast start request is generated according to the first live broadcast parameter and passed The live account is sent to the server.
  • the parameter receiving unit 702 is further configured to receive the first live broadcast parameter sent by the server through the live broadcast account, and at the same time receive the second live broadcast parameter sent by the server through the live broadcast account;
  • the device further includes a second live broadcast unit configured to execute a live broadcast start request corresponding to the second live broadcast parameter sent to the server through the live broadcast account; receive a second live broadcast start instruction carrying the second live broadcast identifier sent by the server, and push through the live broadcast account
  • the live broadcast data carrying the second live broadcast identifier is used to perform the second live broadcast.
  • the second live broadcast unit is further configured to execute the generation of a new live broadcast option according to the second live broadcast parameter; when the new live broadcast option is triggered to open, a live broadcast start request is generated according to the second live broadcast parameter.
  • Fig. 8 is a block diagram showing a device 800 for live broadcast according to an embodiment of the present disclosure.
  • the device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • the device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and Communication component 816.
  • a processing component 802 a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and Communication component 816.
  • the processing component 802 generally controls the overall operations of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method.
  • the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components.
  • the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
  • the memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic storage, flash memory, magnetic or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable Programmable read only memory
  • PROM programmable read only memory
  • ROM read only memory
  • magnetic storage flash memory, magnetic or optical disk.
  • the power supply component 806 provides power for various components of the device 800.
  • the power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
  • the multimedia component 808 includes a screen that provides an output interface between the device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 810 is configured to output and/or input audio signals.
  • the audio component 810 includes a microphone (MIC), and when the device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal.
  • the received audio signal may be further stored in the memory 804 or transmitted via the communication component 816.
  • the audio component 810 further includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module.
  • the above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
  • the sensor component 814 includes one or more sensors for providing the device 800 with various aspects of status assessment.
  • the sensor component 814 can detect the open/close state of the device 800 and the relative positioning of components, such as the display and keypad of the device 800.
  • the sensor component 814 can also detect the position change of the device 800 or a component of the device 800. , The presence or absence of contact between the user and the device 800, the orientation or acceleration/deceleration of the device 800, and the temperature change of the device 800.
  • the sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact.
  • the sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 814 may further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • the communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices.
  • the device 800 can access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof.
  • the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the device 800 can be implemented by one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field-available A programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above-mentioned live broadcast method.
  • ASIC application-specific integrated circuits
  • DSP digital signal processors
  • DSPD digital signal processing devices
  • PLD programmable logic devices
  • FPGA field-available A programmable gate array
  • controller microcontroller, microprocessor, or other electronic components are implemented to implement the above-mentioned live broadcast method.
  • non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, which can be executed by the processor 820 of the device 800 to complete the foregoing method.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
  • Fig. 9 is a block diagram showing a device 900 for live broadcast according to an embodiment of the present disclosure.
  • the device 900 may be a server.
  • the device 900 includes a processing component 920, which further includes one or more processors, and a memory resource represented by a memory 922, for storing instructions that can be executed by the processing component 920, such as an application program.
  • the application program stored in the memory 922 may include one or more modules each corresponding to a set of instructions.
  • the processing component 920 is configured to execute instructions to execute the above-mentioned live broadcast method.
  • the device 900 may also include a power component 924 configured to perform power management of the device 900, a wired or wireless network interface 926 configured to connect the device 900 to a network, and an input output (I/O) interface 928.
  • the device 900 can operate based on an operating system stored in the storage 922, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
  • a storage medium including instructions such as the memory 922 including instructions, and the foregoing instructions may be executed by the processor of the device 900 to complete the foregoing method.
  • the storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Graphics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本公开关于一种直播方法、装置、电子设备及存储介质,包括:接收第二设备通过直播账号发送的预直播请求;根据直播账号确定对应的第一直播记录,并从第一直播记录中获取直播状态;当直播状态为直播中状态时,向第二设备的直播账号发送第一直播参数;其中,第一直播参数与第一直播标识对应;接收第二设备通过直播账号发送的与第一直播参数对应的开始直播请求;向第二设备的直播账号发送携带第一直播标识的第一开始直播指令,使得第二设备通过直播账号推送携带第一直播标识的直播数据以继续进行第一直播。

Description

直播方法、装置、电子设备及存储介质
相关申请的交叉引用
本公开要求于2020年05月27日提交的申请号为202010461060.9、名称为“直播方法、装置、电子设备及存储介质”的中国专利申请的优先权,该中国专利申请的全部内容通过引用全部并入本文。
技术领域
本公开涉及视频直播技术领域,尤其涉及一种直播方法、装置、电子设备及存储介质。
背景技术
在日益流行的直播服务中,任意的普通用户都可以通过设备开启直播,从而可以作为主播实时分享自己的生活给世界各地的其他用户,如众所周知的游戏直播、秀场直播(吃播、才艺展示、旅游直播)等场景。
大型的直播平台需要同时维护几十万个直播,这些直播90%是小直播,直播人数在100人以内,但是一些大型的直播,同时在线的直播人数能达到600万人以上。
在这些直播中,直播的直播行为都是由主播通过直播设备(PC客户端,Android客户端和iOS客户端等等)发起的。发起的直播会通过互动服务(服务器)写入MySQL(数据库)中,每一场直播都在MySQL中有相应的一条直播记录。
一场直播由一个主播通过任意一台直播设备发起,一开始会在该直播的直播记录中将直播状态设置为LIVING(直播中状态),在直播关闭后,直播状态会被设置为ENDED(直播结束状态)。对于同一个主播,在任意时刻最多只能拥有一个LIVING的直播。如果一个主播通过另一台直播设备发起新的直播时,如果互动服务在直播记录中发现该主播当前有LIVING的直播,则会先将当前LIVING的直播设置成ENDED,并向该直播的主播和观众发送“直播间已经被关闭”的消息,然后才发起新的直播,针对新的直播在MySQL中新增一条新的直播记录,并设置新的直播记录中将直播状态设置为LIVING。
可以理解,如果主播的某台设备发生了问题(例如死机,停电或触摸失灵等),主播需要更换一台设备开通新的直播进行直播的时候,原有直播会被关闭,原有直播关闭后,原有直播的观众可能会流失一部分,不会进入新的直播,此外,如果原有直 播是一个超大直播间,原有直播关闭后,大量的观众会发起重新进入直播的请求,从而造成一个API(Application Programming Interface,应用程序接口)的超大尖峰,给互动服务带来较大压力,极大浪费了服务器资源。
发明内容
本公开提供一种直播方法、装置、电子设备及存储介质,本公开的技术方案如下:
根据本公开实施例的第一方面,一种直播方法,应用于服务器,所述服务器用于存储第一直播的第一直播记录,所述第一直播记录中包括直播状态、第一直播标识和直播账号,所述第一直播的直播设备为第一设备;所述方法包括:接收第二设备通过所述直播账号发送的预直播请求;根据所述直播账号确定对应的第一直播记录,并从所述第一直播记录中获取所述直播状态;当所述直播状态为直播中状态时,向所述第二设备的所述直播账号发送第一直播参数;其中,所述第一直播参数与第一直播标识对应;接收所述第二设备通过所述直播账号发送的与所述第一直播参数对应的开始直播请求;向所述第二设备的所述直播账号发送携带第一直播标识的第一开始直播指令,使得所述第二设备通过所述直播账号推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
根据本公开实施例的第二方面,提供一种直播方法,应用于第二设备,所述方法包括:
通过直播账号向服务器发送预直播请求;所述服务器用于存储第一直播的第一直播记录,所述第一直播记录中包括直播状态,第一直播标识和直播账号,所述第一直播的直播设备为第一设备;
当所述直播账号对应的所述第一直播记录中的直播状态为直播中状态时,通过所述直播账号接收到所述服务器发送的第一直播参数;其中,所述第一直播参数与所述第一直播标识对应;
通过所述直播账号向所述服务器发送与所述第一直播参数对应的开始直播请求;
通过所述直播账号接收所述服务器发送的携带所述第一直播标识的第一开始直播指令,并推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
根据本公开实施例的第三方面,提供一种直播装置,应用于服务器,所述服务器用于存储第一直播的第一直播记录,所述第一直播记录中包括直播状态、第一直播标识和直播账号,所述第一直播的直播设备为第一设备;所述装置包括:
第一请求接收单元,被配置为执行接收第二设备通过所述直播账号发送的预直播请求;
直播状态获取单元,被配置为执行根据所述直播账号确定对应的第一直播记录,并从所述第一直播记录中获取所述直播状态;
参数发送单元,被配置为执行当所述直播状态为直播中状态时,向所述第二设备的所述直播账号发送第一直播参数;其中,所述第一直播参数与所述第一直播标识对应;
第二请求接收单元,被配置为执行接收所述第二设备通过所述直播账号发送的与所述第一直播参数对应的开始直播请求;
直播指令发送单元,被配置为执行向所述第二设备的所述直播账号发送携带所述第一直播标识的第一开始直播指令,使得所述第二设备通过所述直播账号推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
根据本公开实施例的第四方面,提供一种直播装置,应用于第二设备,所述装置包括:
第一请求发送单元,被配置为执行通过直播账号向服务器发送预直播请求;所述服务器用于存储第一直播的第一直播记录,所述第一直播记录中包括直播状态,第一直播标识和直播账号,所述第一直播的直播设备为第一设备;
参数接收单元,被配置为执行当所述直播账号对应的所述第一直播记录中的直播状态为直播中状态时,通过所述直播账号接收到所述服务器发送的第一直播参数;其中,所述第一直播参数与所述第一直播标识对应;
第二请求发送单元,被配置为执行通过所述直播账号向所述服务器发送与所述第一直播参数对应的开始直播请求;
直播数据推送单元,被配置为执行通过所述直播账号接收所述服务器发送的携带所述第一直播标识的第一开始直播指令,并推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
根据本公开实施例的第五方面,提供一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现执行如上所述的直播方法。
根据本公开实施例的第六方面,提供一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行如上所述的直播方法。
根据本公开实施例的第七方面,提供一种计算机程序产品,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,设备的至少一个处理器从所述可读存储介质读取并执行所述计算机程序,使得设备执行第一方面和第二方面的任一项实施例中所述的直播方法。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。
图1是根据本公开的实施例示出的一种直播方法的应用环境图。
图2是根据本公开的实施例示出的一种直播方法的流程图。
图3是根据本公开的实施例示出的一种切换设备时直播的流程示意图。
图4是根据本公开的实施例示出的另一种直播方法的流程图。
图5是根据本公开的实施例示出的另一种切换设备时直播的流程示意图。
图6是根据本公开的实施例示出的一种直播装置的框图。
图7是根据本公开的实施例示出的另一种直播装置的框图。
图8是根据本公开的实施例示出的一种电子设备的内部结构图。
图9是根据本公开的实施例示出的另一种电子设备的内部结构图。
具体实施方式
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开的实施例进行清楚、完整地描述。
本公开所提供的直播方法,可以应用于如图1所示的应用环境中。其中,该应用环境中包括第一设备101,第二设备102、服务器103和视频流源站104,这些网络节点通过网络连接。在第一设备101通过直播账号已经开通第一直播时,将在服务器103的数据库中写入第一直播对应的第一直播记录,其中第一直播记录中包括直播状态、第一直播标识和直播账号,如果第二设备102通过该直播账号向服务器103发送预直播请求,服务器103根据直播账号确定对应的第一直播记录,并从第一直播记录中获取直播状态,当该直播状态为直播中状态时,向第二设备的直播账号发送第一直播参 数,第一直播参数与第一直播标识对应;服务器103接收第二设备102通过直播账号发送的与第一直播参数对应的开始直播请求,向第二设备102的直播账号发送携带第一直播标识的第一开始直播指令;第二设备102通过直播账号向视频流源站104推送携带第一直播标识的直播数据以继续进行第一直播。第一设备101和第二设备102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器103可以用独立的服务器或者是多个服务器组成的服务器集群来实现。其中,服务器103可以连接第一设备101和第二设备102,当然还可以连接其他设备,以向第一设备101和第二设备102返回相应的数据,同时,视频流源站104连接有至少一个内容分发网络节点,以将第一设备101和第二设备102推送的直播数据,推送到各个内容分发网络节点中。
图2是根据本公开的实施例示出的一种直播方法的流程图,如图2所示,直播方法用于服务器中,服务器用于存储第一直播的第一直播记录,第一直播记录中包括直播状态、第一直播标识和直播账号,第一直播的直播设备为第一设备;包括以下步骤:
在步骤S201中,接收第二设备通过直播账号发送的预直播请求。
其中,第一设备和第二设备是指主播推送直播数据以进行直播的直播设备。其中,每个主播都有自己的直播账号,通过直播账号可以唯一定位到相应的主播。需要说明的是,第二设备通过直播账号发送预直播请求,而该直播账号是发起第一直播的直播设备(即第一设备)的直播账号,说明是同一个主播的操作。
在本公开的实施例中,第一设备是指主播开启第一直播时的直播设备。在一些实施例中,第一设备可以通过直播账号向服务器请求开通第一直播,当服务器同意第一设备开通第一直播时,将会为该第一直播分配第一直播标识(比如直播ID(Identity document,身份标识)),并向第一设备返回第一直播标识和视频流源站的直播地址,使得第一设备可以基于直播地址向视频流源站推送携带第一直播标识的直播数据,以使视频流源站能够再通过CDN(Content Delivery Network,内容分发网络)将第一直播的直播数据发布至观众设备。
其中,当服务器同意第一设备开通第一直播时,将在服务器保存第一直播记录,其中第一直播记录中的信息至少包括有第一直播的直播状态、第一直播标识和第一直播的直播账号。需要注意的是,如果第一直播尚未关闭,那么该第一直播处于直播中状态。
在本公开的实施例中,在第一直播仍然处于直播状态时,如果第一设备出现死机,停电或触摸失灵等问题时,那么第一设备将无法继续向视频流源站推送直播数据,为了能够继续直播,此时主播将选择使用第二设备通过同一个直播账号向服务器请求开启直播。
在步骤S202中,根据直播账号确定对应的第一直播记录,并从第一直播记录中获取直播状态。
在一些实施例中,服务器的数据库中预先存储有多个直播账号的直播记录,服务器根据第二设备的直播账号查询数据库,获取与该直播账号对应的直播记录,作为第一直播记录,并从第一直播记录中获取直播状态。
在步骤S203中,当直播状态为直播中状态时,向第二设备的直播账号发送第一直播参数;其中,第一直播参数与第一直播标识对应。
在一些实施例中,当直播状态为直播中状态时,说明通过直播账号在第一设备发起的第一直播处于直播中状态,则通过服务器向第二设备发送第一直播参数和第二直播参数,以供第二设备的账户选择;其中,第一直播参数与第一直播标识对应。
需要说明的是,主播在第二设备中可以选择使用通过第一设备开通第一直播时使用的直播账号,那么第二设备的直播账号和第一设备的直播账号相同,表示是同一个主播的操作。
可以理解,如果在第二设备通过同一个直播账号向服务器发送预直播请求,且此时在第一设备通过该直播账号发起的第一直播仍然处于直播中状态时,本公开的实施例的服务器可以向第二设备返回两个直播参数,即第一直播参数(currentLivePrePushResult)和第二直播参数(prePushResult),分别对应第一直播(老的直播)和第二直播(新的直播),即第一直播参数与第一直播的第一直播标识对应。
在步骤S204中,接收第二设备通过直播账号发送的与第一直播参数对应的开始直播请求。
其中,开始直播请求为第二设备的账户选择第一直播参数时对应的请求;开始直播请求包括第二设备的第二设备标识。
第二设备接收到两个直播参数,则第二设备能确认当前的账户有在使用另外的设备进行直播,故将基于两个直播参数生成提示消息并在第二设备弹出,比如弹出的提示消息可以是“检测当您当前在第一设备上有另外的直播”,并提供三个选项“重新开启新的直播/将现有直播切换到第二设备/取消操作”供第二设备的账户(主播)选 择。
如果第二设备的账户选择“将现有直播切换到第二设备”的选项,即选择第一直播参数,则表示希望将第一直播切换到第二设备,即重新开播但不换直播。
如果第二设备的账户选择“重新开启新的直播”的选项,即选择第二直播参数,则表示希望后续流程跟第一设备开通第一直播的方案一致,只是第二设备开通的是一个新的直播,那么服务器将停掉第一直播,开启新的直播。
如果第二设备的账户选择“取消操作”的选项,则表示不需要将第一直播切换到第二设备,也不需要开通新的直播。
即在本公开的实施例中,当第二设备的用户选择“将现有直播切换到第二设备”的选项,即选择第一直播参数,服务器将接收到第二设备通过直播账号发送的与第一直播参数对应的开始直播请求,表示第二设备的账户希望将第一直播切换到第二设备。
在步骤S205中,向第二设备的直播账号发送携带第一直播标识的第一开始直播指令,使得第二设备通过直播账号推送携带第一直播标识的直播数据以继续进行第一直播。
在确定账户希望将第一直播切换到第二设备后,服务器将向第二设备的直播账号发送第一直播的第一直播标识,这样,第二设备则可以通过该直播账号向视频流源站推送携带第一直播标识的直播数据,以继续进行第一直播。
本公开的实施例中,在第一设备通过直播账号开启第一直播时将生成第一直播记录,并对处于直播中状态的第一直播记录进行存储,如果此时接收第二设备通过该直播账号发送的预直播请求;根据直播账号确定对应的第一直播记录,并从第一直播记录中获取直播状态;当直播状态为直播中状态时,向第二设备的直播账号发送第一直播参数;其中,第一直播参数与第一直播标识对应;接收第二设备通过直播账号发送的与第一直播参数对应的开始直播请求;向第二设备的直播账号发送携带第一直播标识的第一开始直播指令,使得第二设备通过直播账号推送携带第一直播标识的直播数据以继续进行第一直播,即重新开播但不换直播。
应用本公开的实施例,可以将第一设备的处理直播中状态的直播(即第一直播)切换至第二设备,由于第二设备在向视频流源站推送直播数据时沿用了第一直播的第一直播标识而非使用新的直播标识,而观众设备是基于第一直播标识请求到直播数据,因此,即时在直播过程中切换了设备,对于观众设备而言也无需向服务器请求新的直播标识,本公开的实施例尤其适用于大型直播,大量观众设备无需重新发起请求,节 省服务器资源。
在本公开的实施例中,上述步骤S205,向第二设备的直播账号发送携带第一直播标识的第一开始直播指令,使得第二设备通过直播账号推送携带第一直播标识的直播数据以继续进行第一直播,具体包括:向第二设备的直播账号发送携带第一直播标识的第一开始直播指令,第一开始直播指令还包括视频流源站的直播地址,使得第二设备通过直播账号基于直播地址向视频流源站推送携带第一直播标识的直播数据以继续进行第一直播。
在本公开的实施例中,在确定账户希望将第一直播切换到第二设备后,服务器将向第二设备的直播账号发送携带第一直播标识和视频流源站的直播地址的第一开始直播指令;第二设备在接收到第一开始直播指令之后,根据视频流源站的直播地址,查找到对应的视频流源站,并通过直播账号向该视频流源站推送携带第一直播标识的直播数据,以继续进行第一直播。这样,观众设备无需向服务器请求新的直播标识,即无需重新发起请求,那么服务器无需响应过多的请求,从而节省了服务器资源。
在本公开的实施例中,如果第二设备的用户选择“重新开启新的直播”的选项,即选择第二直播参数,那么上述步骤S203,向第二设备的直播账号发送第一直播参数,还包括:向第二设备的直播账号发送第一直播参数,并且同时向第二设备的直播账号发送第二直播参数;在向第二设备的直播账号发送第一直播参数,并且同时向第二设备的直播账号发送第二直播参数之后,方法还包括:接收第二设备通过直播账号发送的与第二直播参数对应的开始直播请求;生成第二直播标识,并生成第二直播记录;第二直播记录包括第二直播标识和直播账号;向第二设备的直播账号发送携带第二直播标识的第二开始直播指令,使得第二设备通过直播账号推送携带第二直播标识的直播数据以进行第二直播;第二直播为与第一直播通过同一直播账号发起的直播。
其中,与第二直播参数对应的开始直播请求,是指第二设备的账户选择第二直播参数时对应的请求。
在服务器中包括用于记录直播的数据库(MySQL),每一场直播对应一条直播记录,第一设备开启的第一直播在数据库具有对应的第一直播记录。其中,在确定用户希望开启新的直播后,服务器允许第二设备开启第二直播,并为第二直播分配第二直播标识,此外,还将在数据库插入针对第二直播的第二直播记录,其中,该第二直播记录中的信息包括第二直播标识和直播账号。
此外,服务器还会将第二直播标识通过第二开始直播指令的形式反馈给第二设备 的直播账号,这样,第二设备则可以通过直播账号向视频流源站推送携带第二直播标识的直播数据,以进行第二直播。
可以理解,应用本公开的实施例可以在账户已经在第一设备通过直播账号开启第一直播的情况下,继续在第二设备通过相同的直播账号开启第二直播,这样,账户可以在设备出现诸如死机等问题时切换设备继续直播,从而保证了账户的正常直播。
在本公开的实施例中,第一设备用于通过直播账号推送携带第一直播标识的直播数据以继续进行第一直播。
在本公开的实施例中,第二设备通过直播账号开启第二直播后,第一设备(即原设备)仍然可以继续第一直播的。
在本公开的实施例中,向第二设备的直播账号发送携带第二直播标识的第二开始直播指令,使得第二设备通过直播账号推送携带第二直播标识的直播数据以进行第二直播,包括:向第二设备的直播账号发送携带第二直播标识的第二开始直播指令,第二开始直播指令还包括视频流源站的直播地址,使得第二设备通过直播账号基于直播地址向视频流源站推送携带第二直播标识的直播数据以进行第二直播。
在本公开的实施例中,在确定账户希望通过第二设备开启新的直播之后,服务器将向第二设备的直播账号发送携带第二直播标识和视频流源站的直播地址的第二开始直播指令;第二设备在接收到第二开始直播指令之后,根据视频流源站的直播地址,查找到对应的视频流源站,并通过直播账号向该视频流源站推送携带第二直播标识的直播数据,以进行第二直播。这样,账户可以在设备出现诸如死机等问题时切换新的设备继续直播,从而保证了账户的正常直播。在本公开的实施例中,第一直播记录和第二直播记录中包括状态字段,在向第二设备的直播账号发送携带第二直播标识的第二开始直播指令,使得第二设备通过直播账号推送携带第二直播标识的直播数据以进行第二直播之后,方法还包括:将第一直播记录中的状态字段从直播中状态修改为直播结束状态,以及,将第二直播记录中的状态字段设置为直播中状态;在将第一直播记录中的状态字段从直播中状态修改为直播结束状态后,向第一设备发送关闭直播的通知消息,使得第一设备停止通过直播账号推送携带第一直播标识的直播数据。
在直播记录中均包括有状态字段(status),其中,如果直播记录中的状态字段设置为LIVING(直播中状态),则表示该直播记录对应的直播还在直播中,如果直播记录中的状态字段设置为END(直播结束状态),则表示该直播记录对应的直播已经结束。
由于在先账户已经使用第一设备开启了第一直播,故在数据库中具有相应的第一直播记录,并且在第一直播未关闭之前,第一直播记录中的状态字段为直播中状态,如果此时账户使用第二设备开启第二直播,那么通过服务器将第一直播记录中的状态字段修改为直播结束状态,并向第一设备发送关闭直播的通知消息,以通知第一设备停止通过直播账号推送携带第一直播标识的直播数据,即关闭第一直播。此外,服务器将第二直播对应的第二直播记录的状态字段设置为直播中状态。在一些实施例中,服务器还可以根据实际情况修改或者新增直播记录,可以在下次又有同个账户请求开启直播时根据实际情况进行处理。
为了使本领域技术人员更好地理解本公开的实施例,下面采用具体示例对于账户已经使用第一设备的直播账号开通第一直播的情形下,又使用第二设备基于该直播账号继续重新开通第二直播的过程进行说明。参照图3,所示为一种切换设备时直播的流程示意图,涉及到live1的观众、live2的观众、设备A(第二设备)、设备B(第一设备)、互动服务(服务器)、MySQL(数据库)、视频流源站,具体实现步骤如下所示:
1、设备A通过直播账号向互动服务发送prePush请求(预直播请求)以请求prePushResult;
2、互动服务向设备A返回的prePushResult(直播参数);
3、设备A基于prePushResult向互动服务发送startPush请求(开始直播请求);
4、互动服务在MySQL中插入一条live2的直播记录,并将该直播记录的状态字段(status)设置为LIVING(直播中状态);
5、如果设备B通过同一直播账号已经开通了live2(第一直播),互动服务通知设备B已经关播;
6、如果设备B通过同一直播账号已经开通了live2(第一直播),互动服务通知live2的观众已经关播;
7、设备A接收到互动服务返回的startPushResult(开始直播参数),其中startPushResult中包括直播地址(KTP(Kwai Transport Protocol,快手传输协议)的直播地址)和一些其他的业务参数(直播标识和直播标题等);
8、设备A使用KTP协议向视频流源站推送直播数据以开启live1(第二直播);
9、如果设备A的live1被审核人员关闭,互动服务通知设备A已经关播;
10、如果设备A的live1被审核人员关闭,互动服务通知live1的观众已经关播;
11、如果设备A直播失败,将自动向互动服务发起关播,跳转至步骤12;
12、设备A向互动服务发送stopPush(关闭直播指令);
13、互动服务将数据库中live2的直播记录中的status设置为END(直播结束状态);
14、互动服务向设备A返回直播结束消息。
应用本公开的实施例,同一账户可以通过不同的设备发起直播,并且前面发起的直播不会对后面发起的直播造成影响,而是可以选择关闭前面发起的直播,使得后面发起的直播可以正常进行,那么即使设备出现故障用户也可以正常进行直播。
在本公开的实施例中,开始直播请求包括第二设备的第二设备标识,第一直播记录中还包括重直播设备字段,那么,上述步骤S204,在接收第二设备通过直播账号发送的与第一直播参数对应的开始直播请求之后,方法还包括:将第一直播记录中的重直播设备字段设置为第二设备的第二设备标识。
在本公开的实施例中,第一直播在数据库的第一直播记录中包括有直播设备字段,第一直播通过第一设备开启时将在第一直播记录的直播设备字段(PushDeviceId)写入第一设备的设备标识。其中,设备标识(deviceId)是全世界唯一,用于标识一台具体的直播设备。
如果服务器接收到第二设备发送的预直播请求,则将第一直播在数据库的第一直播记录的重直播设备字段(rePushDeviceId)设置成第二设备的第二设备标识。当然,如果在第一直播时没有切换过设备,那么重直播设备字段为空。
在本公开的施例中,在将第一直播记录中的重直播设备字段设置为第二设备标识之后,方法还包括:接收到通过直播账号发送的针对第一直播的关闭直播指令;从关闭直播指令中提取出设备标识,并获取第一直播对应的第一直播记录;当设备标识为与第一直播记录的重直播设备字段中的第二设备标识一致时,将第一直播记录中的状态字段修改为直播结束状态。
在本公开的实施例中,在第二设备接管第一设备开启的第一直播后,将不允许第一设备对于第一直播进行诸如关闭或者暂停等操作,从而避免第一设备的误操作。在一些实施例中,当账户想要关闭第一直播时,可以基于第二设备通过直播账号向互动服务发送针对第一直播的关闭直播指令,如果第一直播的第一直播记录的重直播设备字段不为空,则只有关闭直播指令中的设备标识与重直播设备字段相等才能关播,这样,可以避免第一直播的原直播设备,即第一设备误操作而关掉直播。
在本公开的实施例中,上述步骤S201,在接收第二设备通过直播账号发送的预直播请求之前,方法还包括:接收到观众设备发送的直播数据请求,直播数据请求中包括直播账号;获取与直播账号对应的第一直播标识和内容分发网络的直播数据获取地址;将第一直播标识和直播数据获取地址发送至观众设备,使得观众设备根据直播数据获取地址从内容分发网络中获取到第一直播标识对应的直播数据。
观众设备是通过服务器请求到相应的账户的直播数据。在一些实施例中,第一设备或者第二设备会将直播数据推送到视频流源站,视频流源站再将直播数据分发到相应的分布式网络中,此时,观众设备可以向服务器发送startPlay请求(即直播数据请求),服务器将基于直播数据请求中携带的直播账号获取到相应的第一直播标识和分布式网络的直播数据获取地址并反馈至观众设备,这样,观众设备就可以通过直播协议从分布式网络CDN中的直播数据获取地址拉取到相应的账户的直播数据,比如与第一直播标识对应的直播数据,以观看第一直播。
在本公开的实施例中,视频流源站用于在接收到第二设备通过直播账号推送的携带第一直播标识的直播数据时,拒绝第一设备通过直播账号发送的携带第一直播标识的直播数据。
在本公开的实施例中,如果除了第一设备之外,还有另外一台设备(比如第二设备)向视频流源站推送直播数据,那么视频流源站将拒绝掉之前的设备(即第一设备)的直播数据,这样处理是为了将第一直播的直播数据切换到第二设备,同时避免第一设备和第二设备同时直播造成画面撕裂现象。
图4是根据本公开的实施例示出的一种直播方法的流程图,如图4所示,直播方法用于第二设备中,包括以下步骤:
在步骤S401中,通过直播账号向服务器发送预直播请求;服务器用于存储第一直播的第一直播记录,第一直播记录中包括直播状态、第一直播标识和直播账号,第一直播的直播设备为第一设备。
在本公开的实施例中,在第一设备通过直播账号开启第一直播时,在服务器的数据库中写入了第一直播记录,第一直播记录包括了第一直播的直播状态、直播账号和第一直播标识。其中,在第一直播尚未关播时,第一直播记录的状态字段为直播中状态。
在步骤S402中,当直播账号对应的第一直播记录中的直播状态为直播中状态时, 通过直播账号接收到服务器发送的第一直播参数;其中,第一直播参数与第一直播标识对应。
如果第一设备出现问题,比如死机,那么账户(主播)可以选择使用第二设备通过同一个直播账号向服务器发送预直播请求以请求重新开播,服务器如果识别到该直播账号对应的第一直播记录中的直播状态为直播中状态时,那么在第二设备将接收到第一直播参数和第二直播参数,其中第一直播参数与第一直播标识对应。
在步骤S403中,通过直播账号向服务器发送与第一直播参数对应的开始直播请求。
其中,第一开始直播请求为第二设备的账户选择第一直播参数时对应的请求;第一开始直播请求包括第二设备的第二设备标识,服务器用于根据第二设备的第二设备标识更新第一直播记录。
其中,如果第二设备的用户选择“将现有直播切换到第二设备”的选项,即选择第一直播参数,则表示希望将第一直播切换到第二设备,那么第二设备将发送第一开始直播请求至对应的服务器。
在本公开的实施例中,步骤S403可以包括:根据第一直播参数生成直播设备切换选项,以及,根据第二直播参数生成开启新的直播选项;当用户选择直播设备切换选项,根据第一直播参数生成对应的开始直播请求;当用户选择开启新的直播选项,根据第二直播参数生成对应的开始直播请求。
在一些实施例中,本公开的实施例的第二设备接收到两个直播参数,则第二设备能确认当前的账户有在使用另外的设备进行直播,故将基于两个直播参数生成提示消息并在第二设备的界面弹出,比如弹出的提示消息可以是“检测当您当前在第一设备上有另外的直播”,并提供三个选项“重新开启新的直播/将现有直播切换到第二设备/取消操作”供第二设备的用户(主播)选择。
在步骤S404中,通过直播账号接收服务器发送的携带第一直播标识的第一开始直播指令,并推送携带第一直播标识直播数据以继续进行第一直播。
其中,第二设备通过直播账号接收到服务器发送的携带视频流源站的直播地址和第一直播标识的第一开始直播指令之后,根据直播地址查找到对应的视频流源站,通过直播账号向视频流源站推送携带第一直播标识的直播数据以继续进行第一直播。
服务器若接收到第二设备发送的第一直播参数,说明第二设备的账户选择将第一设备的直播切换至第二设备,则向第二设备发送视频流源站的直播地址和第一直播标 识,使得第二设备能够基于直播地址向视频流源站推送具有第一直播标识和第二设备标识的直播数据;其中,视频流源站将拒绝第一设备发送的具有第一直播标识和第一设备标识的直播数据。
应用本公开的实施例,使得主播可以在已经通过第一直播开启第一直播时,通过第二设备重新开播而不换直播,由于观众设备的观众无需重新发起进入直播的请求,使得观众的体验得到提升,并降低重新开播后大量观众设备重新进入直播的请求尖峰,节省服务器资源。
在本公开的实施例中,上述步骤S403,通过直播账号向服务器发送与第一直播参数对应的开始直播请求,包括:根据第一直播参数生成直播设备切换选项;当触发直播设备切换选项时,根据第一直播参数生成开始直播请求并通过直播账号发送至服务器。
在本公开的实施例中,当账户在第二设备界面上选择直播设备切换选项,第二设备响应账户对该直播设备切换选项的触发操作,根据对应的第一直播参数生成开始直播请求,并通过直播账号将该开始直播请求发送至服务器。
在本公开的实施例中,上述步骤S402,通过直播账号接收到服务器发送的第一直播参数,包括:通过直播账号接收到服务器发送的第一直播参数,并且同时通过直播账号接收到服务器发送的第二直播参数。
在本公开的实施例中,第二设备通过直播账号同时接收到服务器发送的第一直播参数和第二直播参数,根据第一直播参数生成直播设备切换选项,以及,根据第二直播参数生成开启新的直播选项。
进一步地,在通过直播账号接收到服务器发送的第一直播参数,并且同时通过直播账号接收到服务器发送的第二直播参数之后,方法还包括:通过直播账号向服务器发送与第二直播参数对应的开始直播请求;接收服务器发送的携带第二直播标识的第二开始直播指令,并通过直播账号推送携带第二直播标识的直播数据以进行第二直播。
在本公开的实施例中,第二设备通过直播账号接收到服务器发送的携带视频流源站的直播地址和第二直播标识的第二开始直播指令之后,根据直播地址查找到对应的视频流源站,通过直播账号向视频流源站推送携带第二直播标识的直播数据以进行第二直播(即新的直播)。
服务器若接收到第二设备发送的第二直播参数,说明第二设备的账户选择在第二设备重新开启新的直播,则向第二设备发送视频流源站的直播地址和第二直播标识, 使得第二设备能够基于直播地址向视频流源站推送具有第二直播标识的直播数据以进行第二直播。
在本公开的实施例中,通过直播账号向服务器发送与第二直播参数对应的开始直播请求,包括:根据第二直播参数生成开启新的直播选项;当触发开启新的直播选项时,根据第二直播参数生成开始直播请求。
在本公开的实施例中,当账户在第二设备界面上选择开启新的直播选项,则第二设备响应账户对该开启新的直播选项的触发操作,并生成与第二直播参数对应的开始直播请求,并通过直播账号将该开始直播请求发送至服务器。
为了使本领域技术人员更好地理解本公开的实施例,下面采用具体示例对于用户已经使用第一设备开通第一直播的情形下,又使用第二设备重新开通第一直播的过程进行说明。参照图5,所示为一种切换设备时直播的流程示意图,涉及到new live(第二直播)的观众、old live(第一直播)的观众、设备A(第二设备)、设备B(第一设备)、互动服务(服务器)、MySQL(数据库)、视频流源站,具体实现步骤如下所示:
1、设备A通过账号向互动服务发送prePush请求(预直播请求)以请求prePushResult;
2、如果设备B通过同一账号已经开通了old live,互动服务将告知设备A的账户当前有另外的直播(old live),并返回两个prePushResult,即第一直播参数和第二直播参数,其中,第一直播参数是针对第一直播的,故与第一直播的第一直播标识对应;
3、设备A基于原有直播(old live)prePushResult向互动服务发送startPush请求(开始直播请求);
4、互动服务在MySQL中修改原有直播的直播记录,并将该直播记录中的重直播设备字段(rePushDeviceId)修改为设备A的设备标识(deviceid);
5、设备A接收到互动服务返回的startPushResult(开始直播参数),其中startPushResult中包括直播地址(KTP协议的直播地址)和一些其他的业务参数(old live的直播标识和直播标题等);
6、设备A使用KTP协议向视频流源站推送携带old live的直播标识的直播数据以继续进行old live;
7、设备B向视频流源站推送携带old live的直播标识的直播数据将被拒绝;
8、设备A基于新的直播(new live)prePushResult向互动服务发送startPush请 求(开始直播请求);
9、互动服务将old live的直播记录中的status设置为END(直播结束状态);
10、互动服务通知设备B已经关播;
11、互动服务通知old live的观众已经关播;
12、互动服务在MySQL中插入new live的直播记录,并将new live直播记录中的status设置为LIVING(直播中状态);
13、设备A接收到互动服务返回的startPushResult(开始直播参数),其中startPushResult中包括直播地址(KTP协议的直播地址)和一些其他的业务参数(new live的直播标识和直播标题等);
14、设备A使用KTP协议向视频流源站推送直播数据以开启new live;
15、如果没有其他设备通过同一账号开通old live,则互动服务向设备A返回的prePushResult(直播参数);
16、设备A基于prePushResult向互动服务发送startPush请求(开始直播请求);
17、互动服务在MySQL中插入new live的直播记录,并将new live直播记录中的status设置为LIVING(直播中状态);
18、互动服务向设备A返回startPushResult(开始直播参数),其中startPushResult中包括直播地址(KTP协议的直播地址)和一些其他的业务参数(new live的直播标识和直播标题等);
19、设备A使用KTP协议向视频流源站推送携带new live的直播标识的直播数据以开启new live;
20、如果设备A的new live被审核人员关闭,互动服务通知设备A已经关播;
21、互动服务通知new live的观众已经关播;
22、如果设备A直播失败,将自动向互动服务发起关播,则跳转至步骤23;
23、设备A向互动服务发送stopPush(关闭直播指令);
24、互动服务将数据库中new live的直播记录中的status设置为END(直播结束状态);
25、互动服务向设备A返回直播结束消息;
26、互动服务通知new live的观众已经关播。
可见,用于本公开的实施例账户(主播)可以使用另外的设备(设备A)重新开播而不换直播,因此对于观众设备的观众来说无需重新向服务器发起针对该直播的请 求,从而使观众的体验得到提升,并且由于观众设备无需重新发起请求,降低了重新开播后大量观众设备重新进入直播的请求尖峰,节省服务器资源。
应该理解的是,虽然图2-5的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-5中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。
图6是根据本公开的实施例示出的一种直播装置框图。参照图6,应用于服务器,服务器用于存储第一直播的第一直播记录,第一直播记录中包括直播状态、第一直播标识和直播账号,第一直播的直播设备为第一设备;该装置包括:
第一请求接收单元601,被配置为执行接收第二设备通过直播账号发送的预直播请求;
直播状态获取单元602,被配置为执行根据直播账号确定对应的第一直播记录,并从第一直播记录中获取直播状态;
参数发送单元603,被配置为执行当直播状态为直播中状态时,向第二设备的直播账号发送第一直播参数;其中,第一直播参数与第一直播标识对应;
第二请求接收单元604,被配置为执行接收第二设备通过直播账号发送的与第一直播参数对应的开始直播请求;
直播指令发送单元605,被配置为执行向第二设备的直播账号发送携带第一直播标识的第一开始直播指令,使得第二设备通过直播账号推送携带第一直播标识的直播数据以继续进行第一直播。
在本公开的实施例中,直播指令发送单元605,还被配置为执行向第二设备的直播账号发送携带第一直播标识的第一开始直播指令,第一开始直播指令还包括视频流源站的直播地址,使得第二设备通过直播账号基于直播地址向视频流源站推送携带第一直播标识的直播数据以继续进行第一直播。
在本公开的实施例中,参数发送单元603,还被配置为执行向第二设备的直播账号发送第一直播参数,并且同时向第二设备的直播账号发送第二直播参数;接收第二 设备通过直播账号发送的与第二直播参数对应的开始直播请求;生成第二直播标识,并生成第二直播记录;第二直播记录包括第二直播标识和直播账号;向第二设备的直播账号发送携带第二直播标识的第二开始直播指令,使得第二设备通过直播账号推送携带第二直播标识的直播数据以进行第二直播;第二直播为与第一直播通过同一直播账号发起的直播。
在本公开的实施例中,第一设备用于通过直播账号推送携带第一直播标识的直播数据以继续进行第一直播。
在本公开的实施例中,参数发送单元603,还被配置为执行向第二设备的直播账号发送携带第二直播标识的第二开始直播指令,第二开始直播指令还包括视频流源站的直播地址,使得第二设备通过直播账号基于直播地址向视频流源站推送携带第二直播标识的直播数据以进行第二直播。
在本公开的实施例中,第一直播记录和第二直播记录中包括状态字段,直播装置还包括通知消息发送单元,被配置为执行将第一直播记录中的状态字段从直播中状态修改为直播结束状态,以及,将第二直播记录中的状态字段设置为直播中状态;在将第一直播记录中的状态字段从直播中状态修改为直播结束状态后,向第一设备发送关闭直播的通知消息,使得第一设备停止通过直播账号推送携带第一直播标识的直播数据。
在本公开的实施例中,开始直播请求包括第二设备的第二设备标识,第一直播记录中还包括重直播设备字段,装置还包括设备标识设置单元,被配置为执行将第一直播记录中的重直播设备字段设置为第二设备的第二设备标识。
在本公开的实施例中,装置还包括状态字段修改单元,被配置为执行接收到通过直播账号发送的针对第一直播的关闭直播指令;从关闭直播指令中提取出设备标识,并获取第一直播对应的第一直播记录;当设备标识为与第一直播记录的重直播设备字段中的第二设备标识一致时,将第一直播记录中的状态字段修改为直播结束状态。
在本公开的实施例中,装置还包括地址发送单元,被配置为执行接收到观众设备发送的直播数据请求,直播数据请求中包括直播账号;获取与直播账号对应的第一直播标识和内容分发网络的直播数据获取地址;将第一直播标识和直播数据获取地址发送至观众设备,使得观众设备根据直播数据获取地址从内容分发网络中获取到第一直播标识对应的直播数据。
在本公开的实施例中,视频流源站用于在接收到第二设备通过直播账号推送的携 带第一直播标识的直播数据时,拒绝第一设备通过直播账号发送的携带第一直播标识的直播数据。
图7是根据本公开的实施例示出的一种直播装置框图。参照图7,应用于第二设备,该装置包括:
第一请求发送单元701,被配置为执行通过直播账号向服务器发送预直播请求;服务器用于存储第一直播的第一直播记录,第一直播记录中包括直播状态,第一直播标识和直播账号,第一直播的直播设备为第一设备;
参数接收单元702,被配置为执行当直播账号对应的第一直播记录中的直播状态为直播中状态时,通过直播账号接收到服务器发送的第一直播参数;其中,第一直播参数与第一直播标识对应;
第二请求发送单元703,被配置为执行通过直播账号向服务器发送与第一直播参数对应的开始直播请求;
直播数据推送单元704,被配置为执行通过直播账号接收服务器发送的携带第一直播标识的第一开始直播指令,并推送携带第一直播标识的直播数据以继续进行第一直播。
在本公开的实施例中,第二请求发送单元703,还被配置为执行根据第一直播参数生成直播设备切换选项;当触发直播设备切换选项时,根据第一直播参数生成开始直播请求并通过直播账号发送至服务器。
在本公开的实施例中,参数接收单元702,还被配置为执行通过直播账号接收到服务器发送的第一直播参数,并且同时通过直播账号接收到服务器发送的第二直播参数;
装置还包括第二直播单元,被配置为执行通过直播账号向服务器发送与第二直播参数对应的开始直播请求;接收服务器发送的携带第二直播标识的第二开始直播指令,并通过直播账号推送携带第二直播标识的直播数据以进行第二直播。
在本公开的实施例中,第二直播单元,还被配置为执行根据第二直播参数生成开启新的直播选项;当触发开启新的直播选项时,根据第二直播参数生成开始直播请求。
关于本公开的实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图8是根据本公开的实施例示出的一种用于直播的设备800的框图。例如,设备800可以是移动电话、计算机、数字广播终端、消息收发设备、游戏控制台、平板设备、医疗设备、健身设备、个人数字助理等。
参照图8,设备800可以包括以下一个或多个组件:处理组件802、存储器804、电力组件806、多媒体组件808、音频组件810、输入/输出(I/O)的接口812、传感器组件814以及通信组件816。
处理组件802通常控制设备800的整体操作,诸如与显示、电话呼叫、数据通信、相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在设备800上操作的任何应用程序或方法的指令、联系人数据、电话簿数据、消息、图片、视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM)、电可擦除可编程只读存储器(EEPROM)、可擦除可编程只读存储器(EPROM)、可编程只读存储器(PROM)、只读存储器(ROM)、磁存储器、快闪存储器、磁盘或光盘。
电源组件806为设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为设备800生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述设备800和用户之间的提供一个输出接口的屏幕。在一些本公开的实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些本公开的实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时, 麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些本公开的实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件814包括一个或多个传感器,用于为设备800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为设备800的显示器和小键盘,传感器组件814还可以检测设备800或设备800一个组件的位置改变,用户与设备800接触的存在或不存在,设备800方位或加速/减速和设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些本公开的实施例中,该传感器组件814还可以包括加速度传感器、陀螺仪传感器、磁传感器、压力传感器或温度传感器。
通信组件816被配置为便于设备800和其他设备之间有线或无线方式的通信。设备800可以接入基于通信标准的无线网络,如WiFi,运营商网络(如2G、3G、4G或5G),或它们的组合。在一个本公开的实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个本公开的实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在本公开的实施例中,设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述直播方法。
在本公开的实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由设备800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
图9是根据本公开的实施例示出的一种用于直播的设备900的框图。例如,设备900可以为一服务器。参照图9,设备900包括处理组件920,其进一步包括一个或多个处理器,以及由存储器922所代表的存储器资源,用于存储可由处理组件920的执行的指令,例如应用程序。存储器922中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件920被配置为执行指令,以执行上述直播方法。
设备900还可以包括一个电源组件924被配置为执行设备900的电源管理,一个有线或无线网络接口926被配置为将设备900连接到网络,和一个输入输出(I/O)接口928。设备900可以操作基于存储在存储器922的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。
在本公开的实施例中,还提供了一种包括指令的存储介质,例如包括指令的存储器922,上述指令可由设备900的处理器执行以完成上述方法。存储介质可以是非临时性计算机可读存储介质,例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和本公开的实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (32)

  1. 一种直播方法,应用于服务器,所述服务器用于存储第一直播的第一直播记录,所述第一直播记录中包括直播状态、第一直播标识和直播账号,所述第一直播的直播设备为第一设备;所述方法包括:
    接收第二设备通过所述直播账号发送的预直播请求;
    根据所述直播账号确定对应的第一直播记录,并从所述第一直播记录中获取所述直播状态;
    当所述直播状态为直播中状态时,向所述第二设备的所述直播账号发送第一直播参数;其中,所述第一直播参数与所述第一直播标识对应;
    接收所述第二设备通过所述直播账号发送的与所述第一直播参数对应的开始直播请求;
    向所述第二设备的所述直播账号发送携带所述第一直播标识的第一开始直播指令,使得所述第二设备通过所述直播账号推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
  2. 根据权利要求1所述的直播方法,其中,所述向所述第二设备的所述直播账号发送携带第一直播标识的第一开始直播指令,使得所述第二设备通过所述直播账号推送携带所述第一直播标识的直播数据以继续进行所述第一直播,包括:
    向所述第二设备的所述直播账号发送携带所述第一直播标识的第一开始直播指令,所述第一开始直播指令还包括视频流源站的直播地址,使得所述第二设备通过所述直播账号基于所述直播地址,向所述视频流源站推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
  3. 根据权利要求1所述的直播方法,其中,所述向所述第二设备的所述直播账号发送第一直播参数,包括:
    向所述第二设备的所述直播账号发送所述第一直播参数和第二直播参数;
    在向所述第二设备的所述直播账号发送所述第一直播参数和所述第二直播参数之后,所述方法还包括:
    接收所述第二设备通过所述直播账号发送的与所述第二直播参数对应的开始直播请求;
    生成第二直播标识,并生成第二直播记录;所述第二直播记录包括所述第二直播标识 和所述直播账号;
    向所述第二设备的所述直播账号发送携带所述第二直播标识的第二开始直播指令,使得所述第二设备通过所述直播账号推送携带所述第二直播标识的直播数据以进行第二直播;所述第二直播为与所述第一直播通过同一所述直播账号发起的直播。
  4. 根据权利要求3所述的直播方法,其中,所述第一设备用于通过所述直播账号推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
  5. 根据权利要求3所述的直播方法,其中,所述向所述第二设备的所述直播账号发送携带所述第二直播标识的第二开始直播指令,使得所述第二设备通过所述直播账号推送携带所述第二直播标识的直播数据以进行第二直播,包括:
    向所述第二设备的所述直播账号发送携带所述第二直播标识的第二开始直播指令,所述第二开始直播指令还包括视频流源站的直播地址,使得所述第二设备通过所述直播账号基于所述直播地址,向所述视频流源站推送携带所述第二直播标识的直播数据以进行第二直播。
  6. 根据权利要求3所述的直播方法,其中,所述第一直播记录和所述第二直播记录中包括状态字段,在向所述第二设备的所述直播账号发送携带所述第二直播标识的第二开始直播指令,使得所述第二设备通过所述直播账号推送携带所述第二直播标识的直播数据以进行第二直播之后,所述方法还包括:
    将所述第一直播记录中的状态字段从直播中状态修改为直播结束状态,以及,将所述第二直播记录中的状态字段设置为直播中状态;
    在将所述第一直播记录中的状态字段从直播中状态修改为直播结束状态后,向所述第一设备发送关闭直播的通知消息,使得所述第一设备停止通过所述直播账号推送携带所述第一直播标识的直播数据。
  7. 根据权利要求1所述的直播方法,其中,所述开始直播请求包括第二设备的第二设备标识,所述第一直播记录中还包括重直播设备字段,在接收所述第二设备通过所述直播账号发送的与所述第一直播参数对应的开始直播请求之后,所述方法还包括:
    将所述第一直播记录中的重直播设备字段设置为所述第二设备的第二设备标识。
  8. 根据权利要求7所述的直播方法,其中,在将所述第一直播记录中的重直播设备字段设置为所述第二设备的第二设备标识之后,所述方法还包括:
    接收到通过所述直播账号发送的针对所述第一直播的关闭直播指令;
    从所述关闭直播指令中提取出设备标识,并获取所述第一直播对应的第一直播记录;
    当所述设备标识为与所述第一直播记录的重直播设备字段中的第二设备标识一致时,将所述第一直播记录中的状态字段修改为直播结束状态。
  9. 根据权利要求1所述的直播方法,其中,在接收第二设备通过所述直播账号发送的预直播请求之前,所述方法还包括:
    接收到观众设备发送的直播数据请求,所述直播数据请求中包括所述直播账号;
    获取与所述直播账号对应的第一直播标识和内容分发网络的直播数据获取地址;
    将所述第一直播标识和所述直播数据获取地址发送至所述观众设备,使得所述观众设备根据所述直播数据获取地址从内容分发网络中获取到所述第一直播标识对应的直播数据。
  10. 根据权利要求2所述的直播方法,其中,所述视频流源站用于在接收到所述第二设备通过所述直播账号推送的携带所述第一直播标识的直播数据时,拒绝所述第一设备通过所述直播账号发送的携带所述第一直播标识的直播数据。
  11. 一种直播方法,应用于电子设备,所述方法包括:
    通过直播账号向服务器发送预直播请求;所述服务器用于存储第一直播的第一直播记录,所述第一直播记录中包括直播状态、第一直播标识和直播账号,所述第一直播的直播设备为第一设备;
    当所述直播账号对应的所述第一直播记录中的直播状态为直播中状态时,通过所述直播账号接收到所述服务器发送的第一直播参数;其中,所述第一直播参数与所述第一直播标识对应;
    通过所述直播账号向所述服务器发送与所述第一直播参数对应的开始直播请求;
    通过所述直播账号接收所述服务器发送的携带所述第一直播标识的第一开始直播指令,并推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
  12. 根据权利要求11所述的直播方法,其中,所述通过所述直播账号向所述服务器发送与所述第一直播参数对应的开始直播请求,包括:
    根据所述第一直播参数生成直播设备切换选项;
    当触发所述直播设备切换选项时,根据所述第一直播参数生成开始直播请求并通过所述直播账号发送至所述服务器。
  13. 根据权利要求12所述的直播方法,其中,所述通过所述直播账号接收到所述服务器发送的第一直播参数,包括:
    通过所述直播账号接收到所述服务器发送的所述第一直播参数和第二直播参数;
    在通过所述直播账号接收到所述服务器发送的所述第一直播参数和第二直播参数之后,所述方法还包括:
    通过所述直播账号向所述服务器发送与所述第二直播参数对应的开始直播请求;
    接收所述服务器发送的携带第二直播标识的第二开始直播指令,并通过所述直播账号推送携带所述第二直播标识的直播数据以进行第二直播。
  14. 根据权利要求13所述的直播方法,其中,所述通过所述直播账号向所述服务器发送与所述第二直播参数对应的开始直播请求,包括:
    根据所述第二直播参数生成开启新的直播选项;
    当触发所述开启新的直播选项时,根据所述第二直播参数生成开始直播请求。
  15. 一种直播装置,应用于服务器,所述服务器用于存储第一直播的第一直播记录,所述第一直播记录中包括直播状态、第一直播标识和直播账号,所述第一直播的直播设备为第一设备;所述装置包括:
    第一请求接收单元,被配置为执行接收第二设备通过所述直播账号发送的预直播请求;
    直播状态获取单元,被配置为执行根据所述直播账号确定对应的第一直播记录,并从所述第一直播记录中获取所述直播状态;
    参数发送单元,被配置为执行当所述直播状态为直播中状态时,向所述第二设备的所述直播账号发送第一直播参数;其中,所述第一直播参数与所述第一直播标识对应;
    第二请求接收单元,被配置为执行接收所述第二设备通过所述直播账号发送的与所述第一直播参数对应的开始直播请求;
    直播指令发送单元,被配置为执行向所述第二设备的所述直播账号发送携带第一直播标识的第一开始直播指令,使得所述第二设备通过所述直播账号推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
  16. 根据权利要求15所述的直播装置,其中,所述直播指令发送单元,还被配置为执行向所述第二设备的所述直播账号发送携带所述第一直播标识的第一开始直播指令,所述第一开始直播指令还包括视频流源站的直播地址,使得所述第二设备通过所述直播账号基于所述直播地址,向所述视频流源站推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
  17. 根据权利要求15所述的直播装置,其中,所述参数发送单元,还被配置为执行向 所述第二设备的所述直播账号发送第一直播参数,并且同时向所述第二设备的所述直播账号发送第二直播参数;接收所述第二设备通过所述直播账号发送的与所述第二直播参数对应的开始直播请求;生成第二直播标识,并生成第二直播记录;所述第二直播记录包括所述第二直播标识和所述直播账号;向所述第二设备的所述直播账号发送携带所述第二直播标识的第二开始直播指令,使得所述第二设备通过所述直播账号推送携带所述第二直播标识的直播数据以进行第二直播;所述第二直播为与所述第一直播通过同一所述直播账号发起的直播。
  18. 根据权利要求17所述的直播装置,其中,所述第一设备用于通过所述直播账号推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
  19. 根据权利要求17所述的直播装置,其中,所述参数发送单元,还被配置为执行向所述第二设备的所述直播账号发送携带所述第二直播标识的第二开始直播指令,所述第二开始直播指令还包括视频流源站的直播地址,使得所述第二设备通过所述直播账号基于所述直播地址,向所述视频流源站推送携带所述第二直播标识的直播数据以进行第二直播。
  20. 根据权利要求17所述的直播装置,其中,所述第一直播记录和所述第二直播记录中包括状态字段,所述直播装置还包括通知消息发送单元,被配置为执行将所述第一直播记录中的状态字段从直播中状态修改为直播结束状态,以及,将所述第二直播记录中的状态字段设置为直播中状态;在将所述第一直播记录中的状态字段从直播中状态修改为直播结束状态后,向所述第一设备发送关闭直播的通知消息,使得所述第一设备停止通过所述直播账号推送携带所述第一直播标识的直播数据。
  21. 根据权利要求15所述的直播装置,其中,所述开始直播请求包括第二设备的第二设备标识,所述第一直播记录中还包括重直播设备字段,所述装置还包括设备标识设置单元,被配置为执行将所述第一直播记录中的重直播设备字段设置为所述第二设备的第二设备标识。
  22. 根据权利要求21所述的直播装置,其中,所述装置还包括状态字段修改单元,被配置为执行接收到通过所述直播账号发送的针对所述第一直播的关闭直播指令;从所述关闭直播指令中提取出设备标识,并获取所述第一直播对应的第一直播记录;当所述设备标识为与所述第一直播记录的重直播设备字段中的第二设备标识一致时,将所述第一直播记录中的状态字段修改为直播结束状态。
  23. 根据权利要求15所述的直播装置,其中,所述装置还包括地址发送单元,被配置为执行接收到观众设备发送的直播数据请求,所述直播数据请求中包括直播账号;获取与 所述直播账号对应的第一直播标识和内容分发网络的直播数据获取地址;将所述第一直播标识和所述直播数据获取地址发送至所述观众设备,使得所述观众设备根据所述直播数据获取地址从内容分发网络中获取到所述第一直播标识对应的直播数据。
  24. 根据权利要求16所述的直播装置,其中,所述视频流源站用于在接收到所述第二设备通过所述直播账号推送的携带所述第一直播标识的直播数据时,拒绝所述第一设备通过所述直播账号发送的携带所述第一直播标识的直播数据。
  25. 一种直播装置,应用于电子设备,所述装置包括:
    第一请求发送单元,被配置为执行通过直播账号向服务器发送预直播请求;所述服务器用于存储第一直播的第一直播记录,所述第一直播记录中包括直播状态、第一直播标识和直播账号,所述第一直播的直播设备为第一设备;
    参数接收单元,被配置为执行当所述直播账号对应的所述第一直播记录中的直播状态为直播中状态时,通过所述直播账号接收到所述服务器发送的第一直播参数;其中,所述第一直播参数与所述第一直播标识对应;
    第二请求发送单元,被配置为执行通过所述直播账号向所述服务器发送与所述第一直播参数对应的开始直播请求;
    直播数据推送单元,被配置为执行通过所述直播账号接收所述服务器发送的携带所述第一直播标识的第一开始直播指令,并推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
  26. 根据权利要求25所述的直播装置,其中,所述第二请求发送单元,还被配置为执行根据所述第一直播参数生成直播设备切换选项;当触发所述直播设备切换选项时,根据所述第一直播参数生成开始直播请求并通过所述直播账号发送至所述服务器。
  27. 根据权利要求26所述的直播装置,其中,所述参数接收单元,还被配置为执行通过所述直播账号接收到所述服务器发送的所述第一直播参数和第二直播参数;
    所述装置还包括第二直播单元,被配置为执行通过所述直播账号向所述服务器发送与所述第二直播参数对应的开始直播请求;接收所述服务器发送的携带第二直播标识的第二开始直播指令,并通过所述直播账号推送携带所述第二直播标识的直播数据以进行第二直播。
  28. 根据权利要求27所述的直播装置,其中,所述第二直播单元,还被配置为执行根据所述第二直播参数生成开启新的直播选项;当触发所述开启新的直播选项时,根据所述 第二直播参数生成开始直播请求。
  29. 一种电子设备,包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令,实现以下步骤:
    通过直播账号向服务器发送预直播请求;所述服务器用于存储第一直播的第一直播记录,所述第一直播记录中包括直播状态、第一直播标识和直播账号,所述第一直播的直播设备为第一设备;
    当所述直播账号对应的所述第一直播记录中的直播状态为直播中状态时,通过所述直播账号接收到所述服务器发送的第一直播参数;其中,所述第一直播参数与所述第一直播标识对应;
    通过所述直播账号向所述服务器发送与所述第一直播参数对应的开始直播请求;
    通过所述直播账号接收所述服务器发送的携带所述第一直播标识的第一开始直播指令,并推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
  30. 一种服务器,所述服务器用于存储第一直播的第一直播记录,所述第一直播记录中包括直播状态、第一直播标识和直播账号,所述第一直播的直播设备为第一设备,所述服务器包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令,实现以下步骤:
    接收第二设备通过所述直播账号发送的预直播请求;
    根据所述直播账号确定对应的第一直播记录,并从所述第一直播记录中获取所述直播状态;
    当所述直播状态为直播中状态时,向所述第二设备的所述直播账号发送第一直播参数;其中,所述第一直播参数与所述第一直播标识对应;
    接收所述第二设备通过所述直播账号发送的与所述第一直播参数对应的开始直播请求;
    向所述第二设备的所述直播账号发送携带所述第一直播标识的第一开始直播指令,使得所述第二设备通过所述直播账号推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
  31. 一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:
    通过直播账号向服务器发送预直播请求;所述服务器用于存储第一直播的第一直播记录,所述第一直播记录中包括直播状态、第一直播标识和直播账号,所述第一直播的直播设备为第一设备;
    当所述直播账号对应的所述第一直播记录中的直播状态为直播中状态时,通过所述直播账号接收到所述服务器发送的第一直播参数;其中,所述第一直播参数与所述第一直播标识对应;
    通过所述直播账号向所述服务器发送与所述第一直播参数对应的开始直播请求;
    通过所述直播账号接收所述服务器发送的携带所述第一直播标识的第一开始直播指令,并推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
  32. 一种存储介质,当所述存储介质中的指令由服务器的处理器执行时,使得服务器能够执行以下步骤,其中,所述服务器用于存储第一直播的第一直播记录,所述第一直播记录中包括直播状态、第一直播标识和直播账号,所述第一直播的直播设备为第一设备:
    接收第二设备通过所述直播账号发送的预直播请求;
    根据所述直播账号确定对应的第一直播记录,并从所述第一直播记录中获取所述直播状态;
    当所述直播状态为直播中状态时,向所述第二设备的所述直播账号发送第一直播参数;其中,所述第一直播参数与所述第一直播标识对应;
    接收所述第二设备通过所述直播账号发送的与所述第一直播参数对应的开始直播请求;
    向所述第二设备的所述直播账号发送携带所述第一直播标识的第一开始直播指令,使得所述第二设备通过所述直播账号推送携带所述第一直播标识的直播数据以继续进行所述第一直播。
PCT/CN2020/128679 2020-05-27 2020-11-13 直播方法、装置、电子设备及存储介质 WO2021238098A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20938376.9A EP4054198A1 (en) 2020-05-27 2020-11-13 Live broadcast method and apparatus, electronic device, and storage medium
US17/745,702 US11523146B2 (en) 2020-05-27 2022-05-16 Live broadcast method and apparatus, electronic device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010461060.9A CN111641839B (zh) 2020-05-27 2020-05-27 直播方法、装置、电子设备及存储介质
CN202010461060.9 2020-05-27

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/745,702 Continuation US11523146B2 (en) 2020-05-27 2022-05-16 Live broadcast method and apparatus, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
WO2021238098A1 true WO2021238098A1 (zh) 2021-12-02

Family

ID=72331077

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/128679 WO2021238098A1 (zh) 2020-05-27 2020-11-13 直播方法、装置、电子设备及存储介质

Country Status (4)

Country Link
US (1) US11523146B2 (zh)
EP (1) EP4054198A1 (zh)
CN (1) CN111641839B (zh)
WO (1) WO2021238098A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111641839B (zh) * 2020-05-27 2021-09-21 北京达佳互联信息技术有限公司 直播方法、装置、电子设备及存储介质
CN112153399A (zh) * 2020-09-21 2020-12-29 北京达佳互联信息技术有限公司 直播流推送方法、预推流请求方法及相关设备
CN112738540B (zh) * 2020-12-25 2023-09-05 广州虎牙科技有限公司 多设备直播切换方法、装置、系统、电子设备和可读存储介质
CN114095616A (zh) * 2021-12-17 2022-02-25 北京小米移动软件有限公司 通话实现方法和装置、电子设备、可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160150284A1 (en) * 2014-11-20 2016-05-26 Squaredon Co Ltd Dynamic channel selection for live and previously broadcast content
CN106686396A (zh) * 2016-12-30 2017-05-17 广州酷狗计算机科技有限公司 一种切换直播间的方法和系统
CN107005721A (zh) * 2016-11-22 2017-08-01 广州市百果园信息技术有限公司 直播间视频流推送控制方法及相应的服务器与移动终端
CN108093267A (zh) * 2017-12-27 2018-05-29 广州虎牙信息科技有限公司 一种直播方法、装置、存储介质及电子设备
CN110740386A (zh) * 2018-07-18 2020-01-31 腾讯科技(深圳)有限公司 直播切换方法、装置及存储介质
CN111641839A (zh) * 2020-05-27 2020-09-08 北京达佳互联信息技术有限公司 直播方法、装置、电子设备及存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9674257B2 (en) * 2013-12-31 2017-06-06 Echostar Technologies L.L.C. Placeshifting live encoded video faster than real time
US20170171605A1 (en) * 2015-12-15 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and Electronic Device for Switching Live Broadcast to On-Demand Unicast
CN106488335B (zh) * 2016-09-20 2019-08-16 北京小米移动软件有限公司 直播控制方法及装置
CN106454392A (zh) * 2016-11-24 2017-02-22 北京小米移动软件有限公司 直播处理方法、装置及终端
US11470373B2 (en) * 2016-12-31 2022-10-11 Turner Broadcasting System, Inc. Server-side dynamic insertion of programming content in an indexed disparate live media output stream
CN108093268B (zh) * 2017-12-29 2020-11-10 广州酷狗计算机科技有限公司 进行直播的方法和装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160150284A1 (en) * 2014-11-20 2016-05-26 Squaredon Co Ltd Dynamic channel selection for live and previously broadcast content
CN107005721A (zh) * 2016-11-22 2017-08-01 广州市百果园信息技术有限公司 直播间视频流推送控制方法及相应的服务器与移动终端
CN106686396A (zh) * 2016-12-30 2017-05-17 广州酷狗计算机科技有限公司 一种切换直播间的方法和系统
CN108093267A (zh) * 2017-12-27 2018-05-29 广州虎牙信息科技有限公司 一种直播方法、装置、存储介质及电子设备
CN110740386A (zh) * 2018-07-18 2020-01-31 腾讯科技(深圳)有限公司 直播切换方法、装置及存储介质
CN111641839A (zh) * 2020-05-27 2020-09-08 北京达佳互联信息技术有限公司 直播方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
US11523146B2 (en) 2022-12-06
CN111641839A (zh) 2020-09-08
EP4054198A1 (en) 2022-09-07
US20220279218A1 (en) 2022-09-01
CN111641839B (zh) 2021-09-21

Similar Documents

Publication Publication Date Title
WO2021238098A1 (zh) 直播方法、装置、电子设备及存储介质
CN105843615B (zh) 通知消息的处理方法及装置
WO2017092247A1 (zh) 一种播放多媒体数据的方法、装置及系统
CN106488335B (zh) 直播控制方法及装置
WO2017101517A1 (zh) 设备绑定方法和装置
WO2016206293A1 (zh) 运营商网络的接入方法和装置
US20150333971A1 (en) Method and device for managing processes of application program
US20090241149A1 (en) Content reproduction system, remote control device, and computer program
JP6177457B2 (ja) 通話要求をプロンプトする方法、装置、プログラム及び記録媒体
CN107526591B (zh) 切换直播间类型的方法和装置
CN107888965B (zh) 图像礼物展示方法及装置、终端、系统、存储介质
CN106528081B (zh) 操作执行方法及装置
US11435975B2 (en) Preview display method based on multi-angle and communication system
CN105786507B (zh) 显示界面切换的方法及装置
US9350852B1 (en) Intelligent auto screen lock
WO2020056741A1 (zh) 接入控制限制方法及装置
CN113365153B (zh) 数据分享方法、装置、存储介质及电子设备
US20210311699A1 (en) Method and device for playing voice, electronic device, and storage medium
WO2023020008A1 (zh) 控制投屏的方法、电子设备及计算机可读存储介质
JP2016537904A (ja) Wi−fiネットワーク接続方法、装置、プログラム、及び記録媒体
WO2021143881A1 (zh) 直播流的拉流方法及设备
CN112291631A (zh) 信息获取方法、装置、终端及存储介质
WO2022262229A1 (zh) 直播任务分配方法及装置
US20220159336A1 (en) Method and system for displaying screen
CA3102425C (en) Video processing method, device, terminal and storage medium

Legal Events

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

Ref document number: 20938376

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020938376

Country of ref document: EP

Effective date: 20220603

NENP Non-entry into the national phase

Ref country code: DE