CN106937131B - Video stream switching method, device and equipment - Google Patents
Video stream switching method, device and equipment Download PDFInfo
- Publication number
- CN106937131B CN106937131B CN201710209977.8A CN201710209977A CN106937131B CN 106937131 B CN106937131 B CN 106937131B CN 201710209977 A CN201710209977 A CN 201710209977A CN 106937131 B CN106937131 B CN 106937131B
- Authority
- CN
- China
- Prior art keywords
- video data
- anchor
- current
- mode
- information
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4122—Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4126—The peripheral being portable, e.g. PDAs or mobile phones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4318—Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network 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/65—Transmission of management data between client and server
- H04N21/658—Transmission by the client directed to the server
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The application provides a video stream switching method, a video stream switching device and video stream switching equipment, wherein the method comprises the following steps: the method is applied to a live client and comprises the following steps: when the live client is in a main broadcasting mode, acquiring off-air time information, sending the off-air time information to other live clients of a live broadcasting room, and stopping uploading video data when the off-air time is determined to be reached according to the off-air time information; when the live broadcast client is in a spectator mode, playing video data of a current anchor; receiving the off-air time information, and switching to an on-air mode when the current audience is determined to be the next main air according to the wheat sequence table; and when determining that the current audience is not the next anycast according to the wheat sequence list and when determining that the off-air time reaches according to the off-air time information, switching the video data of the current anycast into the video data of the next anycast according to the wheat sequence list for playing. The method and the device realize smooth transition of video data and avoid the situation of flow cutoff.
Description
Technical Field
The present application relates to the field of live webcasting, and in particular, to a method, an apparatus, and a device for switching video streams.
Background
The network live broadcast technology is an internet technology that a server side broadcasts live video data of a main broadcast user to a plurality of audience users for watching. After entering the live channel created by the anchor user, the audience user can watch the video uploaded by the anchor user. After the first main broadcast is stopped in the same live broadcast room, the viewer in the live broadcast room can become a second main broadcast and start the broadcast, which is called a wheelbarrow.
At present, the second anchor will send video data to the video streaming server after watching the first anchor and stopping playing, and the video streaming server carries out live broadcasting in the live broadcasting room of the first anchor. As can be seen, the second anchor does not upload data until the first anchor stops playing, and there is a time interval between the stop playing and the start playing, so that there is a situation of cut-off in the video stream displayed in the live broadcast room.
Disclosure of Invention
The application provides a video stream switching method, a video stream switching device and video stream switching equipment, which aim to overcome the defect that the video stream displayed in a live broadcast room is changed in the prior art and has a cut-off state.
According to a first aspect of an embodiment of the present application, a video stream switching method is provided, where the method is applied to a live broadcast client, and includes:
when the live broadcast client is in a main broadcast mode, transmitting the acquired video data to other live broadcast clients of a live broadcast room, and displaying the video data; acquiring the information of the off-air time, sending the information of the off-air time to other live broadcast clients of a live broadcast room, and stopping uploading video data when the off-air time is determined to be reached according to the information of the off-air time;
when the live broadcast client is in a spectator mode, playing video data of a current anchor; receiving the off-air time information, and switching to an on-air mode when the current audience is determined to be the next main air according to the wheat sequence table; when the current audience is determined not to be the next anycast according to the wheat sequence list and the stop time is determined to reach according to the stop time information, switching the video data of the current anycast into the video data of the next anycast according to the wheat sequence list for playing;
wherein, the wheat sequence list records the anchor marks of different anchors according to the wheat turn-round sequence.
Optionally, the stop time information is a stop time or a countdown time from the current time.
Optionally, the method further includes:
and when the video data is stopped to be uploaded, switching the video data of the current main broadcast into the video data of the next main broadcast according to the wheat sequence list for playing, and switching to a viewer mode.
Optionally, the switching the video data of the current anchor to the video data of the next anchor for playing includes:
controlling the video data of the current anchor to fade out and display from a screen in a mode of improving the transparency of the video data of the current anchor from low to high;
and controlling the video data of the next anycast to be displayed in a fade-in mode from the screen by reducing the transparency of the video data of the next anycast from high to low.
Optionally, the method further includes:
and after the stop time information is sent and before the uploading of the video data is stopped, if the existence of the next anchor and the video data of the next anchor are determined according to the wheat sequence list, outputting a reminding message of the failure of the wheat wheeling.
According to a second aspect of the embodiments of the present application, there is provided a video stream switching method, where the method is applied in a server and includes:
receiving the stop time information and the video data uploaded by the current main broadcast;
sending the stop broadcasting time information to a next anchor according to a wheat sequence table, wherein anchor identifications of different anchors are recorded in the wheat sequence table according to the wheat turn sequence;
receiving video data uploaded by the next anycast;
and when the stop time is determined to reach according to the stop time information, switching the video data of the current anchor into the video data of the next anchor, and sending the video data to other live broadcast clients of the live broadcast room.
According to a third aspect of the embodiments of the present application, there is provided a video stream switching apparatus, where the apparatus is provided at a live client, and the apparatus includes:
when the live client is in a main play mode,
the information sending module is used for sending the acquired video data to other live broadcast clients of the live broadcast room;
the video playing module is used for displaying the video data;
the information acquisition module is used for acquiring the off-air time information;
the information sending module is also used for sending the off-air time information to other live broadcast clients of a live broadcast room;
the information judging module is used for informing the information sending module to stop sending the video data when the broadcasting stop time is determined to reach according to the broadcasting stop time information;
while the live client is in viewer mode,
the video playing module is used for playing video data of the current anchor;
the information receiving module is used for receiving the off-air time information;
the information judgment module is also used for informing the mode switching module to switch the current mode to the main broadcasting mode when the current audience is determined to be the next main broadcasting according to the wheat sequence table;
the information judgment module is further used for determining that the current audience is not the next anchor according to the wheat sequence list, and informing the video playing module to switch the video data of the current anchor into the video data of the next anchor for playing according to the wheat sequence list when the stop time is determined to be reached according to the stop time information;
wherein, the wheat sequence list records the anchor marks of different anchors according to the wheat turn-round sequence.
Optionally, the video playing module is specifically configured to:
controlling the video data of the current anchor to fade out and display from a screen in a mode of improving the transparency of the video data of the current anchor from low to high;
and controlling the video data of the next anycast to be displayed in a fade-in mode from the screen by reducing the transparency of the video data of the next anycast from high to low.
According to a fourth aspect of the embodiments of the present application, there is provided a video stream switching apparatus, where the apparatus is provided in a server, and the apparatus includes:
the information receiving module is used for receiving the off-air time information and the video data uploaded by the current main air;
the information sending module is used for sending the stop time information to a next anchor according to a wheat sequence table, and the wheat sequence table records anchor identifications of different anchors according to a wheat turn sequence;
the information receiving module is also used for receiving video data uploaded by the next anchor;
and the information judgment module is used for informing the information sending module to switch the video data of the current anchor into the video data of the next anchor and sending the video data to other live broadcast clients in the live broadcast room when the stop time is determined to reach according to the stop time information.
According to a fifth aspect of embodiments of the present application, there is provided an electronic apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the live broadcast client is in a main broadcast mode, transmitting the acquired video data to other live broadcast clients of a live broadcast room, and displaying the video data; acquiring the information of the off-air time, sending the information of the off-air time to other live broadcast clients of a live broadcast room, and stopping uploading video data when the off-air time is determined to be reached according to the information of the off-air time;
when the live broadcast client is in a spectator mode, playing video data of a current anchor; receiving the off-air time information, and switching to an on-air mode when the current audience is determined to be the next main air according to the wheat sequence table; when the current audience is determined not to be the next anycast according to the wheat sequence list and the stop time is determined to reach according to the stop time information, switching the video data of the current anycast into the video data of the next anycast according to the wheat sequence list for playing;
wherein, the wheat sequence list records the anchor marks of different anchors according to the wheat turn-round sequence.
According to the method and the system, when a live client is in a main broadcasting mode, the off-air time information is obtained, the off-air time information is sent to other live clients of a live broadcasting room, and uploading of video data is stopped when the off-air time is determined to be reached according to the off-air time information; when the live broadcast client is in a spectator mode, playing video data of a current anchor; receiving the information of the off-air time, and switching to an on-air mode when the current audience is determined to be the next main air according to the wheat sequence table; and when the current audience is determined not to be the next main broadcast according to the wheat sequence list and the stop time is determined to reach according to the stop time information, switching the video data of the current main broadcast into the video data of the next main broadcast according to the wheat sequence list for playing, thereby realizing smooth transition of the video data and avoiding the situation of cut-off. In addition, due to the fact that switching is conducted on the live broadcast client side, the work of the server side is unchanged, the server side does not need to be changed, and the problem that the cost is high due to the fact that the server side is changed is solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic view of a scene of a live application according to an exemplary embodiment of the present application.
Fig. 2 is a flow chart illustrating a video stream switching method according to an exemplary embodiment of the present application.
Fig. 3A is a timing diagram illustrating a video stream switching method according to an exemplary embodiment of the present application.
Fig. 3B is a diagram illustrating an application scenario according to an exemplary embodiment of the present application.
Fig. 3C is a schematic diagram illustrating a video presentation before the end of a countdown, according to an example embodiment.
Fig. 3D is a schematic diagram illustrating video switching at the end of a countdown period according to an example embodiment.
Fig. 4 is a flow chart illustrating another video stream switching method according to an exemplary embodiment of the present application.
Fig. 5 is a block diagram of a video stream switching apparatus according to an exemplary embodiment of the present application.
Fig. 6 is a block diagram of another video stream switching apparatus shown in the present application according to an example embodiment.
Fig. 7 is a block diagram illustrating an apparatus for video stream switching according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The scheme of the embodiment of the application can be applied to scenes related to live broadcast interaction, such as network live broadcast, and is a live broadcast application scene schematic diagram shown according to an exemplary embodiment as shown in fig. 1, where fig. 1 includes a server serving as server-side equipment, and a smart phone, a tablet computer, and a personal computer serving as client-side equipment. The client device may also be an electronic device such as a PDA (Personal Digital Assistant), a multimedia player, and a wearable device.
The server device in fig. 1 provides live broadcast services to each client device, and a user may install a live broadcast client in the client device and obtain the live broadcast services through the live broadcast client. Typically, two types of users are involved in the live broadcast process, one type being the anchor user and the other type being the viewer user. The live broadcast client provides the live broadcast function when in the anchor mode, and provides the live broadcast watching function when in the audience mode. The anchor user can use the live broadcast function provided by the live broadcast client to carry out live video broadcast. For example, the live broadcast client can start a video shooting module of the intelligent device, acquire video data in real time through the video shooting module and send the video data to the server, the server broadcasts the received video data to the live broadcast clients of all audience users in the live broadcast room, and the audience users can watch live broadcast content of the anchor user by using a watching function provided by the live broadcast clients.
At present, in the same live broadcast room, if a viewer in the live broadcast room successfully robs a wheat, the viewer can become a second live broadcast after a first live broadcast stops broadcasting, and uploads video data to a video streaming server, and the live broadcast is carried out in the live broadcast room through the video streaming server. Since the second anchor waits for the first anchor to stop playing before uploading data, and a time interval exists between stop playing and start playing, the video stream displayed in the live broadcast room can be cut off.
In order to avoid the defect of cut-off of the video stream displayed in the live broadcast room when the anchor is replaced in the related art, the present application provides a video stream switching method, which can be applied to the live broadcast network architecture shown in fig. 1. The scheme provided by the present application is explained in detail below.
As shown in fig. 2, fig. 2 is a flowchart of a video stream switching method according to an exemplary embodiment, which can be applied in a live client.
When the live client is in a main broadcasting mode, the method comprises the following steps:
in step 201, sending the collected video data to other live broadcast clients in a live broadcast room, and displaying the video data;
in step 202, the off-air time information is obtained and sent to other live broadcast clients of the live broadcast room;
in step 203, when it is determined that the off-air time arrives according to the off-air time information, the uploading of the video data is stopped.
While the live client is in viewer mode, the method comprises:
in step 204, playing the video data of the current anchor;
in step 205, receiving the off-air time information;
in step 206, when the current audience is determined to be the next anycast according to the wheat sequence list, the mode is switched to the main broadcast mode.
In step 207, when it is determined that the current viewer is not the next anycast according to the wheat sequence list and the off-air time is reached according to the off-air time information, switching the video data of the current anycast into the video data of the next anycast according to the wheat sequence list for playing; wherein, the wheat sequence list records the anchor marks of different anchors according to the wheat turn-round sequence.
In this embodiment, the current anchor user can send the collected video data to a video streaming server (also referred to as a media server) through a live client, send the video data to other live clients of a live room through the video streaming server, and display the video data on the live client, and the other live clients can also play the video data of the current anchor. The video data is used for live broadcasting, and the video data can be acquired through the equipment where the live broadcasting client is located, or acquired through the camera equipment connected with the equipment where the live broadcasting client is located, without limitation. It can be understood that the current anchor will always send video data to other live clients in the live broadcast room before the anchor is not stopped, which is not described herein.
First, a live client in a main broadcast mode is introduced.
In order to avoid the situation that the video stream displayed in the live broadcast room has a cut-off state when the main broadcast is changed, the live broadcast client in the live broadcast mode can acquire the information of the off-air time and share the information of the off-air time to other live broadcast clients in the live broadcast room.
Wherein the stop time information is time information for instructing the current anchor to stop uploading the video data.
In an optional implementation manner, the stop time information may be a stop time, and the stopping uploading of the video data when the stop time is determined to arrive according to the stop time information includes: and when the stop-broadcasting time arrives, stopping uploading the video data.
The current anchor user can specify the stop time and stop uploading the video data when the stop time is reached. The specified time of the stop time may be a time when the live broadcast is ended, a time when the live broadcast is started, a certain time during the live broadcast, or the like. For example, the anchor user sets the stop time through the stop time setting control, the live client receives the setting instruction based on the stop time setting control to obtain the stop time, sends the stop time to other live clients in the live room, and stops uploading the video data when the stop time is reached.
As can be seen from the above embodiments, in the present embodiment, the time for stopping uploading the video data is determined by directly specifying the stop time, so that controllability of the stop time is achieved.
In another alternative implementation, the off-air time information may be a countdown time from the current time. When the stop-off time is determined to reach according to the stop-off time information, stopping uploading the video data, comprising: and stopping uploading the video data when the countdown is determined to be completed (countdown is finished) according to the countdown time.
In one example, the countdown time may be a countdown time set by the anchor user. For example, the anchor user sets the countdown through a countdown setting control on the live broadcast interface, and the live broadcast client receives a setting instruction based on the countdown setting control to obtain the countdown. On one hand, the countdown function can be started immediately when the countdown is obtained, the countdown is sent to other live broadcast clients of the live broadcast room, and the video data is stopped from being uploaded when the countdown is completed. On the other hand, after the countdown is obtained, when a certain set trigger condition is met, the countdown function is started, the countdown is sent to other live broadcast clients in the live broadcast room, and the video data is stopped from being uploaded when the countdown is completed.
In another example, the countdown time may also be a pre-specified time, and when the countdown triggering instruction is received, the countdown function is started, and the countdown time is sent to other live broadcast clients in the live broadcast room, and when the countdown is completed, the uploading of the video data is stopped. For example, the countdown triggering instruction may be an off-air instruction, and the countdown may be a delay time to stop uploading the video data. Specifically, when the anchor user needs to stop playing, the anchor user clicks a play stop button, at this time, a countdown function is triggered, preset countdown time is sent to other live broadcast clients in the live broadcast room, and when countdown is completed, video data uploading is stopped. The preset countdown time can be 5s, 10s, 15s and the like, and is configured according to requirements.
As can be seen from the above embodiments, in the present embodiment, the time for stopping uploading the video data is determined in a countdown manner, so that the current anchor can clearly stop uploading the time interval of the video data.
With respect to other live clients that send dead time information to the live room, in one example, the server device includes a video streaming server (also referred to as a media server). The live broadcast client in the main broadcast mode can send the off-air time information and the video data to the video stream server, and the video stream server sends the off-air time information and the video data to other live broadcast clients in the live broadcast room. In another example, the server devices include a video streaming server (also referred to as a media server) and a service server. The live broadcast client in the main broadcast mode can send the information of the off-air time to other live broadcast clients in the live broadcast room through the service server, and send video data to other live broadcast clients in the live broadcast room through the video streaming server. Because the existing service server can transmit communication information and the video streaming server can transmit video data, the video streaming server is not required to be utilized to transmit the off-air time information, so that the video streaming server is not required to be changed, and the waste of manpower and material resources caused by the change is avoided.
And when the live client in the main broadcasting mode determines that the off-air time reaches according to the off-air time information, stopping uploading the video data. When uploading of video data is stopped, in one example, the live room can be exited. In another example, the video data of the current main broadcast can be switched to the video data of the next arbitrary main broadcast for playing according to the wheat sequence list, and the mode is switched to the audience mode.
Therefore, in the embodiment, the current anchor does not need to exit the live broadcast room, and the current anchor can be converted into the audience to watch the video data uploaded by the next anchor, so that the fast switching between different modes is realized, and the interactivity between different anchors is enhanced.
In an optional implementation manner, after the stop time information is sent and before uploading of video data is stopped, if it is determined that a next anchor exists according to the wheat sequence list and video data of the next anchor is not received, a message for reminding that the wheat rotation fails is output.
And after the off-air time information is sent and before the uploading of the video data is stopped, when the existence of the next anchor and the video data of the next anchor are determined in the period, the reminding information of the failure of the wheeling microphone can be output. The reminder may be "wheel failed! "," no video data of the next anchor is received ", and the like. The current anchor can cancel the stop play according to the reminding information and continue the live broadcast. The current anchor can also inform the next anchor to remind the next anchor to upload video data and the like.
Therefore, the current anchor is reminded by outputting the reminding information of the wheeling wheat failure, so that the current anchor can take corresponding rescue measures, and the condition of video cutoff caused by the wheeling wheat failure is avoided.
Next, a live client in audience mode is introduced.
When the live client is in the audience mode, the video stream data of the current anchor can be played. The audience user can perform wheat robbing in the live broadcast watching process, if the wheat robbing is successful, the audience user becomes a prepared main broadcast, and the information of the main broadcast is stored in a wheat sequence list. If there are several viewers successfully robbed the wheat, i.e. there are several preliminary anchor, the anchor identifications of different anchors can be recorded in the wheat sequence list in turn-round order, so that the turn-round can be performed in turn-round order during the turn-round process. The wheat wheeling sequence can be determined according to the time sequence of successful wheat robbing, and the users arranged at the top have the priority of live broadcast and can carry out live broadcast at the top. The anchor identity may be a user name or the like used to represent the identity of the anchor.
The live client in audience mode can not only display the video data of the current anchor, but also receive the information of the off-air time. After the information of the off-air time is received, whether the current audience is the next anycast can be judged according to the wheat sequence table, and if the current audience is the next anycast, the mode is switched to the main-air mode. Under the anchor mode, the equipment where the live broadcast client side is located can collect video data, and the live broadcast client side can send the collected video data to other live broadcast client sides of a live broadcast room and display the video data in a local side. Therefore, the client of the next anchor is switched from the audience mode to the anchor mode, the live broadcast client does not play the video data of the current anchor any more, but plays the video data collected by the live broadcast client, and sends the collected video data to other live broadcast clients in the live broadcast room.
In one example, when the current audience is determined to be the next main broadcast according to the wheat sequence list, the mode is switched to the main broadcast mode, the broadcast control can be output by the broadcast interface, the main broadcast function of the live client is started when a trigger instruction is received based on the broadcast control, the device where the live client is located can collect video data, the collected video data is sent to other live clients of the live broadcast room through the server, and the video data is displayed at the live client.
Therefore, the live interface in the audience mode has no play control, and the live interface in the anchor mode is provided with the play control, so that the next anchor clicks the play control to play, the random play of the audience is avoided, and the rapid switching between the audience mode and the anchor mode is realized.
In one example, the next anycast may send video data to the video streaming server, where the video data carries a video stream ID, and the video stream ID may be composed of a live room number and a next anycast number, for example. The video stream server automatically broadcasts the video stream ID to other live broadcast clients (including a live broadcast client of the current anchor and a live broadcast client of the audience) in the live broadcast room, and the other live broadcast clients can subscribe the video stream in the video stream server according to the delivered video stream ID, so that the video stream server sends the video data to the other live broadcast clients.
Because the next anchor can send the video data to other live broadcast clients in the live broadcast room, both the live broadcast client of the current anchor and the live broadcast client of the audience can receive the video data sent by the next anchor. The live client can exchange the video data of the current anchor and the video data of the next anchor into the memory. And when the live broadcast client in the audience mode determines that the current audience is not the next main broadcast according to the wheat sequence list, the video data of the current main broadcast can be continuously played. And when the stop time is determined to arrive according to the stop time information, switching the video data of the current main broadcast into the video data of the next main broadcast according to the wheat sequence table for playing, thereby realizing the smooth transition of the video data and avoiding the situation of flow break.
When the client is live broadcast, corresponding video data can be acquired by using the video stream ID according to the progress of the stop time information.
Regarding to switching the video data of the current anchor to the video data of the next anchor for playing, a preset exit mode may be used to control the video data of the current anchor to exit from the screen for displaying, and a preset entry mode may be used to control the video data of the next anchor to enter from the screen for displaying. The preset entry mode may include any entry mode of appearance, fade-in, fly-in, float-in, and the like, and the preset exit mode includes any exit mode of disappearance, fade-out, fly-out, float-out, and the like.
Therefore, the video data of the current anchor is controlled to exit from the screen for display by adopting a preset exiting mode, and the video data of the next anchor is controlled to enter into the screen for display by adopting a preset entering mode, so that the video switching has a set display effect.
In one example, the video data of the current anchor is controlled to fade out from a screen to be displayed in a mode of increasing the transparency of the video data of the current anchor from low to high; and controlling the video data of the next anycast to be displayed in a fade-in mode from the screen by reducing the transparency of the video data of the next anycast from high to low.
Therefore, in the embodiment, the video data of the current anchor is quitted in the fade-out display mode, and the video data of the next anchor is entered in the fade-in display mode, so that seamless switching of video streams is realized, visual enjoyment is brought to users, and quitting and entering are not abrupt.
The various technical features in the above embodiments can be arbitrarily combined, so long as there is no conflict or contradiction between the combinations of the features, but the combination is limited by the space and is not described one by one, and therefore, any combination of the various technical features in the above embodiments also belongs to the scope disclosed in the present specification.
One of these combinations is described below. As shown in fig. 3A, fig. 3A is a timing diagram illustrating a video stream switching method according to an exemplary embodiment of the present application. As shown in fig. 3B, fig. 3B is a diagram illustrating an application scenario according to an exemplary embodiment of the present application. The application scene comprises a current anchor terminal, a service terminal, a viewer terminal and a next anchor terminal. The method can be applied in the scenario as shown in fig. 3B, and comprises the following steps:
1. a live client in anchor mode (which may also be referred to as a current anchor) captures and presents first video data.
2. The current anchor terminal uploads the collected first video data to the server terminal so as to send the first video data to other live broadcast client terminals of the live broadcast room through the server terminal.
3. The server sends the first video data to other live clients of the live broadcast room (the other live clients include the audience in audience mode and the next anchor).
4. The next anycast end presents the first video data.
5. The audience terminal displays the first video data.
6. And when the current anchor end receives the stop command, acquiring countdown time and starting countdown. The countdown time is the time when the uploading of the video data is stopped after a preset delay.
7. And the current anchor side sends the countdown time to the server side so as to send the countdown time to other live broadcast clients of the live broadcast room through the server side.
8. And the server side sends the countdown time to the audience side and the next anchor side of the live broadcast room.
9. And the next anycast terminal receives the countdown time, switches to the main broadcasting mode when the current user is determined to be the next anycast according to the wheat sequence table, and collects and displays the second video data before the countdown is finished based on the countdown time.
10. And the next arbitrary main broadcasting terminal sends the second video data to the server terminal so as to send the second video data to other live broadcasting clients of the live broadcasting room through the server terminal.
11. And the server side sends the second video data to the audience side.
12. And the server side sends the second video data to the current anchor side.
13. And the audience end receives the information of the stop broadcasting time, determines that the current user is not the next any main broadcasting according to the wheat sequence table, determines that the countdown is finished based on the countdown time, and switches the first video data of the current main broadcasting into the second video data of the next any main broadcasting for broadcasting.
14. And when the current anchor determines that the countdown is finished based on the countdown time, stopping uploading the video data, switching the first video data of the current anchor into the second video data of the next anchor for playing, and switching to the audience mode.
For convenience of understanding, the application also provides an effect display diagram. As shown in fig. 3C, fig. 3C is a schematic view of a video presentation before the countdown is completed according to an exemplary embodiment of the present application. Fig. 3D is a schematic diagram illustrating video switching at the end of a countdown period according to an example embodiment. And before the countdown is finished, the current anchor end and the audience end display the video data of the current anchor. And if the next anycast terminal is switched to the main broadcast mode, the next anycast terminal displays the video data collected by the local terminal. When the countdown is finished, the last frame image of the current anchor at the end of the countdown and the first frame image of the next anchor at the end of the countdown are stored at both the current anchor end and the audience end, so that the last frame image can be displayed in a fade-out mode, and the first frame image can be displayed in a fade-in mode, so that the smooth transition of video switching is realized, and visual enjoyment is brought to users.
As can be seen from the above embodiments, in this embodiment, when a live client is in a main broadcasting mode, the off-air time information is acquired, the off-air time information is sent to other live clients in a live broadcasting room, and when it is determined that the off-air time arrives according to the off-air time information, uploading of video data is stopped; when the live broadcast client is in a spectator mode, playing video data of a current anchor; receiving the information of the off-air time, and switching to an on-air mode when the current audience is determined to be the next main air according to the wheat sequence table; and when the current audience is determined not to be the next main broadcast according to the wheat sequence list and the stop time is determined to reach according to the stop time information, switching the video data of the current main broadcast into the video data of the next main broadcast according to the wheat sequence list for playing, thereby realizing smooth transition of the video data and avoiding the situation of cut-off. Moreover, due to the fact that switching is conducted at the live broadcast client, the work of the server is not changed, the server does not need to be changed, and the problem that the cost is high due to the change of the server is solved.
In addition, the present application also provides another video switching method, as shown in fig. 4, fig. 4 is a flowchart of another video stream switching method shown in the present application according to an exemplary embodiment, where the method may be applied in a video stream server, and the method includes steps 401 and 404:
in step 401, off-air time information and video data uploaded by a current anchor is received.
The off-air time information may be off-air time or countdown time from the current time. The off-air time information shown in this embodiment is the same as the off-air time information related technology shown in fig. 2, and is not described in detail here.
It can be understood that after receiving the video data uploaded by the current anchor, the video data can be sent to other live broadcast clients in the live broadcast room, and the other live broadcast clients can live broadcast the video data of the current anchor.
In step 402, the stop time information is sent to the next anchor according to a wheat sequence table, where anchor identifiers of different anchors are recorded in the wheat sequence table according to the wheat turn sequence.
In step 403, video data uploaded by the next anycast is received.
And the next anycast can enter a pre-starting state before the off-air time is reached according to the off-air time information, acquire video data and send the video data acquired by the next anycast to other live broadcast clients of the live broadcast room through the server.
In step 404, when it is determined that the off-air time reaches according to the off-air time information, the video data of the current anchor is switched to the video data of the next anchor, and the video data is sent to other live broadcast clients in the live broadcast room.
And continuously sending the video data of the current anchor to other live broadcast clients of the live broadcast room before the stop time is determined to reach according to the stop time information, and sending the video data of the next anchor to other live broadcast clients of the live broadcast room when the stop time is reached.
As can be seen from the above embodiments, in the present embodiment, video data switching is performed on the server side, so that smooth transition of video data is realized, and a situation of flow interruption is avoided.
Corresponding to the embodiment of the video stream switching method, the application also provides an embodiment of a video stream switching device and an electronic device applied by the video stream switching device.
As shown in fig. 5, fig. 5 is a block diagram of a video stream switching apparatus according to an exemplary embodiment, where the apparatus is provided at a live client, and includes:
when the live client is in a main play mode,
the information sending module 51 is used for sending the acquired video data to other live broadcast clients in the live broadcast room;
a video playing module 52, configured to display the video data;
an information acquisition module 53, configured to acquire off-air time information;
the information sending module 51 is further configured to send the off-air time information to other live broadcast clients in a live broadcast room;
an information determining module 54, configured to notify the information sending module 51 to stop sending video data when it is determined that the off-air time arrives according to the off-air time information;
while the live client is in viewer mode,
the video playing module 52 is configured to play video data of a current anchor;
an information receiving module 55, configured to receive the off-air time information;
the information determining module 51 is further configured to notify the mode switching module 56 to switch the current mode to the anchor mode when the current viewer is determined to be the next anchor according to the wheat sequence table;
the information determining module 54 is further configured to, when it is determined that the current viewer is not the next main broadcast according to the wheat sequence table, determine that the off-air time arrives according to the off-air time information, notify the video playing module 52 to switch the video data of the current main broadcast to the video data of the next main broadcast according to the wheat sequence table for playing;
wherein, the wheat sequence list records the anchor marks of different anchors according to the wheat turn-round sequence.
In an optional implementation manner, the video playing module 52 is specifically configured to:
controlling the video data of the current anchor to fade out and display from a screen in a mode of improving the transparency of the video data of the current anchor from low to high;
and controlling the video data of the next anycast to be displayed in a fade-in mode from the screen by reducing the transparency of the video data of the next anycast from high to low.
In an alternative implementation, the off-air time information is an off-air time or a countdown time from a current time.
In an optional implementation manner, the video playing module 52 is further configured to switch, when the video data is stopped to be uploaded, the video data of the current anchor to the video data of the next anchor according to the wheat sequence table for playing; the mode switching module 56 is further configured to switch the current mode to the viewer mode when the uploading of the video data is stopped.
As shown in fig. 6, fig. 6 is a block diagram of another video stream switching apparatus according to an exemplary embodiment shown in the present application, where the apparatus is provided in a server and includes:
the information receiving module 61 is used for receiving the off-air time information and the video data uploaded by the current main air;
the information sending module 62 is configured to send the stop time information to a next anchor according to a wheat sequence table, where the wheat sequence table records anchor identifiers of different anchors according to a wheat turn sequence;
the information receiving module 61 is further configured to receive video data uploaded by a next anchor;
and the information judgment module 63 is configured to notify the information sending module 62 to switch the video data of the current anchor to the video data of the next anchor when it is determined that the off-air time reaches according to the off-air time information, and send the video data to other live broadcast clients in the live broadcast room.
Correspondingly, the present disclosure also provides an electronic device, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
when the live broadcast client is in a main broadcast mode, transmitting the acquired video data to other live broadcast clients of a live broadcast room, and displaying the video data; acquiring the information of the off-air time, sending the information of the off-air time to other live broadcast clients of a live broadcast room, and stopping uploading video data when the off-air time is determined to be reached according to the information of the off-air time;
when the live broadcast client is in a spectator mode, playing video data of a current anchor; receiving the off-air time information, and switching to an on-air mode when the current audience is determined to be the next main air according to the wheat sequence table; when the current audience is determined not to be the next anycast according to the wheat sequence list and the stop time is determined to reach according to the stop time information, switching the video data of the current anycast into the video data of the next anycast according to the wheat sequence list for playing;
wherein, the wheat sequence list records the anchor marks of different anchors according to the wheat turn-round sequence.
The specific details of the implementation process of the functions and actions of each module in the device are referred to the implementation process of the corresponding step in the method, and are not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
As shown in fig. 7, fig. 7 is a block diagram of an apparatus 700 for video stream switching according to an exemplary embodiment of the present disclosure. The apparatus 700 may be a mobile phone with routing capability, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
Referring to fig. 7, apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the apparatus 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of device 700, the change in position of device 700 or one of the components of device 700, the presence or absence of user contact with device 700, the orientation or acceleration/deceleration of device 700, and the change in temperature of device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the device 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Wherein the instructions in the storage medium, when executed by the processor, enable the apparatus 700 to perform a video stream switching method, the method applied to a live client, comprising:
when the live broadcast client is in a main broadcast mode, transmitting the acquired video data to other live broadcast clients of a live broadcast room, and displaying the video data; acquiring the information of the off-air time, sending the information of the off-air time to other live broadcast clients of a live broadcast room, and stopping uploading video data when the off-air time is determined to be reached according to the information of the off-air time;
when the live broadcast client is in a spectator mode, playing video data of a current anchor; receiving the off-air time information, and switching to an on-air mode when the current audience is determined to be the next main air according to the wheat sequence table; when the current audience is determined not to be the next anycast according to the wheat sequence list and the stop time is determined to reach according to the stop time information, switching the video data of the current anycast into the video data of the next anycast according to the wheat sequence list for playing;
wherein, the wheat sequence list records the anchor marks of different anchors according to the wheat turn-round sequence.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims (10)
1. A video stream switching method is applied to a live client and comprises the following steps:
when the live broadcast client is in a main broadcast mode, transmitting the acquired video data to other live broadcast clients of a live broadcast room, and displaying the video data; acquiring the information of the off-air time set by a main broadcasting user, sending the information of the off-air time to other live broadcasting clients of a live broadcasting room, and stopping uploading video data when the off-air time is determined to be reached according to the information of the off-air time;
when the live broadcast client is in a spectator mode, playing video data of a current anchor; receiving the off-air time information, switching to an on-air mode when the current audience is determined to be the next main air according to the wheat sequence table, and uploading collected video data; when the current audience is determined not to be the next anycast according to the wheat sequence list and the stop time is determined to reach according to the stop time information, switching the video data of the current anycast into the video data of the next anycast according to the wheat sequence list for playing;
the method comprises the steps that the wheat sequence list records anchor marks of different anchor casts according to the wheat turn sequence, the video data of the current anchor cast are controlled to quit from a screen to be displayed in a preset quitting mode during switching, and the video data of the next anchor cast are controlled to enter into the screen to be displayed in a preset entering mode.
2. The method of claim 1, wherein the off-air time information is an off-air time or a countdown time from a current time.
3. The method of claim 1, further comprising:
and when the video data is stopped to be uploaded, switching the video data of the current main broadcast into the video data of the next main broadcast according to the wheat sequence list for playing, and switching to a viewer mode.
4. The method according to any one of claims 1 to 3, wherein switching the video data of the current anchor to the video data of the next anchor for playing comprises:
controlling the video data of the current anchor to fade out and display from a screen in a mode of improving the transparency of the video data of the current anchor from low to high;
and controlling the video data of the next anycast to be displayed in a fade-in mode from the screen by reducing the transparency of the video data of the next anycast from high to low.
5. The method according to any one of claims 1 to 3, further comprising:
and after the stop time information is sent and before the uploading of the video data is stopped, if the existence of the next anchor and the video data of the next anchor are determined according to the wheat sequence list, outputting a reminding message of the failure of the wheat wheeling.
6. A video stream switching method is applied to a server and comprises the following steps:
receiving the stop time information and the video data uploaded by the current main broadcast;
sending the stop broadcasting time information to a next anchor according to a wheat sequence table, wherein anchor identifications of different anchors are recorded in the wheat sequence table according to the wheat turn sequence;
receiving video data uploaded by the next anycast;
and when the stop time is determined to reach according to the stop time information, switching the video data of the current anchor into the video data of the next anchor, and sending the video data to other live broadcast clients of the live broadcast room, wherein a preset exit mode is adopted to control the video data of the current anchor to exit from the screen for display during switching, and a preset entry mode is adopted to control the video data of the next anchor to enter into the screen for display.
7. The utility model provides a video stream auto-change over device which characterized in that, live client is located to the device, includes:
when the live client is in a main play mode,
the information sending module is used for sending the acquired video data to other live broadcast clients of the live broadcast room;
the video playing module is used for displaying the video data;
the information acquisition module is used for acquiring the off-air time information set by the anchor user;
the information sending module is also used for sending the off-air time information to other live broadcast clients of a live broadcast room;
the information judging module is used for informing the information sending module to stop sending the video data when the broadcasting stop time is determined to reach according to the broadcasting stop time information;
while the live client is in viewer mode,
the video playing module is used for playing video data of the current anchor;
the information receiving module is used for receiving the off-air time information;
the information judgment module is also used for informing the mode switching module to switch the current mode to the main broadcasting mode when the current audience is determined to be the next main broadcasting according to the wheat sequence table, and the information sending module uploads the collected video data;
the information judgment module is further used for determining that the current audience is not the next anchor according to the wheat sequence list, and informing the video playing module to switch the video data of the current anchor into the video data of the next anchor for playing according to the wheat sequence list when the stop time is determined to be reached according to the stop time information;
the method comprises the steps that the wheat sequence list records anchor marks of different anchor casts according to the wheat turn sequence, the video data of the current anchor cast are controlled to quit from a screen to be displayed in a preset quitting mode during switching, and the video data of the next anchor cast are controlled to enter into the screen to be displayed in a preset entering mode.
8. The apparatus of claim 7, wherein the video playing module is specifically configured to:
controlling the video data of the current anchor to fade out and display from a screen in a mode of improving the transparency of the video data of the current anchor from low to high;
and controlling the video data of the next anycast to be displayed in a fade-in mode from the screen by reducing the transparency of the video data of the next anycast from high to low.
9. A video stream switching apparatus, wherein the apparatus is provided in a server, comprising:
the information receiving module is used for receiving the off-air time information and the video data uploaded by the current main air;
the information sending module is used for sending the stop time information to a next anchor according to a wheat sequence table, and the wheat sequence table records anchor identifications of different anchors according to a wheat turn sequence;
the information receiving module is also used for receiving video data uploaded by the next anchor;
and the information judgment module is used for informing the information sending module to switch the video data of the current anchor into the video data of the next anchor according to the stop time information when the stop time is up, sending the video data to other live broadcast clients in a live broadcast room, controlling the video data of the current anchor to exit from a screen for display by adopting a preset exit mode during switching, and controlling the video data of the next anchor to enter into the screen for display by adopting a preset entry mode.
10. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the live broadcast client is in a main broadcast mode, transmitting the acquired video data to other live broadcast clients of a live broadcast room, and displaying the video data; acquiring the information of the off-air time set by a main broadcasting user, sending the information of the off-air time to other live broadcasting clients of a live broadcasting room, and stopping uploading video data when the off-air time is determined to be reached according to the information of the off-air time;
when the live broadcast client is in a spectator mode, playing video data of a current anchor; receiving the off-air time information, switching to an on-air mode when the current audience is determined to be the next main air according to the wheat sequence table, and uploading collected video data; when the current audience is determined not to be the next anycast according to the wheat sequence list and the stop time is determined to reach according to the stop time information, switching the video data of the current anycast into the video data of the next anycast according to the wheat sequence list for playing;
the method comprises the steps that the wheat sequence list records anchor marks of different anchor casts according to the wheat turn sequence, the video data of the current anchor cast are controlled to quit from a screen to be displayed in a preset quitting mode during switching, and the video data of the next anchor cast are controlled to enter into the screen to be displayed in a preset entering mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710209977.8A CN106937131B (en) | 2017-03-31 | 2017-03-31 | Video stream switching method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710209977.8A CN106937131B (en) | 2017-03-31 | 2017-03-31 | Video stream switching method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106937131A CN106937131A (en) | 2017-07-07 |
CN106937131B true CN106937131B (en) | 2021-02-19 |
Family
ID=59425523
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710209977.8A Active CN106937131B (en) | 2017-03-31 | 2017-03-31 | Video stream switching method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106937131B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108989855A (en) * | 2018-07-06 | 2018-12-11 | 武汉斗鱼网络科技有限公司 | A kind of advertisement cut-in method, device, equipment and medium |
CN110740386B (en) * | 2018-07-18 | 2021-07-30 | 腾讯科技(深圳)有限公司 | Live broadcast switching method and device and storage medium |
CN111711830B (en) * | 2020-06-19 | 2022-08-05 | 广州市百果园信息技术有限公司 | Live broadcast bit supplementing method and device, server and storage medium |
CN111836074B (en) * | 2020-07-23 | 2022-09-09 | 北京达佳互联信息技术有限公司 | Live wheat-connecting method and device, electronic equipment and storage medium |
CN112511845B (en) * | 2020-10-27 | 2023-03-28 | 百果园技术(新加坡)有限公司 | Live broadcast wheat arrangement method, device, server and storage medium |
CN112738540B (en) * | 2020-12-25 | 2023-09-05 | 广州虎牙科技有限公司 | Multi-device live broadcast switching method, device, system, electronic device and readable storage medium |
CN112788358B (en) * | 2020-12-31 | 2022-02-18 | 腾讯科技(深圳)有限公司 | Video live broadcast method, video sending method, device and equipment for game match |
CN113422972B (en) * | 2021-06-03 | 2023-04-07 | 五八到家有限公司 | Live broadcast picture switching method and device, electronic equipment and readable medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100596157C (en) * | 2005-12-29 | 2010-03-24 | 华为技术有限公司 | Method for realizing stream media switching and stream media server |
JP5044149B2 (en) * | 2006-02-10 | 2012-10-10 | ソフトバンクBb株式会社 | Program broadcasting method and program broadcasting system |
CN101193101A (en) * | 2006-11-22 | 2008-06-04 | 中兴通讯股份有限公司 | A media stream transmission/switching system |
CN103281566B (en) * | 2013-06-13 | 2016-09-14 | 天脉聚源(北京)传媒科技有限公司 | A kind of method and device of video switching |
CN104333799B (en) * | 2014-11-14 | 2018-02-23 | 广州华多网络科技有限公司 | A kind of methods, devices and systems of channel switch |
CN106488255B (en) * | 2016-10-24 | 2019-05-14 | 广州酷狗计算机科技有限公司 | A kind of method and device of switching media stream |
CN106488254B (en) * | 2016-11-16 | 2019-09-10 | 广州华多网络科技有限公司 | A kind of method and system that screen switching is broadcast live |
-
2017
- 2017-03-31 CN CN201710209977.8A patent/CN106937131B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106937131A (en) | 2017-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106937131B (en) | Video stream switching method, device and equipment | |
CN111818359B (en) | Processing method and device for live interactive video, electronic equipment and server | |
CN106534953B (en) | Video rebroadcasting method in live broadcast application and control terminal | |
CN106791893B (en) | Video live broadcasting method and device | |
CN109151537B (en) | Video processing method and device, electronic equipment and storage medium | |
WO2017181551A1 (en) | Video processing method and device | |
US9736518B2 (en) | Content streaming and broadcasting | |
CN108260016A (en) | Processing method, device, equipment, system and storage medium is broadcast live | |
US9756373B2 (en) | Content streaming and broadcasting | |
CN111343476A (en) | Video sharing method and device, electronic equipment and storage medium | |
CN111641839B (en) | Live broadcast method and device, electronic equipment and storage medium | |
JP2016535351A (en) | Video information sharing method, apparatus, program, and recording medium | |
CN109039872B (en) | Real-time voice information interaction method and device, electronic equipment and storage medium | |
CN107197320B (en) | Video live broadcast method, device and system | |
CN109151565B (en) | Method and device for playing voice, electronic equipment and storage medium | |
CN111182328B (en) | Video editing method, device, server, terminal and storage medium | |
CN111866531A (en) | Live video processing method and device, electronic equipment and storage medium | |
CN109361946A (en) | The display methods and device of barrage information | |
CN107743244A (en) | Net cast method and device | |
CN105407368A (en) | Multimedia playing method, device and system | |
CN110191367B (en) | Information synchronization processing method and device and electronic equipment | |
CN112468873A (en) | Picture display method, device, system, electronic equipment, server and medium | |
CN110620956A (en) | Live broadcast virtual resource notification method and device, electronic equipment and storage medium | |
CN114268823A (en) | Video playing method and device, electronic equipment and storage medium | |
CN107872620B (en) | Video recording method and device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210108 Address after: 511442 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province Applicant after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd. Address before: 511442 24 floors, B-1 Building, Wanda Commercial Square North District, Wanbo Business District, 79 Wanbo Second Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province Applicant before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |