CN112738540A - Multi-device live broadcast switching method, device and system, electronic device and readable storage medium - Google Patents

Multi-device live broadcast switching method, device and system, electronic device and readable storage medium Download PDF

Info

Publication number
CN112738540A
CN112738540A CN202011566632.6A CN202011566632A CN112738540A CN 112738540 A CN112738540 A CN 112738540A CN 202011566632 A CN202011566632 A CN 202011566632A CN 112738540 A CN112738540 A CN 112738540A
Authority
CN
China
Prior art keywords
live
live broadcast
stream
equipment
broadcast
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011566632.6A
Other languages
Chinese (zh)
Other versions
CN112738540B (en
Inventor
钟宝健
苏庆辉
曾文舟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN202011566632.6A priority Critical patent/CN112738540B/en
Publication of CN112738540A publication Critical patent/CN112738540A/en
Application granted granted Critical
Publication of CN112738540B publication Critical patent/CN112738540B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • 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/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/637Control signals issued by the client directed to the server or network components
    • H04N21/6377Control signals issued by the client directed to the server or network components directed to server
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a multi-device live broadcast switching method, a multi-device live broadcast switching device, a multi-device live broadcast switching system, electronic equipment and a readable storage medium, wherein any live broadcast device obtains target device information according to a switching instruction when monitoring the switching instruction indicating device switching in the process of live broadcast stream pushing of the current device, so that the current device is controlled to stop live broadcast stream pushing of live broadcast data streams with live broadcast stream identifications, and the target device is controlled to start executing live broadcast stream pushing carrying the live broadcast stream identifications, so that a live broadcast server pushes received live broadcast data streams with the live broadcast stream identifications as a same output stream. Therefore, switching control can be realized based on any live broadcast equipment in the plurality of live broadcast equipment, the anchor can conveniently and directly switch and control, and the usability and the expansibility are greatly improved.

Description

Multi-device live broadcast switching method, device and system, electronic device and readable storage medium
Technical Field
The application relates to the technical field of network live broadcast, in particular to a multi-device live broadcast switching method, device and system, electronic equipment and a readable storage medium.
Background
With the development of internet technology, live video has been more and more noticed and liked by people. The anchor is in the process of live broadcasting, hopes to be able to carry out many-sided live broadcast show to spectator, for example, shoot from a plurality of different positions in order to live, or adopt different live broadcast forms to live, like record screen or video shooting live etc.. In the prior art, when switching among a plurality of devices, the anchor live broadcasting process needs to be realized by adopting a director form through a server, so that convenience and flexibility are lacked, and the anchor live broadcasting process is not beneficial to the anchor live broadcasting process to be controlled according to requirements in an actual scene.
Disclosure of Invention
The application aims to provide a multi-device live broadcast switching method, a multi-device live broadcast switching device, a multi-device live broadcast switching system, an electronic device and a readable storage medium, which can improve the usability and expansibility and facilitate the switching operation of a host.
The embodiment of the application can be realized as follows:
in a first aspect, the present application provides a multi-device live broadcast switching method, which is applied to any live broadcast device in a multi-device live broadcast switching system, where each live broadcast device is in communication connection with a live broadcast server, and the method includes:
in the process of live streaming of the current equipment, if a switching instruction for instructing equipment switching is monitored, target equipment information is obtained according to the switching instruction;
and controlling the current equipment to stop carrying out stream pushing of the live broadcast data stream with the live broadcast stream identification, and controlling the target equipment to start executing the live broadcast stream pushing carrying the live broadcast stream identification, so that the live broadcast server pushes the received live broadcast data stream with the live broadcast stream identification as the same output stream.
In an alternative embodiment, the live stream identification contains live room information;
the step of controlling the target device to start executing live streaming pushing carrying the live streaming identification so that the live server pushes the received live streaming data stream with the live streaming identification as the same output stream includes:
acquiring the live broadcast room information of the anchor account logged on the current equipment;
and controlling the target equipment to carry the obtained live broadcast data stream with the live broadcast room information to carry out live broadcast stream pushing so that the live broadcast server pushes the received live broadcast data stream to a viewer end corresponding to the viewer entering the live broadcast room.
In an optional implementation manner, the step of controlling the target device to carry the obtained live broadcast data stream with the live broadcast room information to perform live broadcast streaming, so that the live broadcast server pushes the received live broadcast data stream to a viewer side corresponding to a viewer entering the live broadcast room includes:
acquiring a live broadcast stream name of live broadcast stream pushing of the current equipment through the live broadcast room;
generating a corresponding unique identifier according to the equipment information of the target equipment and the live stream name;
and controlling the target equipment to carry the obtained live broadcast data stream with the live broadcast room information and the unique identifier to carry out live broadcast stream pushing so that the live broadcast server records the unique identifier and pushes the received live broadcast data stream to a viewer end corresponding to a viewer entering the live broadcast room.
In an optional implementation manner, the live data streams of the current device and the target device include a collected video stream of a main broadcast or a video stream obtained by performing a screen recording operation on display information.
In an alternative embodiment, the method further comprises:
acquiring a live broadcast video stream when the target equipment executes live broadcast stream pushing;
and performing local preview display on the live video stream.
In an optional implementation manner, the step of controlling the current device to stop performing live streaming of a live data stream having a live stream identifier, and controlling the target device to start executing live streaming carrying the live stream identifier includes:
controlling the current equipment to stop sending the live video stream with the live stream identification to a live server, and keeping sending the live audio stream with the live stream identification to the live server;
and controlling the target equipment to start to send the obtained live video stream and live audio stream carrying the live stream identification to the live server.
In an alternative embodiment, the method further comprises:
in the process of live broadcast stream pushing of the current equipment, if a mixed instruction indicating multi-equipment playing is monitored, obtaining information of a plurality of corresponding live broadcast equipment according to the mixed instruction;
and controlling each live broadcast device in the plurality of live broadcast devices to carry out live broadcast stream pushing of the live broadcast data stream based on the same live broadcast stream identifier so that the live broadcast server carries out mixed processing on the received plurality of live broadcast data streams with the same live broadcast stream identifier and then carries out pushing.
In a second aspect, the present application provides a multi-device live broadcast switching method, which is applied to any live broadcast device in a multi-device live broadcast switching system, where each live broadcast device is in communication connection with a live broadcast server, and the method includes:
when receiving a switching notification indicating that other live broadcast equipment in the multi-equipment live broadcast switching system is switched to the live broadcast equipment, acquiring a live broadcast stream identifier adopted when the current equipment pushes streams;
and carrying the live broadcast stream identification on the obtained live broadcast data stream to carry out live broadcast stream pushing, so that a live broadcast server pushes the received live broadcast data stream with the live broadcast stream identification as the same output stream.
In an optional embodiment, the method further includes a step of establishing a live association relationship with the current device in advance, where the step includes:
scanning a login identification code displayed by the current equipment, wherein the login identification code is generated by the current equipment according to broadcasting information;
and after the login is successful, the playing information is obtained, and a live broadcast association relation is established with the current equipment.
In an optional embodiment, the step of obtaining the broadcast information after successful login and establishing a live association relationship with the current device includes:
feeding back login success information to the current equipment;
receiving broadcast information sent by the current equipment after the current equipment receives the login success information, storing the broadcast information, and sending connection success information carrying equipment information of the current equipment to the current equipment so that the current equipment stores the equipment information into an equipment list.
In a third aspect, the present application provides a multi-device live broadcast switching method, which is applied to a multi-device live broadcast switching system including a plurality of live broadcast devices, where each live broadcast device is in communication connection with a live broadcast server, and the method includes:
in the process of live streaming of any live device, if a switching instruction indicating device switching is monitored during live streaming of the current device, target device information is obtained according to the switching instruction, and a push-stream stopping notification and a push-stream executing notification are sent to the current device;
after receiving the push stream stopping notification, the current equipment stops pushing the live data stream with the live stream identification;
and after receiving the execution stream pushing notification, the target device starts to execute the live stream pushing carrying the live stream identification, so that the live server pushes the received live data stream with the live stream identification as the same output stream.
In a fourth aspect, the present application provides a multi-device live broadcast switching apparatus, which is applied to any live broadcast device in a multi-device live broadcast switching system, where each live broadcast device is in communication connection with a live broadcast server, and the apparatus includes:
the monitoring module is used for acquiring target equipment information according to a switching instruction when the switching instruction indicating equipment switching is monitored in the process of live broadcast push flow of the current equipment;
and the control module is used for controlling the current equipment to stop carrying out stream pushing of the live data stream with the live stream identification, and controlling the target equipment to start executing the live stream pushing carrying the live stream identification, so that the live server takes the received live data stream with the live stream identification as the same output stream to carry out pushing.
In a fifth aspect, the present application provides a multi-device live broadcast switching apparatus, which is applied to any live broadcast device in a multi-device live broadcast switching system, where each live broadcast device is in communication connection with a live broadcast server, and the apparatus includes:
the receiving module is used for acquiring a live broadcast stream identifier adopted when the current equipment pushes the stream when receiving a switching notice which is sent by other live broadcast equipment in the multi-equipment live broadcast switching system and indicates that the current equipment is switched to the receiving module from the current equipment;
and the stream pushing module is used for carrying the live stream identification on the obtained live data stream to carry out live stream pushing so that the live server can push the received live data stream with the live stream identification as the same output stream.
In a sixth aspect, the application provides a multi-device live broadcast switching system, including a plurality of live broadcast devices, each live broadcast device is in communication connection with a live broadcast server:
any live broadcast equipment is used for acquiring target equipment information according to a switching instruction when monitoring the switching instruction indicating equipment switching in the process of live broadcast push flow of the current equipment, sending a push flow stopping notification to the current equipment and sending a push flow executing notification to the target equipment;
the current equipment is used for stopping the stream pushing of the live broadcast data stream with the live broadcast stream identification after receiving the stream pushing stopping notification;
and the target equipment is used for starting to execute the live streaming carrying the live streaming identification after receiving the execution streaming pushing notification so that the live server pushes the received live streaming data stream with the live streaming identification as the same output stream.
In a seventh aspect, the present application provides an electronic device, including one or more storage media and one or more processors in communication with the storage media, where the one or more storage media store machine-executable instructions executable by the processors, and when the electronic device runs, the processors execute the machine-executable instructions to perform the multi-device live broadcast switching method in any one of the foregoing embodiments.
In an eighth aspect, the present application provides a computer-readable storage medium storing machine-executable instructions, which when executed, implement the multi-device live broadcast switching method described in any one of the foregoing embodiments.
The beneficial effects of the embodiment of the application include, for example:
the application provides a multi-device live broadcast switching method, a multi-device live broadcast switching device, a multi-device live broadcast switching system, electronic equipment and a readable storage medium, wherein any live broadcast device obtains target device information according to a switching instruction when monitoring the switching instruction indicating device switching in the process of live broadcast stream pushing of the current device, so that the current device is controlled to stop live broadcast stream pushing of live broadcast data streams with live broadcast stream identifications, and the target device is controlled to start executing live broadcast stream pushing carrying the live broadcast stream identifications, so that a live broadcast server pushes received live broadcast data streams with the live broadcast stream identifications as a same output stream. Therefore, switching control can be realized based on any live broadcast equipment in the plurality of live broadcast equipment, the anchor can conveniently and directly switch and control, and the usability and the expansibility are greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic view of an application scenario of a multi-device live broadcast switching method according to an embodiment of the present application;
fig. 2 is a flowchart of a multi-device live broadcast switching method provided in an embodiment of the present application;
FIG. 3 is a flow chart of the substeps of step S120 in FIG. 2;
FIG. 4 is a flowchart of the substeps of step S122 of FIG. 3;
fig. 5 is a flowchart of a preview display method in a multi-device live broadcast switching method provided in the embodiment of the present application;
FIG. 6 is another flowchart of the substeps of step S120 in FIG. 2;
fig. 7 is a flowchart of a hybrid push method in a multi-device live broadcast switching method according to an embodiment of the present application;
fig. 8 is another flowchart of a multi-device live broadcast switching method according to an embodiment of the present application;
fig. 9 is a flowchart of a method for pre-establishing a connection in a multi-device live broadcast switching method according to an embodiment of the present application;
FIG. 10 is a flowchart of the substeps of step S520 in FIG. 9;
fig. 11 is another flowchart of a multi-device live broadcast switching method according to an embodiment of the present application;
fig. 12 is a schematic diagram of an interaction between a live device and a live server according to an embodiment of the present application;
fig. 13 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 14 is a functional block diagram of a multi-device live broadcast switching apparatus according to an embodiment of the present application;
fig. 15 is another functional block diagram of a multi-device live broadcast switching apparatus according to an embodiment of the present application.
Icon: 100-live equipment; 110-a storage medium; 120-a processor; 130-a multi-device live switching device; 131-a monitoring module; 132-a control module; 133-a receiving module; 134-a plug flow module; 140-a communication interface; 200-a live broadcast server; 300-audience side.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
Referring to fig. 1, a schematic view of a possible application scenario of the multi-device live broadcast switching method according to the embodiment of the present application is shown, where the scenario includes a multi-device live broadcast switching system, a live broadcast server 200, and a viewer end 300. The multi-device live broadcast switching system comprises a plurality of live broadcast devices 100, and a live broadcast server 200 is in communication connection with the live broadcast devices 100 and a viewer end 300 respectively and is used for providing live broadcast services for the live broadcast devices 100 and the viewer end 300. For example, the live device 100 may transmit the live data stream to the live server 200, and the viewer may access the live server 200 through the viewer end 300 to obtain the live data stream.
The live data stream pushed by the live server 200 may be a video stream currently live in the live platform or a complete video stream formed after the live broadcast is completed.
In this embodiment, the live broadcast devices 100 may be multiple, and optionally, the live broadcast devices 100 may be classified as live broadcast devices 100 corresponding to different anchor broadcasters, and for a certain anchor, the live broadcast devices 100 corresponding to the anchor may be multiple, that is, the anchor may utilize a plurality of live broadcast devices 100 to perform live webcasting, so that live video broadcast of shooting from different angles may be implemented, or live broadcast of switching between live video shooting and live screen recording may be implemented.
In this embodiment, the live device 100 may be, but is not limited to, a mobile device such as a smart phone, a personal digital assistant, a tablet computer, and the like. The spectator end 300 may be, but is not limited to, a smart phone, a personal digital assistant, a tablet computer, a personal computer, a notebook computer, a virtual reality terminal device, an augmented reality terminal device, etc. The live server 200 may be a VP (Video Process, referred to as Video processing server) server.
The live broadcast device 100 and the viewer end 300 may have an internet product installed therein for providing a live broadcast service of the internet, for example, the internet product may be an application APP, a Web page, an applet, and the like used in a computer or a smart phone and related to the live broadcast service of the internet.
In this embodiment, a video capture device for capturing the anchor video frame may be further included in the scene, and the video capture device may be, but is not limited to, a camera, a lens of a digital camera, a monitoring camera, a webcam, or the like.
The video capture device may be mounted directly or integrated with the live device 100. For example, the video capture device may be a camera configured on the live device 100, and other modules or components in the live device 100 may receive video and images transmitted from the video capture device via the internal bus. Alternatively, the video capture device may be independent of the live device 100, and the two devices may communicate with each other in a wired or wireless manner.
It is understood that the scenario shown in fig. 1 is only one possible example, and in other possible embodiments, the scenario may include only a part of the components shown in fig. 1 or may also include other components.
Fig. 2 is a flowchart illustrating a multi-device live broadcast switching method provided in an embodiment of the present application, where the multi-device live broadcast switching method can be executed by any live broadcast device 100 shown in fig. 1. In this embodiment, the live device 100 that executes the multi-device live switching method functions as a control terminal of switching control to execute the method.
It should be understood that, in other embodiments, the order of some steps in the multi-device live broadcast switching method of this embodiment may be interchanged according to actual needs, or some steps may be omitted or deleted. The detailed steps of the multi-device live broadcast switching method are introduced as follows.
Step S110, in the process of live streaming of the current equipment, if a switching instruction indicating equipment switching is monitored, target equipment information is obtained according to the switching instruction.
Step S120, controlling the current device to stop performing stream pushing of the live data stream with the live stream identifier, and controlling the target device to start executing the live stream pushing carrying the live stream identifier, so that the live server 200 pushes the received live data stream with the live stream identifier as a same output stream.
In this embodiment, a description is given by taking an example of performing live webcasting on a certain anchor, and in an application scenario of this embodiment, the anchor may perform live webcasting by using a plurality of live webcasting devices 100. For example, the plurality of live devices 100 may be live devices 100 arranged in different directions with respect to the main broadcast, or may be live devices 100 that perform live broadcast in different live broadcast forms, such as live broadcast of a main broadcast video stream that can be shot, live broadcast in a screen recording manner, and the like, and the embodiment is not limited in particular.
In the live broadcasting process, if the anchor switches the live broadcasting device 100 according to the live broadcasting requirement of the anchor or switches the live broadcasting device 100 according to the feedback opinion of the audience, the anchor can execute switching control based on any live broadcasting device 100 in the multiple live broadcasting devices 100.
For convenience of description, the live device 100 used by the above-described anchor for performing the switching manipulation is named a master device, and the other live devices 100 held by the same are named slave devices. It should be understood that the master device may be any one of the plurality of live devices 100.
The switching instruction monitored by the master device may include target device information determined by the master, that is, the switching instruction indicates switching from the current device currently performing live streaming to the target device to perform live streaming. For example, the current device may be a live device 100 disposed in front of the anchor and the target device may be a live device 100 disposed behind the anchor, or the current device may be a live device 100 that performs live based on a video of the anchor that is shot and the target device may be a live device 100 that performs live in a screen-recording manner.
After receiving the switching instruction, the main device can control the current device to stop performing stream pushing and control the target device to start performing stream pushing. Alternatively, the master device may transmit a stop push flow notification to the current device, thereby notifying the current device to stop the push flow, and the master device may transmit an execute push flow notification to the target device, thereby notifying the target device to execute the push flow.
As can be seen from the above description, the current device and the target device are both live devices 100 held by the anchor, and both are devices for implementing live broadcast for the anchor, and therefore, live push streams performed by both should have the same live stream identifier, so as to instruct the live server 200 to push received live data streams having the same live stream identifier as the same output source. That is, although the live data streams of the live push streams of the current device and the target device come from different input sources, the live server 200 can use both live stream identifications as data streams output by the live stations of the anchor by using the same live stream identifications of the current device and the target device.
Therefore, based on the above, after receiving the push notification sent by the master device to stop pushing the live stream, the current device will stop pushing the live stream with the current live stream identifier, and after receiving the push notification sent by the master device to execute, the target device will start executing the live stream with the live stream identifier.
In this embodiment, when performing live streaming, the live broadcasting device 100 may perform streaming in a video streaming mode based on a UDP (User Datagram Protocol) transport layer.
In this embodiment, for the current device and the target device, the current device may be a master device, and the target device may be any one of the slave devices, that is, the master device may stop its own live streaming according to a switching instruction if the switching instruction is monitored during the live streaming of the master device itself, and control any one of the slave devices to execute the live streaming.
In addition, in another scenario, the current device may be any one of the auxiliary devices, and the target device may be a main device, that is, the main device may control any one of the auxiliary devices to stop live streaming according to a switching instruction and control itself to start executing live streaming when monitoring the switching instruction in a live streaming process of any one of the auxiliary devices.
In another scenario, the current device may be any one of the secondary devices, and the target device may be another secondary device, that is, the primary device is only used as a control end to control the switching of the live push stream between different secondary devices.
In this embodiment, live streaming switching in the live broadcasting process of the anchor can be realized through any live broadcasting device 100 of the multiple live broadcasting devices 100 held by the anchor, so that the usability and the expansibility are greatly improved, and the anchor can directly perform switching control.
In this embodiment, the live stream identifier may mark the live data stream as a data stream related to the anchor, and different live devices 100 need to perform live stream pushing with the same live stream identifier, and a live association relationship between different live devices 100 needs to be established in advance, that is, different live devices 100 are associated in the same live scene.
In this embodiment, before or during live broadcasting, the main device may generate a login identification code according to the broadcast information, and display the login identification code. The broadcast information may include a live stream identifier generated for the live broadcast. Other auxiliary devices can scan the login identification code, and after the login identification code is scanned successfully, the auxiliary devices can feed login success information back to the main device. The main equipment can send the broadcast information to the corresponding auxiliary equipment after receiving the login success information, the auxiliary equipment can store the broadcast information after obtaining the broadcast information, and the connection success information carrying the equipment information of the auxiliary equipment is sent to the main equipment under the control of the main broadcast. After receiving the connection success information, the master device may store the device information of the slave device in the device list. Thereby successfully establishing the live broadcast association relationship of the two.
After connection, in a subsequent live broadcast process, the connection between the primary device and the secondary device may be maintained by receiving and sending heartbeat packets, and if the heartbeat packet of any one of the devices is overtime or stopped, it may be considered that the connection between the devices is disconnected, and reconnection needs to be performed or related processing needs to be performed.
After the establishment of the pre-established live broadcast association relationship, each live broadcast device 100 held by the anchor can realize live broadcast stream pushing based on the same live broadcast stream identifier during stream pushing subsequently.
Optionally, the live stream identifier may contain live room information. That is, live data streams with the same live stream identification are pushed in the same live room. Based on this, referring to fig. 3, when the control target device executes live streaming, the live streaming can be executed in the following manner:
and step S121, acquiring the live broadcast room information of the anchor account logged on the current device.
Step S122, controlling the target device to perform live streaming on the obtained live data stream carrying the live room information, so that the live server 200 pushes the received live data stream to the audience 300 corresponding to the audience entering the live room.
In this embodiment, for a certain anchor, the live data stream of the anchor can be pushed in the live room of the anchor account, so as to be pushed to the audience 300 of the audience entering the live room. Therefore, the live data stream sent to the live server 200 by each live device 100 may carry the unified live room information, and the live server 200 may push the live data stream of each live device 100 to the corresponding live room according to the live room information.
In this embodiment, when the current device is switched to the target device, live room information of the anchor account registered on the current device may be acquired, or, in implementation, live room information of the anchor account registered on the host device may be used as a standard. When switching to each slave device for live streaming, the slave device may be controlled to carry the obtained live data stream with live room information of the anchor account logged in the master device, so as to send the live data stream to the live server 200.
In this embodiment, each live device 100 can perform stream pushing for the same live broadcast, but during stream pushing, data streams pushed by each live device 100 need to be distinguished, so in this embodiment, please refer to fig. 4, and on the basis of the above, when a control target device performs live broadcast stream pushing, the following method can be implemented:
and step S1221, obtaining the live broadcast stream name of live broadcast stream pushing of the current equipment through the live broadcast room.
Step S1222, generating a corresponding unique identifier according to the device information of the target device and the live stream name.
Step S1223, controlling the target device to perform live broadcast streaming on the obtained live broadcast data stream carrying the live broadcast room information and the unique identifier, so that the live broadcast server 200 records the unique identifier and pushes the received live broadcast data stream to the audience 300 corresponding to the audience entering the live broadcast room.
In this embodiment, a live stream name of live streaming performed by the current device through a live room of the anchor account registered by the current device before switching may be obtained, and the live stream name may be used to uniquely identify a data stream of the live streaming. Similarly, each slave device may obtain the live stream name of the live room push stream on the master device when switching to itself for push stream, using the live stream name of the live push stream in the live room of the master account registered on the master device as a standard.
On this basis, each live device 100 further has corresponding device information, and the device information may include a globally unique identifier corresponding to the device, and may be used to uniquely identify the live device 100 in a multi-device live switching system. When the stream is pushed to the target device, a unique identifier may be generated according to the device information of the target device and the name of the live stream, and a live data stream carrying the unique identifier may be characterized, where the live data stream is sent by a certain live device 100 in the live broadcast.
Thus, the live broadcast server 200 can record the unique identifier therein after receiving the live broadcast data stream, and push the live broadcast data stream to the viewer end 300 corresponding to the viewer entering the corresponding live broadcast room according to the live broadcast room information carried by the live broadcast server.
As can be seen from the above, in the plurality of live broadcast terminals, the live broadcast device 100 for controlling live broadcast switching by the anchor broadcast may be a master device, and the remaining live broadcast devices 100 may be slave devices. In order to facilitate the anchor to know the stream pushing situation of other secondary devices locally and directly based on the primary device, please refer to fig. 5, the method for switching live broadcasts of multiple devices provided in this embodiment further includes the following steps:
step S210, acquiring a live video stream when the target device executes live streaming.
Step S220, performing local preview display on the live video stream.
In this embodiment, when the target device performs live streaming, a live video stream of the live streaming can be acquired. The live video stream may be a video of a main broadcast captured by the target device, or a live video stream generated by the target device recording the display information. The main device can display the live video stream of the target device in a local preview mode, and therefore the main device can know the push stream situation of each auxiliary device conveniently.
Further, in an application scenario, it is considered that in addition to video streaming based on the respective live devices 100, a anchor may utilize a certain live device 100, e.g., a master device, to perform audio commentary, etc. Therefore, taking the current device as the main device, that is, when switching from the push stream of the current device to the push stream of the other live device 100, the switching can be implemented in the following manner, please refer to fig. 6:
step S123, controlling the current device to stop sending the live video stream with the live stream identifier to the live server 200, and keeping sending the live audio stream with the live stream identifier to the live server 200.
Step S124, controlling the target device to start sending the obtained live video stream and live audio stream carrying the live stream identifier to the live server 200.
When the main device performs stream pushing, the live video stream and the live audio stream are included, and the live audio stream can be acquired by an audio acquisition device of the main device. When it is necessary to switch from the master device to the target device (other slave devices), the master device may control itself to stop transmitting the live video stream, but in order to ensure that the audio of the anchor can be continuously pushed, the captured live audio stream may be kept transmitted to the live server 200.
Meanwhile, after the target device is switched to, the target device can be controlled to send the live video stream and the live audio stream acquired by the target device to the live server 200.
Furthermore, in the present embodiment, the live broadcast server 200 may include a plurality of stream processing nodes, and each stream processing node may process different types of live broadcast data streams, such as live broadcast data streams with different formats and different scenes. If the live data stream is switched to the master device for stream pushing, the master device may designate a corresponding stream processing node when pushing the live data stream to the live server 200, so as to push the received live data stream through the corresponding stream processing node in the live server 200.
In this embodiment, on the basis of the above, in the multi-device live broadcast switching system, besides the switching of live broadcast among different live broadcast devices 100, mixing processing of live broadcast data sources of multiple live broadcast devices 100 can be realized to perform push.
Therefore, referring to fig. 7, the method for switching live broadcasts of multiple devices provided in this embodiment may further include the following steps:
step S310, in the process of live streaming performed by the current device, if a mixing instruction indicating to perform multi-device playing is monitored, obtaining information of a plurality of corresponding live devices 100 according to the mixing instruction.
Step S320, controlling each live broadcast device 100 of the multiple live broadcast devices 100 to perform live broadcast stream pushing of the live broadcast data stream based on the same live broadcast stream identifier, so that the live broadcast server 200 performs mixing processing on the received multiple live broadcast data streams with the same live broadcast stream identifier and then pushes the mixed multiple live broadcast data streams.
In this embodiment, in implementation, the plurality of live broadcast devices 100 may respectively perform anchor shooting from different angles to obtain live broadcast data streams, or may further obtain live broadcast data streams in a screen recording manner. When the anchor has a corresponding requirement, for example, live data streams at a plurality of different angles need to be intensively pushed in a live room, for example, the live data streams at the anchor and the live data streams at the screen recording obtained by shooting can be intensively pushed in the live room in a form of a plurality of sub-windows, or the anchor can initiate a mixing instruction when the live data streams at the anchor and the live data streams at the screen recording obtained by shooting need to be intensively displayed in the live room. The mixing instruction is used for instructing to perform multi-device playing, where the mixing instruction carries information of a plurality of live devices 100 that need to perform multi-device playing.
The number of the live devices 100 may be two or more, for example, the live devices may include a main device and at least one auxiliary device, or may be two or more auxiliary devices, and specifically, the present embodiment is not limited, and only needs to be the live devices 100 in the multi-device live switching system.
In this case, for example, the live broadcast device 100 for controlling the anchor may also be a master device, the master device may send a notification to the multiple live broadcast devices 100, and each live broadcast device 100 may perform live broadcast stream pushing after receiving the notification, where the live broadcast data streams pushed by each live broadcast device 100 carry the same live broadcast stream identifier. In this way, live broadcast data streams pushed by a plurality of live broadcast devices 100 can be mixed by the live broadcast server 200 and then pushed in corresponding live broadcast rooms in a centralized manner.
In this embodiment, through the above processes, free switching between live broadcast frames corresponding to different live broadcast devices 100 based on the same live broadcast room can be realized. After the live broadcast is completed or when the live broadcast needs to be finished according to the requirements of the anchor, the live broadcast association relationship, i.e. the protocol communication, between the live broadcast devices 100 can be disconnected.
When the communication is disconnected, similarly taking the communication between the master device and the slave device as an example, the master device may send a message to be disconnected to the slave device, and the slave device may feed back a feedback to confirm the disconnection to the master device after receiving the message. After receiving the feedback, the main device stops sending the heartbeat data packet to the auxiliary device, and the auxiliary device also stops sending the heartbeat data packet to the main device, so that the protocol passing between the main device and the auxiliary device is disconnected.
In this embodiment, the above-mentioned process implementation may be implemented based on a UI interaction layer, a communication protocol interaction layer, and a stream management layer in the system, respectively. The above processes, such as the main device generating the login identification code, controlling the switching of the live device 100 and disconnecting the communication connection with the sub device, the sub device scanning the login identification code, the sub device selecting to obtain the live data stream by shooting or recording the live data stream by a screen, disconnecting the communication connection with the main device, and the like, may be performed at the UI interaction layer.
Further, the above-described actions such as heartbeat connections before each live device 100, protocol communication connections between live devices 100, and the like may be implemented based on a communication protocol interaction layer. The above processes of each live device 100 performing live streaming to the live server 200, sending a switching notification, and the main device performing local preview display on the live data stream of the sub device can be implemented based on a stream management layer.
The multi-device live broadcast switching scheme provided by this embodiment provides a brand new broadcasting mode, and the anchor can be in the same live broadcast room, and different live broadcast devices 100 are used as input sources to perform switching push in the live broadcast room. The method can bring multi-view live broadcast image viewing experience for audiences.
In addition, an embodiment of the present application further provides a multi-device live broadcast switching method, where the multi-device live broadcast switching method is applicable to any live broadcast device 100 shown in fig. 1, and in this embodiment, the live broadcast device 100 executing the multi-device live broadcast switching method serves as a controlled terminal to execute the method.
It should be understood that, in other embodiments, the order of some steps in the multi-device live broadcast switching method of this embodiment may be interchanged according to actual needs, or some steps may be omitted or deleted. Referring to fig. 8, the steps of the multi-device live broadcast switching method are described in detail as follows.
Step S410, when receiving a switching notification indicating that the other live broadcast devices 100 in the multi-device live broadcast switching system switch from the current device to the current device, obtaining a live broadcast stream identifier adopted when the current device performs stream pushing.
Step S420, the live stream identifier is carried in the obtained live data stream to perform live stream pushing, so that the live server 200 pushes the received live data stream with the live stream identifier as a same output stream.
In this embodiment, the controlled end may be, for example, the above-mentioned secondary device, and may be switched under the control of another live device 100, for example, a primary device, to execute live streaming. When live streaming is performed, a live streaming identifier, which is characterized as a live streaming of the live streaming, needs to be carried in the live streaming, where the live streaming identifier may be obtained based on a data stream pushed by a current device, or obtained from a live streaming pushed by a live broadcasting room of a main broadcasting account logged in on a main device.
When the switching notification is obtained, the live data stream carrying the live stream identifier may be sent to the live server 200, so that the live server 200 may push the live data stream having the live stream identifier as the same output stream.
In this embodiment, before this, as a controlled party, for example, a secondary device, a live broadcast association relationship needs to be established with a current device (for example, a primary device) in advance, so that push can be performed subsequently with the same live broadcast stream identifier. Therefore, referring to fig. 9, the method for switching live broadcasts of multiple devices provided in this embodiment may further include the following steps:
step S510, scanning a login identification code displayed by the current device, where the login identification code is generated by the current device according to the broadcast information.
And step S520, obtaining the playing information after the login is successful, and establishing a live broadcast association relation with the current equipment.
When the live broadcast association relationship is established with the current device in step S520, the method may be implemented in the following manner, please refer to fig. 10 in combination:
step S521, feeding login success information back to the current equipment;
step S522, receiving the broadcast information sent by the current device after receiving the login success information, storing the broadcast information, and sending connection success information carrying device information to the current device, so that the current device stores the device information in a device list.
It should be noted that, in this embodiment, details of the live broadcast device 100 as the controlled end for executing the switching scheme are not given, and reference may be made to the description of the live broadcast device 100 as the control side for executing the switching scheme in the foregoing embodiment, which is not described herein again.
On the basis, the embodiment of the present application further provides a switching method applied to a multi-device live broadcast switching system including a plurality of live broadcast devices 100. Referring to fig. 11, the execution process of the handover method can be as follows:
in step S610, when monitoring a switching instruction indicating to perform device switching during live streaming of a current device, any live device 100 obtains target device information according to the switching instruction, and sends a notification to stop streaming to the current device and a notification to execute streaming to the target device.
In step S620, after receiving the push flow stop notification, the current device stops performing push flow of the live data stream with the live stream identifier.
In step S630, after receiving the push stream execution notification, the target device starts executing the live push stream carrying the live stream identifier, so that the live server 200 pushes the received live data stream with the live stream identifier as the same output stream.
For details of the embodiment, reference may be made to the above description when the live device 100 is used as a control end to execute the switching scheme, and details of the embodiment are not described herein.
In order to more clearly explain the overall flow of the multi-device live broadcast switching method provided by the present application, the following describes a process for implementing the method with reference to an interaction process shown in fig. 12. In the following description, a master device among the plurality of live devices 100 is taken as a control end, and a slave device is taken as a controlled end.
In this embodiment, at the stage of pre-establishing a protocol communication between the primary device and the secondary device, the following method may be implemented:
the main equipment can generate a login identification code based on the broadcasting information, and on the basis, the main equipment can display the login identification code;
the auxiliary equipment can scan the login identification code and send login success information to the main equipment under the operation and confirmation of a user;
after receiving the login success information, the main equipment can send broadcast information to the auxiliary equipment;
after receiving the broadcast information, the auxiliary equipment can store the broadcast information and feed back connection success information carrying the own equipment property to the main equipment under the confirmation operation of the user;
the main device stores the received device information into a device list;
on the basis, the master device and the slave device maintain communication connection by transceiving heartbeat data packets.
On the basis of the protocol communication established in advance, when the live broadcast is formally executed, the equipment switching can be executed in the following way:
when the current equipment carries out live broadcast stream pushing, the main equipment monitors whether a switching instruction exists or not, and the switching instruction can be used for indicating equipment switching;
the method comprises the steps that after monitoring a switching instruction, the main equipment can send a push flow stopping notification or a push flow executing notification, wherein the push flow stopping notification is sent to the auxiliary equipment serving as the current equipment, and the push flow executing notification is sent to the auxiliary equipment serving as the target equipment;
if the auxiliary equipment is used as the current equipment, stopping live streaming after receiving the push flow stopping notification, and if the auxiliary equipment is used as the target equipment, starting to execute the push flow after receiving the push flow executing notification;
when the secondary device is used as a target device, the live broadcast data stream is sent to the live broadcast server 200 when the live broadcast stream pushing is executed;
the live broadcast server 200 performs push based on the live broadcast stream identifier in the live broadcast data stream.
Through the above process, live broadcast switching among the plurality of live broadcast devices 100 can be realized through the main device (which can be any live broadcast device 100) in the plurality of live broadcast devices 100, direct control of the anchor is facilitated, and usability and expandability are improved.
Referring to fig. 13, a schematic diagram of exemplary components of an electronic device according to an embodiment of the present application is provided, where the electronic device may be the live device 100 shown in fig. 1. The electronic device may include a storage medium 110, a processor 120, a multi-device live switch 130, and a communication interface 140. In this embodiment, the storage medium 110 and the processor 120 are both located in the electronic device and are separately disposed. However, it should be understood that the storage medium 110 may be separate from the electronic device and may be accessed by the processor 120 through a bus interface. Alternatively, the storage medium 110 may be integrated into the processor 120, for example, may be a cache and/or general purpose registers.
The multi-device live broadcast switching apparatus 130 may be understood as the electronic device, or the processor 120 of the electronic device, or may be understood as a software functional module that is independent of the electronic device or the processor 120 and implements the multi-device live broadcast switching method under the control of the electronic device.
As shown in fig. 14, in an implementation manner, the multi-device live switching apparatus 130 may include a monitoring module 131 and a control module 132. The functions of the functional modules of the multi-device live broadcast switching apparatus 130 are described in detail below.
The monitoring module 131 is configured to, in a process of performing live streaming on a current device, obtain target device information according to a switching instruction indicating device switching if the switching instruction is monitored.
It is understood that the monitoring module 131 can be used to execute the step S110, and for the detailed implementation of the monitoring module 131, reference can be made to the above description of the step S110.
The control module 132 is configured to control the current device to stop performing live stream pushing of a live stream data stream with a live stream identifier, and control the target device to start executing live stream pushing carrying the live stream identifier, so that the live server 200 pushes the received live stream data stream with the live stream identifier as a same output stream.
It is understood that the control module 132 can be used to execute the step S120, and for the detailed implementation of the control module 132, reference can be made to the above description of the step S120.
In a possible implementation manner, the live stream identifier includes live room information, and the control module 132 may be configured to implement the switching by:
acquiring the live broadcast room information of the anchor account logged on the current equipment;
and controlling the target device to carry the obtained live broadcast data stream with the live broadcast room information to carry out live broadcast stream pushing, so that the live broadcast server 200 pushes the received live broadcast data stream to a viewer end 300 corresponding to the viewer entering the live broadcast room.
In a possible implementation manner, the control module 132 may specifically be configured to:
acquiring a live broadcast stream name of live broadcast stream pushing of the current equipment through the live broadcast room;
generating a corresponding unique identifier according to the equipment information of the target equipment and the live stream name;
and controlling the target device to carry the obtained live broadcast data stream with the live broadcast room information and the unique identifier to carry out live broadcast streaming, so that the live broadcast server 200 records the unique identifier and pushes the received live broadcast data stream to a viewer end 300 corresponding to a viewer entering the live broadcast room.
In a possible implementation manner, the live data streams of the current device and the target device include a collected video stream of a main broadcast or a video stream obtained by performing a screen recording operation on display information.
In a possible implementation manner, the apparatus further includes a preview module, where the preview module is configured to:
acquiring a live broadcast video stream when the target equipment executes live broadcast stream pushing;
and performing local preview display on the live video stream.
In a possible implementation manner, the control module 132 may specifically be configured to:
controlling the current equipment to stop sending the live video stream with the live stream identification to a live server 200, and keeping sending the live audio stream with the live stream identification to the live server 200;
and controlling the target device to start sending the obtained live video stream and live audio stream carrying the live stream identification to the live server 200.
In a possible implementation manner, the apparatus may further include a mixing module, where the mixing module may be specifically configured to:
in the process of live broadcasting and stream pushing of the current equipment, if a mixed instruction indicating multi-equipment playing is monitored, information of a plurality of corresponding live broadcasting equipment 100 is obtained according to the mixed instruction;
and controlling each live broadcast device 100 in the plurality of live broadcast devices 100 to perform live broadcast stream pushing of the live broadcast data stream based on the same live broadcast stream identifier, so that the live broadcast server 200 performs mixed processing on the received plurality of live broadcast data streams with the same live broadcast stream identifier and then pushes the received plurality of live broadcast data streams.
In another implementation manner, referring to fig. 15, the multi-device live broadcast switching apparatus 130 may include a receiving module 133 and a stream pushing module.
The receiving module 133 is configured to, when receiving a switching notification that indicates that the current device is switched to itself from the other live devices 100 in the multi-device live broadcast switching system, obtain a live broadcast stream identifier that is adopted when the current device performs stream pushing.
It is understood that the receiving module 133 may be configured to perform the step S410, and for a detailed implementation of the receiving module 133, reference may be made to the content related to the step S410.
And the stream pushing module 134 is configured to carry the live stream identifier in the obtained live data stream for live stream pushing, so that the live server 200 pushes the received live data stream with the live stream identifier as the same output stream.
It is understood that the flow pushing module 134 can be used to execute the step S420, and for the detailed implementation of the flow pushing module 134, reference can be made to the above description of the step S420.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Further, an embodiment of the present application also provides a computer-readable storage medium, where machine-executable instructions are stored in the computer-readable storage medium, and when the machine-executable instructions are executed, the method for switching a live broadcast among multiple devices provided in any of the above embodiments is implemented.
In summary, the present application provides a multi-device live broadcast switching method, apparatus, system, electronic device, and readable storage medium, where any live broadcast device 100 obtains target device information according to a switching instruction when monitoring a switching instruction indicating device switching in a live broadcast stream pushing process of a current device, so as to control the current device to stop performing live broadcast stream pushing of a live broadcast data stream with a live broadcast stream identifier, and control the target device to start executing live broadcast stream pushing with the live broadcast stream identifier, so that a live broadcast server 200 pushes a received live broadcast data stream with the live broadcast stream identifier as a same output stream. Therefore, switching control can be realized based on any live broadcast equipment 100 in the plurality of live broadcast equipment 100, the anchor can conveniently and directly perform switching control, and the usability and the expansibility are greatly improved.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. A multi-device live broadcast switching method is applied to any live broadcast device in a multi-device live broadcast switching system, and each live broadcast device is in communication connection with a live broadcast server, and the method comprises the following steps:
in the process of live streaming of the current equipment, if a switching instruction for instructing equipment switching is monitored, target equipment information is obtained according to the switching instruction;
and controlling the current equipment to stop carrying out stream pushing of the live broadcast data stream with the live broadcast stream identification, and controlling the target equipment to start executing the live broadcast stream pushing carrying the live broadcast stream identification, so that the live broadcast server pushes the received live broadcast data stream with the live broadcast stream identification as the same output stream.
2. The multi-device live switching method according to claim 1, wherein the live stream identification contains live room information;
the step of controlling the target device to start executing live streaming pushing carrying the live streaming identification so that the live server pushes the received live streaming data stream with the live streaming identification as the same output stream includes:
acquiring the live broadcast room information of the anchor account logged on the current equipment;
and controlling the target equipment to carry the obtained live broadcast data stream with the live broadcast room information to carry out live broadcast stream pushing so that the live broadcast server pushes the received live broadcast data stream to a viewer end corresponding to the viewer entering the live broadcast room.
3. The multi-device live broadcast switching method according to claim 2, wherein the step of controlling the target device to carry the obtained live broadcast data stream with the live broadcast room information to perform live broadcast streaming so that the live broadcast server pushes the received live broadcast data stream to a viewer side corresponding to a viewer entering the live broadcast room comprises:
acquiring a live broadcast stream name of live broadcast stream pushing of the current equipment through the live broadcast room;
generating a corresponding unique identifier according to the equipment information of the target equipment and the live stream name;
and controlling the target equipment to carry the obtained live broadcast data stream with the live broadcast room information and the unique identifier to carry out live broadcast stream pushing so that the live broadcast server records the unique identifier and pushes the received live broadcast data stream to a viewer end corresponding to a viewer entering the live broadcast room.
4. The multi-device live broadcast switching method according to claim 1, wherein live broadcast data streams of the current device and the target device include a video stream of a collected anchor or a video stream obtained by performing a screen recording operation on display information.
5. The multi-device live switching method of claim 1, further comprising:
acquiring a live broadcast video stream when the target equipment executes live broadcast stream pushing;
and performing local preview display on the live video stream.
6. The multi-device live broadcast switching method according to claim 1, wherein the step of controlling the current device to stop performing live broadcast data stream push flow with a live broadcast stream identifier and controlling the target device to start executing live broadcast push flow with the live broadcast stream identifier includes:
controlling the current equipment to stop sending the live video stream with the live stream identification to a live server, and keeping sending the live audio stream with the live stream identification to the live server;
and controlling the target equipment to start to send the obtained live video stream and live audio stream carrying the live stream identification to the live server.
7. The multi-device live switching method of claim 1, further comprising:
in the process of live broadcast stream pushing of the current equipment, if a mixed instruction indicating multi-equipment playing is monitored, obtaining information of a plurality of corresponding live broadcast equipment according to the mixed instruction;
and controlling each live broadcast device in the plurality of live broadcast devices to carry out live broadcast stream pushing of the live broadcast data stream based on the same live broadcast stream identifier so that the live broadcast server carries out mixed processing on the received plurality of live broadcast data streams with the same live broadcast stream identifier and then carries out pushing.
8. A multi-device live broadcast switching method is applied to any live broadcast device in a multi-device live broadcast switching system, and each live broadcast device is in communication connection with a live broadcast server, and the method comprises the following steps:
when receiving a switching notification indicating that other live broadcast equipment in the multi-equipment live broadcast switching system is switched to the live broadcast equipment, acquiring a live broadcast stream identifier adopted when the current equipment pushes streams;
and carrying the live broadcast stream identification on the obtained live broadcast data stream to carry out live broadcast stream pushing, so that a live broadcast server pushes the received live broadcast data stream with the live broadcast stream identification as the same output stream.
9. The multi-device live broadcast switching method according to claim 8, further comprising a step of establishing a live broadcast association relationship with the current device in advance, wherein the step comprises:
scanning a login identification code displayed by the current equipment, wherein the login identification code is generated by the current equipment according to broadcasting information;
and after the login is successful, the playing information is obtained, and a live broadcast association relation is established with the current equipment.
10. The multi-device live broadcast switching method according to claim 9, wherein the step of obtaining the broadcast information after the login is successful and establishing a live broadcast association relationship with the current device includes:
feeding back login success information to the current equipment;
receiving broadcast information sent by the current equipment after the current equipment receives the login success information, storing the broadcast information, and sending connection success information carrying equipment information of the current equipment to the current equipment so that the current equipment stores the equipment information into an equipment list.
11. A multi-device live broadcast switching method is applied to a multi-device live broadcast switching system comprising a plurality of live broadcast devices, and each live broadcast device is in communication connection with a live broadcast server, and the method comprises the following steps:
in the process of live streaming of any live device, if a switching instruction indicating device switching is monitored during live streaming of the current device, target device information is obtained according to the switching instruction, and a push-stream stopping notification and a push-stream executing notification are sent to the current device;
after receiving the push stream stopping notification, the current equipment stops pushing the live data stream with the live stream identification;
and after receiving the execution stream pushing notification, the target device starts to execute the live stream pushing carrying the live stream identification, so that the live server pushes the received live data stream with the live stream identification as the same output stream.
12. The utility model provides a live auto-change over device of many equipment which characterized in that is applied to arbitrary live equipment in the live auto-change over system of many equipment, each live equipment and live server communication connection, the device includes:
the monitoring module is used for acquiring target equipment information according to a switching instruction when the switching instruction indicating equipment switching is monitored in the process of live broadcast push flow of the current equipment;
and the control module is used for controlling the current equipment to stop carrying out stream pushing of the live data stream with the live stream identification, and controlling the target equipment to start executing the live stream pushing carrying the live stream identification, so that the live server takes the received live data stream with the live stream identification as the same output stream to carry out pushing.
13. The utility model provides a live auto-change over device of many equipment which characterized in that is applied to arbitrary live equipment in the live auto-change over system of many equipment, each live equipment and live server communication connection, the device includes:
the receiving module is used for acquiring a live broadcast stream identifier adopted when the current equipment pushes the stream when receiving a switching notice which is sent by other live broadcast equipment in the multi-equipment live broadcast switching system and indicates that the current equipment is switched to the receiving module from the current equipment;
and the stream pushing module is used for carrying the live stream identification on the obtained live data stream to carry out live stream pushing so that the live server can push the received live data stream with the live stream identification as the same output stream.
14. The utility model provides a live switched systems of multi-equipment which characterized in that, includes a plurality of live broadcast equipment, each live broadcast equipment and live broadcast server communication connection:
any live broadcast equipment is used for acquiring target equipment information according to a switching instruction when monitoring the switching instruction indicating equipment switching in the process of live broadcast push flow of the current equipment, sending a push flow stopping notification to the current equipment and sending a push flow executing notification to the target equipment;
the current equipment is used for stopping the stream pushing of the live broadcast data stream with the live broadcast stream identification after receiving the stream pushing stopping notification;
and the target equipment is used for starting to execute the live streaming carrying the live streaming identification after receiving the execution streaming pushing notification so that the live server pushes the received live streaming data stream with the live streaming identification as the same output stream.
15. An electronic device comprising one or more storage media and one or more processors in communication with the storage media, the one or more storage media storing processor-executable machine-executable instructions that, when executed by the electronic device, are executed by the processors to perform the multi-device live switching method of any of claims 1-10.
16. A computer-readable storage medium having stored thereon machine-executable instructions that, when executed, implement the multi-device live switching method of any one of claims 1-10.
CN202011566632.6A 2020-12-25 2020-12-25 Multi-device live broadcast switching method, device, system, electronic device and readable storage medium Active CN112738540B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011566632.6A CN112738540B (en) 2020-12-25 2020-12-25 Multi-device live broadcast switching method, device, system, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011566632.6A CN112738540B (en) 2020-12-25 2020-12-25 Multi-device live broadcast switching method, device, system, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN112738540A true CN112738540A (en) 2021-04-30
CN112738540B CN112738540B (en) 2023-09-05

Family

ID=75616504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011566632.6A Active CN112738540B (en) 2020-12-25 2020-12-25 Multi-device live broadcast switching method, device, system, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN112738540B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766277A (en) * 2021-11-10 2021-12-07 北京微吼时代科技有限公司 Multi-channel live stream switching device, method and system
CN114071178A (en) * 2021-11-18 2022-02-18 四川启睿克科技有限公司 Television live broadcast method capable of intelligently switching multiple information visual angles
CN114827747A (en) * 2022-06-29 2022-07-29 广州市广播电视台 Streaming media data switching method, device, equipment and storage medium
CN115243058A (en) * 2022-05-23 2022-10-25 广州播丫科技有限公司 Live broadcast machine capable of realizing remote live broadcast and working method thereof
CN116456123A (en) * 2023-06-16 2023-07-18 北京焦点新干线信息技术有限公司 Method, device and equipment for realizing multi-equipment switching live broadcast

Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150120957A1 (en) * 2013-10-31 2015-04-30 Electronics And Telecommunications Research Institute Apparatus and method for receiving video service in hybrid network
US20150229695A1 (en) * 2014-02-11 2015-08-13 Kiswe Mobile Inc. Methods and apparatus for reducing latency shift in switching between distinct content streams
CN105245920A (en) * 2015-10-08 2016-01-13 无锡天脉聚源传媒科技有限公司 Multi-channel video transmission method and device
WO2017008627A1 (en) * 2015-07-15 2017-01-19 腾讯科技(深圳)有限公司 Multimedia live broadcast method, apparatus and system
CN106686394A (en) * 2016-12-29 2017-05-17 北京奇艺世纪科技有限公司 Video switching method and apparatus
CN106792245A (en) * 2016-11-22 2017-05-31 广州华多网络科技有限公司 Direct broadcasting room video flowing synthetic method, device and terminal device
US20170171602A1 (en) * 2015-12-10 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and electronic device for controlling three stream video play
CN106937131A (en) * 2017-03-31 2017-07-07 广州华多网络科技有限公司 video stream switching method, device and equipment
CN107197320A (en) * 2017-06-21 2017-09-22 北京小米移动软件有限公司 Net cast methods, devices and systems
CN107257496A (en) * 2017-06-14 2017-10-17 广州市千钧网络科技有限公司 A kind of live control method, device and mobile terminal
WO2018010682A1 (en) * 2016-07-15 2018-01-18 腾讯科技(深圳)有限公司 Live broadcast method, live broadcast data stream display method and terminal
WO2018077259A1 (en) * 2016-10-31 2018-05-03 腾讯科技(深圳)有限公司 Media information handover method and server, and computer storage medium
CN108012161A (en) * 2017-11-10 2018-05-08 广州华多网络科技有限公司 Net cast method, system and terminal device
WO2018086417A1 (en) * 2016-11-10 2018-05-17 广州华多网络科技有限公司 Microphone alternating live broadcast method, apparatus and system
US20180192142A1 (en) * 2016-12-30 2018-07-05 Facebook, Inc. Live Broadcast on an Online Social Network
CN109120965A (en) * 2018-09-30 2019-01-01 武汉斗鱼网络科技有限公司 Net cast switching method, device, computer equipment and storage medium
CN109168056A (en) * 2018-10-16 2019-01-08 深圳市云歌人工智能技术有限公司 Video broadcast control method, device, audio/video player system and server
CN109361893A (en) * 2018-11-21 2019-02-19 华平信息技术股份有限公司 Video conference is gone the same way multi-source live broadcasting method and system
CN109963162A (en) * 2017-12-25 2019-07-02 阿里巴巴集团控股有限公司 A kind of cloud director system and live streaming processing method, device
CN110740386A (en) * 2018-07-18 2020-01-31 腾讯科技(深圳)有限公司 Live broadcast switching method and device and storage medium
CN111163330A (en) * 2020-01-13 2020-05-15 广州虎牙科技有限公司 Live video rendering method, device, system, equipment and storage medium
CN111641839A (en) * 2020-05-27 2020-09-08 北京达佳互联信息技术有限公司 Live broadcast method and device, electronic equipment and storage medium
CN111711833A (en) * 2020-07-28 2020-09-25 广州华多网络科技有限公司 Live video stream push control method, device, equipment and storage medium

Patent Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150120957A1 (en) * 2013-10-31 2015-04-30 Electronics And Telecommunications Research Institute Apparatus and method for receiving video service in hybrid network
US20150229695A1 (en) * 2014-02-11 2015-08-13 Kiswe Mobile Inc. Methods and apparatus for reducing latency shift in switching between distinct content streams
WO2017008627A1 (en) * 2015-07-15 2017-01-19 腾讯科技(深圳)有限公司 Multimedia live broadcast method, apparatus and system
CN105245920A (en) * 2015-10-08 2016-01-13 无锡天脉聚源传媒科技有限公司 Multi-channel video transmission method and device
US20170171602A1 (en) * 2015-12-10 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and electronic device for controlling three stream video play
WO2018010682A1 (en) * 2016-07-15 2018-01-18 腾讯科技(深圳)有限公司 Live broadcast method, live broadcast data stream display method and terminal
WO2018077259A1 (en) * 2016-10-31 2018-05-03 腾讯科技(深圳)有限公司 Media information handover method and server, and computer storage medium
WO2018086417A1 (en) * 2016-11-10 2018-05-17 广州华多网络科技有限公司 Microphone alternating live broadcast method, apparatus and system
CN106792245A (en) * 2016-11-22 2017-05-31 广州华多网络科技有限公司 Direct broadcasting room video flowing synthetic method, device and terminal device
CN106686394A (en) * 2016-12-29 2017-05-17 北京奇艺世纪科技有限公司 Video switching method and apparatus
US20180192142A1 (en) * 2016-12-30 2018-07-05 Facebook, Inc. Live Broadcast on an Online Social Network
CN106937131A (en) * 2017-03-31 2017-07-07 广州华多网络科技有限公司 video stream switching method, device and equipment
CN107257496A (en) * 2017-06-14 2017-10-17 广州市千钧网络科技有限公司 A kind of live control method, device and mobile terminal
CN107197320A (en) * 2017-06-21 2017-09-22 北京小米移动软件有限公司 Net cast methods, devices and systems
CN108012161A (en) * 2017-11-10 2018-05-08 广州华多网络科技有限公司 Net cast method, system and terminal device
CN109963162A (en) * 2017-12-25 2019-07-02 阿里巴巴集团控股有限公司 A kind of cloud director system and live streaming processing method, device
CN110740386A (en) * 2018-07-18 2020-01-31 腾讯科技(深圳)有限公司 Live broadcast switching method and device and storage medium
CN109120965A (en) * 2018-09-30 2019-01-01 武汉斗鱼网络科技有限公司 Net cast switching method, device, computer equipment and storage medium
CN109168056A (en) * 2018-10-16 2019-01-08 深圳市云歌人工智能技术有限公司 Video broadcast control method, device, audio/video player system and server
CN109361893A (en) * 2018-11-21 2019-02-19 华平信息技术股份有限公司 Video conference is gone the same way multi-source live broadcasting method and system
CN111163330A (en) * 2020-01-13 2020-05-15 广州虎牙科技有限公司 Live video rendering method, device, system, equipment and storage medium
CN111641839A (en) * 2020-05-27 2020-09-08 北京达佳互联信息技术有限公司 Live broadcast method and device, electronic equipment and storage medium
CN111711833A (en) * 2020-07-28 2020-09-25 广州华多网络科技有限公司 Live video stream push control method, device, equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766277A (en) * 2021-11-10 2021-12-07 北京微吼时代科技有限公司 Multi-channel live stream switching device, method and system
CN114071178A (en) * 2021-11-18 2022-02-18 四川启睿克科技有限公司 Television live broadcast method capable of intelligently switching multiple information visual angles
CN115243058A (en) * 2022-05-23 2022-10-25 广州播丫科技有限公司 Live broadcast machine capable of realizing remote live broadcast and working method thereof
CN114827747A (en) * 2022-06-29 2022-07-29 广州市广播电视台 Streaming media data switching method, device, equipment and storage medium
CN116456123A (en) * 2023-06-16 2023-07-18 北京焦点新干线信息技术有限公司 Method, device and equipment for realizing multi-equipment switching live broadcast
CN116456123B (en) * 2023-06-16 2023-09-12 北京焦点新干线信息技术有限公司 Method, device and equipment for realizing multi-equipment switching live broadcast

Also Published As

Publication number Publication date
CN112738540B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN112738540B (en) Multi-device live broadcast switching method, device, system, electronic device and readable storage medium
CN107124661B (en) Communication method, device and system in live channel
US10341733B2 (en) Companion device
US9736518B2 (en) Content streaming and broadcasting
EP2712126A2 (en) Networking method, server end device, client end device and network system
CN113923470B (en) Live stream processing method and device
CN113438527A (en) Video screen projection method, device, equipment and storage medium
CN112148245B (en) Method and device for monitoring, adjusting and projecting screen, computer equipment, readable storage medium and monitoring, adjusting and projecting screen interaction system
WO2017219852A1 (en) Data information sharing method and apparatus, and terminal
CN113286190A (en) Cross-network and same-screen control method and device and cross-network and same-screen system
CN112637671A (en) Screen sharing method and system
CN110798745A (en) Multimedia playing control method, server and storage medium
US20150148128A1 (en) Web content sharing method, and web content providing apparatus and receiving terminal for web content sharing
CN105187934A (en) Terminal platform for television interactive system
CN115379279A (en) Multi-screen linkage interaction method, device and system, storage medium and electronic equipment
CN105245801A (en) Method for transmitting interactive signals of interactive television system
CN114143616A (en) Target video processing method and system, storage medium and electronic device
EP3386203B1 (en) Signalling of auxiliary content for a broadcast signal
CN113542857A (en) Screen projection method and device, projection equipment, screen projection playing equipment and storage medium
CN112351201A (en) Multimedia data processing method, system, device, electronic equipment and storage medium
CN111263214A (en) Multi-screen interaction realization method and system
CN105007514A (en) Interactive system for television networks
Wang et al. Machine-to-Machine Technology Applied to Integrated Video Services via Context Transfer
CN105307039A (en) Method and device for managing television programs of television interactive system
KR20160016655A (en) System and method for providing multi-sharing of multimedia

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant