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

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

Info

Publication number
CN112738540B
CN112738540B CN202011566632.6A CN202011566632A CN112738540B CN 112738540 B CN112738540 B CN 112738540B CN 202011566632 A CN202011566632 A CN 202011566632A CN 112738540 B CN112738540 B CN 112738540B
Authority
CN
China
Prior art keywords
live
live broadcast
stream
pushing
broadcast
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011566632.6A
Other languages
Chinese (zh)
Other versions
CN112738540A (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

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 device, a system, an electronic device and a readable storage medium, wherein any one of direct broadcast devices acquires target device information according to a switching instruction when the switching instruction for indicating the device switching is monitored in the live broadcast pushing process of the current device, so that the current device is controlled to stop pushing a live broadcast data stream with a live broadcast stream identifier, and the target device is controlled to start to execute the live broadcast pushing with the live broadcast stream identifier, so that a live broadcast server pushes the received live broadcast data stream with the live broadcast stream identifier as the same output stream. Therefore, switching control can be realized based on any one of the live broadcast devices, so that a host can directly perform switching control conveniently, and usability and expansibility are greatly improved.

Description

Multi-device live broadcast switching method, device, system, electronic device and readable storage medium
Technical Field
The application relates to the technical field of network live broadcasting, in particular to a multi-device live broadcasting switching method, a device, a system, electronic equipment and a readable storage medium.
Background
With the development of internet technology, live video broadcast has been increasingly focused and favored by people. During live broadcast, the anchor desires to be able to display various live broadcast to the audience, for example, to shoot from a plurality of different directions for live broadcast, or to take different live broadcast forms, such as video recording or video shooting live broadcast, etc. In the prior art, when a plurality of devices are switched in the live broadcast process of the anchor, the anchor is required to be realized by adopting an anchor form through a server, so that convenience and flexibility are lacked, and the anchor is not beneficial to controlling according to the requirements in the actual scene.
Disclosure of Invention
The application aims at providing a multi-device live broadcast switching method, a device, a system, an electronic device and a readable storage medium, which can improve usability and expansibility and facilitate a host to perform switching control.
Embodiments of the application may be implemented 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 communicatively connected to a live broadcast server, and the method includes:
In the live broadcast pushing process of the current equipment, if a switching instruction for indicating equipment switching is monitored, acquiring target equipment information according to the switching instruction;
and controlling the current equipment to stop pushing the live broadcast data stream with the live broadcast stream identifier, and controlling the target equipment to start to execute live broadcast pushing with the live broadcast stream identifier, so that the live broadcast server pushes the received live broadcast data stream with the live broadcast stream identifier 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 to execute live broadcast pushing flow carrying the live broadcast flow identifier, so that the live broadcast server pushes the received live broadcast data flow with the live broadcast flow identifier as the same output flow, comprises the following steps:
acquiring live room information of a main broadcasting account logged in on the current equipment;
and controlling the target equipment to carry the live broadcast room information on the obtained live broadcast data stream to carry out live broadcast pushing so that the live broadcast server pushes the received live broadcast data stream to a viewer end corresponding to a viewer entering the live broadcast room.
In an optional embodiment, 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 pushing, so that the live broadcast server pushes the received live broadcast data stream to a viewer end corresponding to a viewer entering the live broadcast room includes:
acquiring a live stream name of live push stream of the current equipment through the live 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 live broadcast room information and the unique identifier on the obtained live broadcast data stream to carry out live broadcast 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 alternative embodiment, the live data streams of the current device and the target device include the collected video stream of the anchor, or the video stream obtained by performing the screen recording operation on the display information.
In an alternative embodiment, the method further comprises:
acquiring a live video stream when the target equipment executes live pushing;
And carrying out local preview display on the live video stream.
In an optional embodiment, the step of controlling the current device to stop pushing the live data stream with the live stream identifier, and controlling the target device to start executing live pushing with the live stream identifier includes:
controlling the current equipment to stop sending the live video stream with the live stream identifier to a live server, and keeping sending the live audio stream with the live stream identifier 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 identifier to the live server.
In an alternative embodiment, the method further comprises:
in the live broadcast pushing process of the current equipment, if a mixed instruction for 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 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 pushes the live broadcast data streams.
In a second aspect, the present application provides a multi-device live broadcast switching method, applied to any live broadcast device in a multi-device live broadcast switching system, where each live broadcast device is communicatively connected to a live broadcast server, the method includes:
when receiving a switching notification sent by other live broadcast devices in the multi-device live broadcast switching system and indicating to switch from the current device to the live broadcast device, acquiring a live broadcast stream identifier adopted when the current device performs push stream;
and carrying the live stream identifier on the obtained live stream data stream to carry out live stream pushing so that the live server pushes the received live stream data stream with the live stream identifier 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 the opening information;
and after successful login, acquiring the broadcasting information and establishing a live broadcast association relationship with the current equipment.
In an optional embodiment, the step of obtaining the multicast information after the login is successful and establishing a live association relationship with the current device includes:
Feeding back login success information to the current equipment;
and receiving the open-cast information sent by the current equipment after receiving the login success information, storing the open-cast information, and sending connection success information carrying self equipment information 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, applied to a multi-device live broadcast switching system including a plurality of live broadcast devices, where each live broadcast device is communicatively connected to a live broadcast server, the method includes:
in the live broadcast pushing process of the current equipment, if a switching instruction for indicating equipment switching is monitored, target equipment information is obtained according to the switching instruction, a pushing stopping notification is sent to the current equipment, and an executing pushing notification is sent to the target equipment;
after receiving the notification of stopping pushing, the current device stops pushing the live broadcast data stream with the live broadcast stream identifier;
and after receiving the notification of executing the live stream, the target equipment starts to execute the live stream with the live stream identifier, so that the live server pushes the received live data stream with the live stream identifier as the same output stream.
In a fourth aspect, the present application provides a multi-device live broadcast switching apparatus, applied to any live broadcast device in a multi-device live broadcast switching system, where each live broadcast device is communicatively connected to a live broadcast server, the apparatus includes:
the monitoring module is used for acquiring target equipment information according to a switching instruction when the switching instruction for indicating equipment switching is monitored in the live broadcast pushing process of the current equipment;
and the control module is used for controlling the current equipment to stop pushing the live broadcast data stream with the live broadcast stream identifier, and controlling the target equipment to start to execute the live broadcast pushing stream carrying the live broadcast stream identifier, so that the live broadcast server pushes the received live broadcast data stream with the live broadcast stream identifier as the same output stream.
In a fifth aspect, the present application provides a multi-device live broadcast switching apparatus, applied to any live broadcast device in a multi-device live broadcast switching system, where each live broadcast device is communicatively connected to a live broadcast server, the apparatus includes:
the receiving module is used for obtaining a live stream identifier adopted when the current equipment performs push stream when receiving a switching notification of the current equipment to the receiving module, wherein the switching notification is sent by other live broadcast equipment in the multi-equipment live broadcast switching system and indicates the current equipment to switch to the receiving module;
And the live stream pushing module is used for carrying the live stream identifier on the obtained live stream to carry out live stream pushing so that the live server pushes the received live stream with the live stream identifier as the same output stream.
In a sixth aspect, the present application provides a multi-device live broadcast switching system, including a plurality of live broadcast devices, where each live broadcast device is communicatively connected to a live broadcast server:
any direct broadcasting equipment is used for acquiring target equipment information according to a switching instruction when the switching instruction for instructing equipment switching is monitored in the live broadcasting and pushing process of the current equipment, sending a notification for stopping pushing and sending a notification for executing pushing to the current equipment;
the current equipment is used for stopping the live stream pushing of the live stream data stream with the live stream identification after receiving the notification of stopping the live stream pushing;
and the target equipment is used for starting to execute the live broadcast pushing flow carrying the live broadcast flow identifier after receiving the notification of executing the live broadcast flow, so that the live broadcast server pushes the received live broadcast data flow with the live broadcast flow identifier as the same output flow.
In a seventh aspect, the present application provides 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 machine-executable instructions executable by the processor to perform the multi-device live handover method of any of the preceding embodiments when the electronic device is operating.
In an eighth aspect, the present application provides a computer readable storage medium storing machine executable instructions that when executed implement the multi-device live handover method of any of the preceding embodiments.
The beneficial effects of the embodiment of the application include, for example:
the application provides a multi-device live broadcast switching method, a device, a system, an electronic device and a readable storage medium, wherein any one of direct broadcast devices acquires target device information according to a switching instruction when the switching instruction for indicating the device switching is monitored in the live broadcast pushing process of the current device, so that the current device is controlled to stop pushing a live broadcast data stream with a live broadcast stream identifier, and the target device is controlled to start to execute the live broadcast pushing with the live broadcast stream identifier, so that a live broadcast server pushes the received live broadcast data stream with the live broadcast stream identifier as the same output stream. Therefore, switching control can be realized based on any one of the live broadcast devices, so that a host can directly perform switching control conveniently, and usability and 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 needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of a multi-device live broadcast switching method provided by an embodiment of the present application;
fig. 2 is a flowchart of a multi-device live broadcast switching method according to an embodiment of the present application;
FIG. 3 is a flow chart of sub-steps of step S120 in FIG. 2;
FIG. 4 is a flow chart of a sub-step of step S122 in FIG. 3;
fig. 5 is a flowchart of a preview display method in the multi-device live broadcast switching method provided by the embodiment of the present application;
FIG. 6 is another flow chart of sub-steps of step S120 in FIG. 2;
fig. 7 is a flowchart of a hybrid push method in the multi-device live broadcast switching method provided by the 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 the multi-device live broadcast switching method provided by the embodiment of the present application;
FIG. 10 is a flowchart showing a sub-step of step S520 in FIG. 9;
fig. 11 is a flowchart of a multi-device live broadcast switching method according to an embodiment of the present application;
fig. 12 is a schematic diagram of 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 the live broadcast switching apparatus with multiple devices according to the embodiment of the present application.
Icon: 100-live broadcast equipment; 110-a storage medium; a 120-processor; 130-a multi-device live broadcast switching device; 131-a monitoring module; 132-a control module; 133-a receiving module; 134-plug flow module; 140-a communication interface; 200-a live broadcast server; 300-audience end.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following 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 diagram of a possible application scenario of a multi-device live broadcast switching method according to an 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 300. The multi-device live broadcast switching system comprises a plurality of live broadcast devices 100, and a live broadcast server 200 is respectively in communication connection with the live broadcast devices 100 and a viewer terminal 300 and is used for providing live broadcast services for the live broadcast devices 100 and the viewer terminal 300. For example, the live device 100 may send a live data stream to the live server 200, and a viewer may access the live server 200 through the viewer side 300 to obtain the live data stream.
The live data stream pushed by the live server 200 may be a video stream currently being live in a live platform or a complete video stream formed after live broadcast is completed.
In this embodiment, the live broadcast device 100 may be plural, alternatively, may be classified into live broadcast devices 100 corresponding to different hosting broadcasters, and for a certain hosting broadcasters, the live broadcast device 100 corresponding to the hosting broadcasters may be plural, that is, the hosting broadcasters may use the plural live broadcast devices 100 to perform network live broadcast, so that video live broadcast captured from different angles or live broadcast switched between video capturing live broadcast and live video recording broadcast 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, etc. While the viewer-side 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 a Video processing server) server.
Among them, the live device 100 and the viewer terminal 300 may have installed therein an internet product for providing an internet live service, for example, the internet product may be an application APP, a Web page, an applet, etc. related to the internet live service used in a computer or a smart phone.
In this embodiment, a video capturing device for capturing a video frame of a host may be further included in the scene, and the video capturing device may be, but is not limited to, a camera, a lens of a digital camera, a monitoring camera, or a network camera.
The video capture device may be directly mounted 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, images sent from the video capture device via an internal bus. Alternatively, the video capture device may be independent of the live device 100, with communication between the two being wired or wireless.
It will be appreciated that the scenario shown in fig. 1 is only one possible example, and that in other possible embodiments the scenario may include only a portion of the components shown in fig. 1 or may include other components as well.
Fig. 2 shows a flow chart of a multi-device live switching method according to an embodiment of the present application, which may be performed by any of the live devices 100 shown in fig. 1. In this embodiment, the live device 100 that performs the multi-device live switching method serves as a control end of the switching control to perform the method.
It should be understood that, in other embodiments, the order of some steps in the multi-device live broadcast switching method of the present embodiment may be interchanged according to actual needs, or some steps in the multi-device live broadcast switching method may be omitted or deleted. The detailed steps of the multi-device live broadcast switching method are described below.
Step S110, in the process of live broadcast pushing of the current equipment, if a switching instruction for indicating equipment switching is monitored, obtaining target equipment information according to the switching instruction.
Step S120, controlling the current device to stop pushing the live data stream with the live stream identifier, and controlling the target device to start executing the live pushing 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.
In this embodiment, a network live broadcast is described as an example for a certain anchor, and in the application scenario of this embodiment, the anchor may utilize a plurality of live broadcast devices 100 to perform live broadcast. For example, the plurality of live broadcast devices 100 may be live broadcast devices 100 disposed at different orientations with respect to the host, or may be live broadcast devices 100 that perform live broadcast in different live broadcast forms, for example, may perform live broadcast of a host video stream that may be shot, or perform live broadcast in a screen recording manner, etc., and specifically, the embodiment is not limited.
In the live broadcast process, if the host broadcast switches the live broadcast device 100 according to the live broadcast requirement of the host broadcast or if the host broadcast needs to switch the live broadcast device 100 according to the feedback opinion of the audience, the host broadcast can execute switching control based on any one of the multiple live broadcast devices 100.
For convenience of description, the live device 100 of the above-described anchor for performing the switching manipulation is named as a master device, and other live devices 100 held by it are named as slave devices. It should be appreciated that the master device may be any of a number of live devices 100.
The switching instruction monitored by the master device may include target device information determined by the anchor, that is, the instruction indicates to switch from the current device currently performing live push to target switching to perform live push. For example, the current device may be a live device 100 disposed in front of the anchor, the target device may be a live device 100 disposed in rear of the anchor, or the current device may be a live device 100 that performs live broadcasting based on a photographed video of the anchor, and the target device may be a live device 100 that performs live broadcasting in a screen recording manner.
After receiving the switching instruction, the main equipment can control the current equipment to stop pushing and control the target equipment to start executing pushing. Alternatively, the master device may transmit a stop push notification to the current device, thereby notifying the current device to stop pushing, and the master device may transmit an execute push notification to the target device, thereby notifying the target device to execute pushing.
As can be seen from the foregoing, the current device and the target device are both live devices 100 held by the host, and both are devices for implementing live broadcast for the host, so live broadcast push streams performed by both devices should have the same live broadcast stream identifier, so as to instruct the live broadcast server 200 to push the received live broadcast data stream with the same live broadcast stream identifier as the same output source. That is, the live data streams of the current device and the target device live push are from different input sources, but the live server 200 can use both as the data streams of the live broadcast output of the host by the same live stream identifier of both.
Therefore, based on the above, the current device will stop pushing the live data stream with the current live stream identifier after receiving the notification of stopping pushing the live stream sent by the master device, and the target device will start executing the live stream with the live stream identifier after receiving the notification of executing pushing the live stream sent by the master device.
In this embodiment, when the live broadcast device 100 performs live broadcast push, a video streaming manner based on a UDP (User Datagram Protocol ) transport layer may be used for push.
In this embodiment, for the current device and the target device, where the current device may be a main device, and the target device may be any auxiliary device, that is, if a switching instruction is detected in a process that the main device performs live broadcast pushing, the main device may stop its live broadcast pushing according to the switching instruction, and control any auxiliary device to perform live broadcast pushing.
In addition, in another scenario, the current device may be any slave device, and the target device may be a master device, that is, in the process that the master device performs live broadcast pushing on any slave device, if a switching instruction is detected, the any slave device may be controlled to stop live broadcast pushing according to the switching instruction, and the master device may be controlled to start to perform live broadcast pushing.
In yet 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 only serves as a control end, so as to control the switching of live push between different secondary devices.
In this embodiment, the live broadcast push stream switching in the live broadcast process of the host can be realized through any one of the plurality of live broadcast devices 100 held by the host, so that usability and expansibility are greatly improved, and the host can directly perform switching control conveniently.
In this embodiment, the live stream identifier may mark the live stream as a data stream related to the main broadcast, and different live devices 100 need to push with the same live stream identifier, so that a live association relationship between different live devices 100 needs to be established in advance, that is, different live devices 100 are associated into the same live scene.
In this embodiment, before or during live broadcasting, the master device may generate the login identifier according to the on-air information, and display the login identifier. The live broadcast information may include a live broadcast stream identifier generated for the live broadcast. Other auxiliary devices can scan the login identification code, and after the scanning is successful, the auxiliary devices can feed back login success information to the main device. After receiving the login success information, the main equipment can send the opening information to the corresponding auxiliary equipment, and the auxiliary equipment can store the opening information after obtaining the opening information and send the connection success information carrying the equipment information to the main equipment under the control of the main equipment. After receiving the connection success information, the master device may store the device information of the slave device into a device list. Thereby successfully establishing the live broadcast association relationship between the two.
After connection, in the subsequent live broadcast process, the primary device and the secondary device can maintain connection by sending and receiving heartbeat data packets, and if any one of the heartbeat data packets is overtime or stopped, the connection between the devices can be considered to be disconnected, and reconnection is required or related processing is required to be executed.
After the establishment of the pre-established live incidence relation, when each live device 100 held by the host is in live streaming, live streaming based on the same live streaming identifier can be realized.
Alternatively, the live stream identification may include live room information. I.e. live data streams with the same live stream identification will be pushed in the same live room. Based on this, referring to fig. 3, when the control target device executes live push, the following manner may be adopted:
step S121, acquiring live room information of a hosting account logged in on the current device.
Step S122, controlling the target device to carry the obtained live broadcast data stream with the live broadcast room information to perform live broadcast pushing, so that the live broadcast server 200 pushes the received live broadcast data stream to the viewer end 300 corresponding to the viewer entering the live broadcast room.
In this embodiment, for a host, the live data stream of the host may be pushed in the live room of the host account, so as to be pushed to the viewer end 300 of the viewer entering the live room. Therefore, the live data stream sent by each live device 100 to the live server 200 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 obtained, or when the current device is implemented, live room information of the anchor account registered on the master device may be unified as a standard. When the secondary device is switched to each secondary device to perform live broadcast pushing, the secondary device can be controlled to send the obtained live broadcast data stream to the live broadcast server 200 along with live broadcast room information of a main broadcast account logged on the main device.
In this embodiment, each live broadcast device 100 can push a stream for the same live broadcast, but when pushing a stream, the data stream pushed by each live broadcast device 100 needs to be distinguished, so in this embodiment, referring to fig. 4, when controlling a target device to push a stream for live broadcast on the basis of the above description, the method can be implemented as follows:
Step S1221, obtaining a live stream name of the live pushing by the current device through the live room.
Step S1222, generating a corresponding unique identifier according to the device information of the target device and the live stream name.
In step S1223, the target device is controlled to carry the live broadcast room information and the unique identifier on the obtained live broadcast data stream to perform live broadcast pushing, so that the live broadcast server 200 records the unique identifier and pushes the received live broadcast data stream to the viewer end 300 corresponding to the viewer entering the live broadcast room.
In this embodiment, before switching, a live stream name of a live push stream of a live room of a main broadcasting account through which a current device logs in may be obtained, where the live stream name may be used to uniquely identify a data stream of the live broadcast. In addition, similarly, each secondary device may use the live stream name of live stream pushing in the live stream room of the main broadcasting account logged in on the main device as a standard, so as to obtain the live stream name of live stream pushing in the live stream room on the main device when switching to the live stream pushing.
On this basis, each live broadcast device 100 also has corresponding device information, where the device information may include a globally unique identifier corresponding to the device and may be used to uniquely identify the live broadcast device 100 in the multi-device live broadcast switching system. When switching to the push stream of the target device, a unique identifier may be generated according to the device information of the target device and the live stream name, and a live stream carrying the unique identifier may be characterized, where the live stream is sent by a certain live device 100 in the live broadcast.
In this way, 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 data stream.
As can be seen from the above description, among the plurality of live terminals, the live device 100 used by the host to control live switching may be a primary device, and the rest of the live devices 100 may be secondary devices. In order to facilitate that the host can directly know the push situation of other secondary devices locally based on the host device, referring to fig. 5, the multi-device live broadcast switching method provided by the embodiment further includes the following steps:
step S210, obtaining a live video stream when the target device executes live pushing.
And step S220, carrying out local preview display on the live video stream.
In this embodiment, when the target device performs live push, a live video stream of the live push may be obtained. The live video stream can be a video of a host broadcast which is shot and obtained by the target equipment, or can be a live video stream which is generated by recording the display information by the target equipment. The main device can display the live video stream of the target device in a local preview mode, so that the main player can know the plug flow condition of each auxiliary device based on the main device.
Further, in one application scenario, it is contemplated that in addition to video streaming based on each live device 100, a host may utilize a live device 100, such as a host device, to perform audio commentary and the like. Therefore, taking the current device as the main device, that is, when switching from self-push to push of other live devices 100, the switching can be implemented in the following manner, please refer to fig. 6 in combination:
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.
The main equipment comprises a live video stream and a live audio stream when pushing, and the live audio stream can be acquired by audio acquisition equipment of the main equipment. When it is necessary to switch from the master device to the target device (other slave device), the master device may control itself to stop transmitting the live video stream, but in order to ensure that the audio of the master can be continuously pushed, the collected live audio stream may be kept transmitted to the live server 200.
Meanwhile, after switching to the target device, the target device may be controlled to transmit the live video stream and the live audio stream collected by the target device to the live server 200.
Furthermore, in the present embodiment, the live server 200 may include a plurality of stream processing nodes, and each stream processing node may process different types of live data streams, for example, live data streams of different formats, different scenes, and the like. If the switching is to the master device to push the live data stream, 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 foregoing, in the multi-device live broadcast switching system, in addition to the switching live broadcast between different live broadcast devices 100, the live broadcast data sources of multiple live broadcast devices 100 may be mixed for pushing.
Therefore, referring to fig. 7, the multi-device live broadcast switching method provided in the present embodiment may further include the following steps:
in step S310, in the process of live broadcast pushing of the current device, if a mixing instruction indicating to play multiple devices is monitored, information of multiple corresponding live broadcast devices 100 is obtained according to the mixing instruction.
In step S320, each of the live broadcast devices 100 in the plurality of live broadcast devices 100 is controlled to perform live broadcast 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 plurality of live broadcast data streams with the same live broadcast stream identifier and pushes the live broadcast data streams.
In this embodiment, when in implementation, the plurality of live broadcast devices 100 may respectively perform live broadcast shooting from different angles to obtain a live broadcast data stream, or may also obtain a live broadcast data stream by adopting a screen recording manner. When the main broadcasting has corresponding requirements, for example, a plurality of live broadcast data streams with different angles need to be concentrated in a live broadcast room for pushing, for example, the live broadcast data streams can be concentrated in the form of a plurality of sub-windows in the live broadcast room, or when the live broadcast data streams of the main broadcasting and the live broadcast data streams of the video recording obtained by shooting need to be concentrated in the live broadcast room for displaying, the main broadcasting can initiate a mixing instruction. The mixing instruction is used for indicating to play multiple devices, wherein the mixing instruction carries information of multiple live devices 100 needing to play multiple devices.
The above-mentioned plurality of live broadcast devices 100 may be two or more, for example, may include a main device and at least one auxiliary device, or may be two or more auxiliary devices, and in particular, the embodiment is not limited, but only needs to be a plurality of live broadcast devices 100 in a multi-device live broadcast switching system.
In this case, the live broadcast device 100 for controlling may also be taken as a main device, where the main device may send a notification to the multiple live broadcast devices 100, and after receiving the notification, each live broadcast device 100 may perform live broadcast pushing, where a live broadcast data stream pushed by each live broadcast device 100 carries the same live broadcast stream identifier. In this way, after the live data streams pushed by the plurality of live devices 100 are mixed by the live server 200, the live data streams are concentrated in the corresponding live rooms to be pushed.
In this embodiment, the above procedure can realize free switching between live broadcast pictures corresponding to different live broadcast devices 100 based on the same live broadcast room. After the live broadcast is completed, or when the live broadcast is finished according to the requirement of the host broadcast, the live broadcast association relationship, that is, protocol communication, between the live broadcast devices 100 can be disconnected.
When the communication is disconnected, the master device may send a message to be disconnected to the slave device, and the slave device may feed back feedback for confirming disconnection to the master device after receiving the message, as an example of communication between the master device and the slave device. 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 traffic between the main device and the auxiliary device is disconnected.
In this embodiment, the above-described respective process implementations may be implemented based on the UI interaction layer, the communication protocol interaction layer, and the stream management layer in the system, respectively. The above processes of, for example, the master device generating a login identifier, controlling the switching of the live broadcast device 100, and disconnecting the communication connection with the slave device, and the slave device scanning the login identifier, the slave device selecting to obtain a live broadcast data stream by shooting or obtaining a live broadcast data stream by recording a screen, and disconnecting the communication connection with the master device may be performed in the UI interaction layer.
Further, the actions described above, such as the heartbeat connection before each live device 100, the protocol communication connection between live devices 100, etc., may be implemented based on a communication protocol interaction layer. The processes of live broadcast pushing to the live broadcast server 200 by each live broadcast device 100, sending a switching notification, and locally previewing and displaying the live broadcast data stream of the secondary device by the primary device may be implemented based on the stream management layer.
The multi-device live broadcast switching scheme provided by the embodiment provides a brand new play mode, and a host can switch and push in a live broadcast room by using different live broadcast devices 100 as input sources in the same live broadcast room. The multi-view live-broadcast picture viewing experience can be brought to the audience.
In addition, the embodiment of the present application further provides a multi-device live broadcast switching method, which can be applied to any one of the live broadcast devices 100 shown in fig. 1, and in this embodiment, the live broadcast device 100 performing the multi-device live broadcast switching method is used as a controlled end to perform the method.
It should be understood that, in other embodiments, the order of some steps in the multi-device live broadcast switching method of the present embodiment may be interchanged according to actual needs, or some steps in the multi-device live broadcast switching method may be omitted or deleted. Referring to fig. 8, the detailed steps of the multi-device live switching method are described as follows.
Step S410, when receiving a switch notification indicating to switch from a current device to itself sent by another live broadcast device 100 in the multi-device live broadcast switching system, obtains a live broadcast stream identifier adopted when the current device performs push.
Step S420, carrying the live stream identifier on the obtained live stream to perform live pushing, so that the live server 200 pushes the received live stream with the live stream identifier as the same output stream.
In this embodiment, as the controlled end, for example, the above-mentioned auxiliary device may be used, and the controlled end may be switched under the control of other live broadcast devices 100, for example, the main device, to execute live broadcast push. When live pushing, a live stream identifier of the data stream characterized as live broadcast on site needs to be carried in the live stream, and the live stream identifier can be obtained based on the data stream pushed by the current equipment and can also be obtained from the live stream pushed by the live broadcast room of the main broadcasting account logged on the main equipment.
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 with the live stream identifier as the same output stream.
In this embodiment, before this, as a controlled party, for example, a slave device, needs to establish a live association relationship with a current device (such as a master device) in advance, so that the same live stream identifier may be used for pushing later. Therefore, referring to fig. 9, the multi-device live broadcast switching method provided in the present 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 multicast information.
Step S520, obtaining the playing information after successful login and establishing a live broadcast association relationship with the current equipment.
When the live association relationship is established with the current device in step S520, the method may be specifically implemented as follows, please refer to fig. 10 in combination:
step S521, feeding back login success information to the current equipment;
step S522, receiving the broadcast information sent by the current device after receiving the login success information, saving the broadcast information, and sending connection success information carrying self device information to the current device, so that the current device saves the device information in a device list.
It should be noted that, in this embodiment, the details of the case where the live broadcast device 100 is used as the controlled terminal to execute the switching scheme are not detailed, and the description of the case where the live broadcast device 100 is used as the controlling terminal to execute the switching scheme in the above embodiment is omitted here.
On the basis of the above, the embodiment of the present application further provides a switching method applied to the multi-device live broadcast switching system including the plurality of live broadcast devices 100. Referring to fig. 11, the implementation process of the handover method may be as follows:
in step S610, when a switching instruction indicating to switch devices is detected during live broadcast push of a current device, any direct broadcast device 100 obtains target device information according to the switching instruction, sends a stop push notification to the current device, and sends an execute push notification to the target device.
Step S620, after receiving the notification of stopping the push, the current device stops the push of the live data stream with the live stream identifier.
In step S630, after receiving the notification of performing the push, the target device starts to perform the live push that carries 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.
In this embodiment, the details of the switching scheme performed by the live broadcast device 100 as the control end are not described in detail, and the description of this embodiment is omitted here.
In order to more clearly describe the overall flow of the multi-device live broadcast switching method provided by the present application, the implementation process of the method is described below in conjunction with the interaction process shown in fig. 12. Here, the description will be given taking a master device and a slave device of the plurality of live broadcast devices 100 as control terminals, respectively.
In this embodiment, in the stage of pre-establishing protocol communication between the master device and the slave device, the following may be implemented:
the main equipment can generate a login identification code based on the opening 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 the user;
after receiving the login success information, the main equipment can send the start-up information to the auxiliary equipment;
after receiving the open-cast information, the auxiliary equipment can store the open-cast information and feed back the connection success information carrying the own equipment to the main equipment under the confirmation operation of the user;
the master device stores the received device information into a device list;
On the basis, the main device and the auxiliary device are connected through the transmission and the reception of heartbeat data packets to maintain communication connection.
On the basis of the above-described pre-established protocol communication, when live broadcasting is formally performed, device switching may be performed by:
when the current equipment performs live broadcast push flow, the main equipment monitors whether a switching instruction exists or not, and the switching instruction can be used for indicating equipment switching;
after the main equipment monitors the switching instruction, a stop push notification or an execution push notification can be sent, wherein the stop push notification is sent to the auxiliary equipment serving as the current equipment, and the execution push 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 streaming stopping notification, and if the auxiliary equipment is used as the target equipment, starting to execute streaming after receiving the streaming executing notification;
the secondary device, when acting as a target device, transmits the live data stream to the live server 200 when performing live push;
the live server 200 pushes based on the live stream identification in the live data stream.
Through the above process, live broadcast switching among the plurality of live broadcast devices 100 can be realized through the master device (any live broadcast device 100) in the plurality of live broadcast devices 100, so that the direct control of the host broadcast is facilitated, and the usability and the 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 switching apparatus 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 also be separate from the electronic device and accessible to the processor 120 through a bus interface. Alternatively, the storage medium 110 may be integrated into the processor 120, for example, as a cache and/or general purpose registers.
The multi-device live broadcast switching apparatus 130 may be understood as the above-mentioned electronic device, or the processor 120 of the electronic device, or may be understood as a software functional module that is independent of the above-mentioned electronic device or the processor 120 and implements the above-mentioned multi-device live broadcast switching method under the control of the electronic device.
As shown in fig. 14, in one implementation, the multi-device live switching apparatus 130 may include a monitoring module 131 and a control module 132. The functions of the respective functional modules of the multi-device live switching apparatus 130 are described in detail below.
The monitoring module 131 is configured to obtain, when a switching instruction indicating to switch a device is monitored during live broadcast pushing of a current device, target device information according to the switching instruction.
It is understood that the monitoring module 131 may be used to perform the step S110 described above, and reference may be made to the details of the implementation of the monitoring module 131 regarding the step S110 described above.
The control module 132 is configured to control the current device to stop pushing the live data stream with the live stream identifier, and control the target device to start executing the live pushing with 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.
It will be appreciated that the control module 132 may be configured to perform step S120 described above, and reference may be made to the details of implementation of the control module 132 regarding step S120 described above.
In one possible implementation, the live stream identifier includes live room information, and the control module 132 may be configured to implement handover by:
acquiring live room information of a main broadcasting account logged in on the current equipment;
And controlling the target equipment to carry the live broadcast room information on the obtained live broadcast data stream to carry out live broadcast pushing so that the live broadcast server 200 pushes the received live broadcast data stream to a viewer end 300 corresponding to a viewer entering the live broadcast room.
In one possible implementation, the control module 132 may specifically be configured to:
acquiring a live stream name of live push stream of the current equipment through the live 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 live broadcast room information and the unique identifier on the obtained live broadcast data stream to carry out live broadcast pushing 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 one possible implementation manner, the live data streams of the current device and the target device include a video stream of the acquired anchor or a video stream obtained by performing a screen recording operation on display information.
In one possible implementation manner, the apparatus further includes a preview module, where the preview module may be configured to:
Acquiring a live video stream when the target equipment executes live pushing;
and carrying out local preview display on the live video stream.
In one possible implementation, the control module 132 may specifically be configured to:
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;
and controlling the target equipment to start sending the obtained live video stream and live audio stream carrying the live stream identifier to the live server 200.
In one possible implementation manner, the apparatus may further include a mixing module, where the mixing module may specifically be configured to:
in the live broadcast pushing process of the current equipment, if a mixed instruction for indicating multi-equipment playing is monitored, obtaining information of a plurality of corresponding live broadcast equipment 100 according to the mixed instruction;
and controlling each of the live broadcast devices 100 in the plurality of live broadcast devices 100 to perform live broadcast pushing of the live broadcast data stream based on the same live broadcast stream identifier, so that the live broadcast server 200 performs the mixing processing on the received plurality of live broadcast data streams with the same live broadcast stream identifier and pushes the live broadcast data streams.
In another implementation, referring to fig. 15, the multi-device live switching apparatus 130 may include a receiving module 133 and a push module.
And the receiving module 133 is configured to obtain a live stream identifier adopted when the current device performs push when receiving a switch notification that indicates to switch from the current device to itself sent by other live broadcast devices 100 in the multi-device live broadcast switching system.
It is understood that the receiving module 133 may be used to perform the step S410 described above, and reference may be made to the details of the implementation of the receiving module 133 related to the step S410.
And the pushing module 134 is configured to carry the live stream identifier on the obtained live data stream to perform live 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 plug-flow module 134 may be used to perform the step S420, and reference may be made to the details of the implementation of the plug-flow module 134 regarding the step S420.
The process flow of each module in the apparatus and the interaction flow between the modules may be described with reference to the related descriptions in the above method embodiments, which are not described in detail herein.
Further, the embodiment of the application also provides a computer readable storage medium, which stores machine executable instructions, and the machine executable instructions when executed implement the multi-device live broadcast switching method provided by any of the above embodiments.
In summary, the present application provides a method, an apparatus, a system, an electronic device, and a readable storage medium for multi-device live broadcast switching, where in the process of live broadcast pushing of a current device, if a switching instruction indicating device switching is detected, any direct broadcast device 100 obtains target device information according to the switching instruction, so as to control the current device to stop pushing a live broadcast data stream with a live broadcast stream identifier, and control the target device to start executing live broadcast pushing with the live broadcast stream identifier, so that the live broadcast server 200 pushes the received live broadcast data stream with the live broadcast stream identifier as the same output stream. In this way, switching control can be realized based on any one of the live broadcast devices 100, so that the host can directly perform switching control conveniently, and usability and expansibility are greatly improved.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present application should be included in the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A multi-device live broadcast switching method, which is applied to any one of live broadcast devices in a multi-device live broadcast switching system, wherein each live broadcast device is in communication connection with a live broadcast server, and the method comprises the following steps:
in the live broadcast pushing process of the current equipment, if a switching instruction for indicating equipment switching is monitored, acquiring target equipment information according to the switching instruction;
controlling the current equipment to stop pushing live data streams with live stream identifiers, and controlling the target equipment to start to execute live stream pushing with the live stream identifiers so that the live server pushes the received live data streams with the live stream identifiers as the same output stream;
the step of controlling the current device to stop pushing 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 comprises the following steps:
controlling the current equipment to stop sending the live video stream with the live stream identifier to a live server, and keeping sending the live audio stream with the live stream identifier 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 identifier to the live server.
2. The multi-device live switching method of claim 1, wherein the live stream identification comprises live room information;
the step of controlling the target device to start to execute live broadcast pushing flow carrying the live broadcast flow identifier, so that the live broadcast server pushes the received live broadcast data flow with the live broadcast flow identifier as the same output flow, comprises the following steps:
acquiring live room information of a main broadcasting account logged in on the current equipment;
and controlling the target equipment to carry the live broadcast room information on the obtained live broadcast data stream to carry out live broadcast pushing so that the live broadcast server pushes the received live broadcast data stream to a viewer end corresponding to a 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 push so that the live broadcast server pushes the received live broadcast data stream to a viewer end corresponding to a viewer entering the live broadcast room includes:
Acquiring a live stream name of live push stream of the current equipment through the live 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 live broadcast room information and the unique identifier on the obtained live broadcast data stream to carry out live broadcast 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 the live broadcast data streams of the current device and the target device include a video stream of an acquired anchor or a video stream obtained by performing a screen recording operation on display information.
5. The multi-device live handoff method of claim 1, further comprising:
acquiring a live video stream when the target equipment executes live pushing;
and carrying out local preview display on the live video stream.
6. The multi-device live handoff method of claim 1, further comprising:
in the live broadcast pushing process of the current equipment, if a mixed instruction for 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 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 pushes the live broadcast data streams.
7. A multi-device live broadcast switching method, which is applied to any one of live broadcast devices in a multi-device live broadcast switching system, wherein 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 sent by other live broadcast devices in the multi-device live broadcast switching system and indicating to switch from the current device to the live broadcast device, acquiring a live broadcast stream identifier adopted when the current device performs push stream;
carrying the live stream identifier on the obtained live stream data stream to carry out live stream pushing so that the live server pushes the received live stream data stream with the live stream identifier as the same output stream;
the step of carrying the live stream identifier in the obtained live stream data stream to carry out live stream pushing comprises the following steps:
carrying the live broadcast stream identification on the obtained live broadcast video stream and live broadcast audio stream to carry out live broadcast push stream;
When the current device is switched to the current device, the current device stops sending the live video stream with the live stream identifier to the live server, and keeps sending the live audio stream with the live stream identifier to the live server.
8. The multi-device live handover method of claim 7, further comprising the step of establishing a live association relationship with the current device in advance, the step comprising:
scanning a login identification code displayed by the current equipment, wherein the login identification code is generated by the current equipment according to the opening information;
and after successful login, acquiring the broadcasting information and establishing a live broadcast association relationship with the current equipment.
9. The method for switching live broadcasting of multiple devices according to claim 8, wherein the step of obtaining the start-up information after successful login and establishing a live broadcasting association relationship with the current device comprises:
feeding back login success information to the current equipment;
and receiving the open-cast information sent by the current equipment after receiving the login success information, storing the open-cast information, and sending connection success information carrying self equipment information to the current equipment so that the current equipment stores the equipment information into an equipment list.
10. A multi-device live broadcast switching method, applied to a multi-device live broadcast switching system including a plurality of live broadcast devices, each of the live broadcast devices being communicatively connected to a live broadcast server, the method comprising:
in the live broadcast pushing process of the current equipment, if a switching instruction for indicating equipment switching is monitored, target equipment information is obtained according to the switching instruction, a pushing stopping notification is sent to the current equipment, and an executing pushing notification is sent to the target equipment;
after receiving the notification of stopping pushing, the current device stops pushing the live broadcast data stream with the live broadcast stream identifier;
after receiving the notification of executing the live stream, the target device starts to execute the live stream with the live stream identifier, so that the live server pushes the received live data stream with the live stream identifier as the same output stream;
the step of stopping the pushing of the live data stream with the live stream identifier comprises the following steps:
stopping sending the live video stream with the live stream identifier to a live server, and keeping sending the live audio stream with the live stream identifier to the live server;
The step of starting to execute the live push stream carrying the live stream identifier comprises the following steps:
and starting to send the obtained live video stream and live audio stream carrying the live stream identifier to the live server.
11. A multi-device live broadcast switching apparatus, applied to any live broadcast device in a multi-device live broadcast switching system, where each live broadcast device is communicatively connected to a live broadcast server, the apparatus comprising:
the monitoring module is used for acquiring target equipment information according to a switching instruction when the switching instruction for indicating equipment switching is monitored in the live broadcast pushing process of the current equipment;
the control module is used for controlling the current equipment to stop pushing the live broadcast data stream with the live broadcast stream identifier, and controlling the target equipment to start to execute the live broadcast pushing stream carrying the live broadcast stream identifier, so that the live broadcast server pushes the received live broadcast data stream with the live broadcast stream identifier as the same output stream;
the control module is used for controlling the current equipment to stop sending the live video stream with the live stream identifier to the live server and keeping sending the live audio stream with the live stream identifier 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 identifier to the live server.
12. A multi-device live broadcast switching apparatus, applied to any live broadcast device in a multi-device live broadcast switching system, where each live broadcast device is communicatively connected to a live broadcast server, the apparatus comprising:
the receiving module is used for obtaining a live stream identifier adopted when the current equipment performs push stream when receiving a switching notification of the current equipment to the receiving module, wherein the switching notification is sent by other live broadcast equipment in the multi-equipment live broadcast switching system and indicates the current equipment to switch to the receiving module;
the live stream pushing module is used for carrying the live stream identification on the obtained live stream data stream to carry out live stream pushing so that the live server can push the received live stream data stream with the live stream identification as the same output stream;
the live broadcast stream pushing module is used for carrying the live broadcast stream identification on the obtained live broadcast video stream and the obtained live broadcast audio stream to carry out live broadcast pushing;
when the current device is switched to the current device, the current device stops sending the live video stream with the live stream identifier to the live server, and keeps sending the live audio stream with the live stream identifier to the live server.
13. The multi-device live broadcast switching system is characterized by comprising a plurality of live broadcast devices, wherein each live broadcast device is in communication connection with a live broadcast server:
Any direct broadcasting equipment is used for acquiring target equipment information according to a switching instruction when the switching instruction for instructing equipment switching is monitored in the live broadcasting and pushing process of the current equipment, sending a notification for stopping pushing and sending a notification for executing pushing to the current equipment;
the current equipment is used for stopping pushing the live broadcast data stream with the live broadcast stream identifier after receiving the notification of stopping pushing, wherein the live broadcast video stream with the live broadcast stream identifier is stopped from being sent to a live broadcast server, and the live broadcast audio stream with the live broadcast stream identifier is kept to be sent to the live broadcast server;
and the target device is used for starting to execute the live broadcast pushing stream carrying the live broadcast stream identifier after receiving the notification of executing the pushing stream, wherein the obtained live broadcast video stream carrying the live broadcast stream identifier and the obtained live broadcast audio stream are started to be sent to the live broadcast server, so that the live broadcast server pushes the received live broadcast data stream with the live broadcast stream identifier as the same output stream.
14. 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 the electronic device is operating, are executed by the processor to perform the multi-device live handoff method of any of claims 1-9.
15. A computer readable storage medium storing machine executable instructions that when executed implement the multi-device live handover method of any of claims 1-9.
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 CN112738540A (en) 2021-04-30
CN112738540B true 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)

Families Citing this family (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
CN115243058A (en) * 2022-05-23 2022-10-25 广州播丫科技有限公司 Live broadcast machine capable of realizing remote live broadcast and working method thereof
CN114827747B (en) * 2022-06-29 2023-01-10 广州市广播电视台 Streaming media data switching method, device, equipment and storage medium
CN116456123B (en) * 2023-06-16 2023-09-12 北京焦点新干线信息技术有限公司 Method, device and equipment for realizing multi-equipment switching live broadcast

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9749379B2 (en) * 2013-10-31 2017-08-29 Electronics And Telecommunications Research Institute Apparatus and method for receiving video service in hybrid network
US9900362B2 (en) * 2014-02-11 2018-02-20 Kiswe Mobile Inc. Methods and apparatus for reducing latency shift in switching between distinct content streams
CN105872645A (en) * 2015-12-10 2016-08-17 乐视网信息技术(北京)股份有限公司 Three-way streaming video playing control method and system
US10425694B2 (en) * 2016-12-30 2019-09-24 Facebook, Inc. Live broadcast on an online social network

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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

Also Published As

Publication number Publication date
CN112738540A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN112738540B (en) Multi-device live broadcast switching method, device, system, electronic device and readable storage medium
US11388453B2 (en) Method for processing live-streaming interaction video and server
CN107124661B (en) Communication method, device and system in live channel
EP2403236B1 (en) Mobile video mixing system
CN106534953B (en) Video rebroadcasting method in live broadcast application and control terminal
US9736518B2 (en) Content streaming and broadcasting
US20230144936A1 (en) Smart screen reverse projection method, system, device, smart screen and readable storage medium
EP2933982B1 (en) Media stream transfer method and user equipment
CN113923470B (en) Live stream processing method and device
WO2011043886A1 (en) Live media stream selection on a mobile device.
CN113014972B (en) Screen projection method, device and system
CN113438527A (en) Video screen projection method, device, equipment and storage medium
US20220286731A1 (en) Multimedia apparatus and cast method
CN109756744B (en) Data processing method, electronic device and computer storage medium
CN113286190A (en) Cross-network and same-screen control method and device and cross-network and same-screen 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
JP2010056966A (en) Server for transmitting image content, image display device, method of transmitting image content, and method of displaying image
CN106162234A (en) A kind of method and device sharing TV programme
CN115379279A (en) Multi-screen linkage interaction method, device and system, storage medium and electronic equipment
JP2001281759A (en) Projection system, projector and memory medium storing projection program
CN113691790A (en) Multimedia data processing method and device, electronic equipment and storage medium
CN113726534A (en) Conference control method, conference control device, electronic equipment and storage medium
CN112351201A (en) Multimedia data processing method, system, device, electronic equipment and storage medium
WO2023011021A1 (en) Live picture display method and apparatus, storage medium, and electronic device

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