CN106686394A - Video switching method and apparatus - Google Patents

Video switching method and apparatus Download PDF

Info

Publication number
CN106686394A
CN106686394A CN201611250027.1A CN201611250027A CN106686394A CN 106686394 A CN106686394 A CN 106686394A CN 201611250027 A CN201611250027 A CN 201611250027A CN 106686394 A CN106686394 A CN 106686394A
Authority
CN
China
Prior art keywords
video
source
video data
service end
broadcast
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611250027.1A
Other languages
Chinese (zh)
Other versions
CN106686394B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201611250027.1A priority Critical patent/CN106686394B/en
Publication of CN106686394A publication Critical patent/CN106686394A/en
Application granted granted Critical
Publication of CN106686394B publication Critical patent/CN106686394B/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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • H04N21/6587Control parameters, e.g. trick play commands, viewpoint selection

Landscapes

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

Abstract

An embodiment of the invention provides a video switching method and apparatus applicable to a client. The method comprises the steps of receiving a switching request for switching from a first video to a second video during the playing of first video data, the first video data corresponding to the first video as a target host source, and the second video corresponding to a first candidate source determined from a target candidate source corresponding to the target host source; sending a switching instruction to a server according to the switching request; receiving second video data fed back by the server according to the switching instruction, the second video data corresponding to the second video; and stopping the first video data and playing the second video data to achieve switching from the first video to the second video. The application scheme according to the embodiment of the invention can be used for coping with an emergent event at a live scene and reducing the potential risk of live broadcast.

Description

A kind of video switching method and device
Technical field
The present invention relates to video display arts field, more particularly to a kind of video switching method and device.
Background technology
Using the advantage of the Internet, the online live mode of video is broadcast live on the net, can by celebration activity, The content sites such as related meeting, dialogue interview, online training are published on the Internet, using the Internet quick, performance shape directly perceived The features such as formula is good, abundant in content, interactivity is strong, region is unrestricted, audient can divide, strengthens the promotion effect of site of activity.
At present, under scene live at the scene, live side is typically all collection in worksite is arrived reality by traditional mode When picture be directly pushed to spectators carry out it is live, but inevitably, it is live scene it may happen that some discordant fields Face, such as live someone deliberately delivers the speech of malice, if these are discord, scene is gone out by live, it will damage live side Image.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of video switching method and device, to tackle the burst at live scene Event, reduces live potential risk.Concrete technical scheme is as follows:
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of video switching method, is applied to client, the side Method includes:
During the first video data is played, the first video is switched to the handover request of the second video for reception, wherein, First video data is:Used as the corresponding video data of the first video in target main broadcaster source, second video is:From institute The corresponding target in target main broadcaster source is stated for broadcasting determine in source first for the corresponding video in source is broadcast;
According to the handover request, to service end switching command is sent;
The second video data that the service end is fed back according to the switching command is received, wherein, second video counts According to for:The corresponding video data of second video;
Stop playing first video data, and play second video data, realize from first video to The switching of second video.
Optionally, methods described also includes:
The sectional drawing of the service end feedback is received, wherein, the sectional drawing is:Corresponding each target in the target main broadcaster source The standby current sectional drawing for broadcasting live video corresponding to source;
Described first standby broadcast source and is:Determined from standby the broadcasting in source of the corresponding target in the target main broadcaster source according to the sectional drawing 's.
Optionally, methods described also includes:
During the first video data is played, the first acquisition for sending the 3rd video data of acquisition to the service end refers to Order, wherein, the 3rd video data is:The second standby video data for broadcasting corresponding 3rd video in source, described second standby broadcasts source For:Source is broadcast from the corresponding target in the target main broadcaster source for the standby of determination in source is broadcast;
The service end is received according to the described first the 3rd video data for obtaining instruction feedback;
According to default first video and the 3rd video in the position relationship in the client terminal playing region, broadcast Put first video data and the 3rd video data.
Optionally, methods described also includes:
The second acquisition instruction of the channel information for obtaining the first channel is sent to the service end, wherein, the channel letter Breath is included:Main broadcaster's source information of first channel and standby broadcast source information;
The service end is received according to the described second channel information for obtaining instruction feedback.
Optionally, methods described also includes:
It is space-time in the channel information, to the service end establishment instruction for first channel is sent, so that The service end creates first channel;
The setting instruction for broadcast source is sent to the service end, so that the service end is first channel setting Main broadcaster source and standby broadcast source;
The 4th video data that the service end sends is received, and plays the 4th video data, wherein, the described 4th Video data is:The service end carries out encoding the video data for obtaining to the corresponding video in main broadcaster source of first channel.
Optionally, second video data is:The service end is receiving the handover request that the client sends Encode the video data for completing in advance before.
To reach above-mentioned purpose, the embodiment of the invention also discloses a kind of video switching device, is applied to client, it is described Device includes:
First receiver module, for during the first video data is played, the first video to be switched to second to regard by reception The handover request of frequency, wherein, first video data is:As the corresponding video data of the first video in target main broadcaster source, Second video is:From the corresponding target in the target main broadcaster source is standby determine in source first is broadcast for the corresponding video in source is broadcast;
First sending module, for according to the handover request, to service end switching command being sent;
Second receiver module, for receiving the second video data that the service end is fed back according to the switching command, its In, second video data is:The corresponding video data of second video;
Handover module, for stopping playing first video data, and plays second video data, realizes from institute The first video is stated to the switching of second video.
Optionally, described device also includes:
3rd receiver module, for receiving the sectional drawing of the service end feedback, wherein, the sectional drawing is:The target master Broadcast the standby current sectional drawing for broadcasting live video corresponding to source of corresponding each target in source;
Described first standby broadcast source and is:Determined from standby the broadcasting in source of the corresponding target in the target main broadcaster source according to the sectional drawing 's.
Optionally, described device also includes:
Second sending module, for during the first video data is played, sending acquisition the 3rd to the service end and regarding First acquisition instruction of frequency evidence, wherein, the 3rd video data is:The second standby video counts for broadcasting corresponding 3rd video in source According to described second standby broadcast source and be:Source is broadcast from the corresponding target in the target main broadcaster source for the standby of determination in source is broadcast;
4th receiver module, for receiving the service end according to the described first the 3rd video counts for obtaining instruction feedback According to;
Playing module, for according to default first video and the 3rd video in the client terminal playing region Position relationship, play first video data and the 3rd video data.
Optionally, described device also includes:
3rd sending module, the second acquisition for sending the channel information for obtaining the first channel to the service end refers to Order, wherein, the channel information is included:Main broadcaster's source information of first channel and standby broadcast source information;
5th receiver module, for receiving the service end according to the described second channel letter for obtaining instruction feedback Breath.
Optionally, it is characterised in that described device also includes:
4th sending module, for being space-time in the channel information, sends for the described first frequency to the service end The establishment instruction in road, so that the service end creates first channel;
5th sending module, for sending the setting instruction for broadcast source to the service end, so that the service end Main broadcaster source is set and for source is broadcast for first channel;
Playing module is received, for receiving the 4th video data that the service end sends, and the 4th video is played Data, wherein, the 4th video data is:The service end is compiled to the corresponding video in main broadcaster source of first channel The video data that code is obtained.
Optionally, second video data is:The service end is receiving the handover request that the client sends Encode the video data for completing in advance before.
In summary, video switching method provided in an embodiment of the present invention and device, client is playing the first video counts According to during, the first video is switched to receive user the handover request of the second video, wherein, the first video data is:As The corresponding video data of first video in target main broadcaster source, the second video is:Broadcast in source from the corresponding target in target main broadcaster source is standby It is determined that first standby broadcast the corresponding video in source;Switching command is sent to service end according to handover request;Service end is received according to cutting The second video data of instruction feedback is changed, wherein, the second video data is:The corresponding video data of second video;Stop playing First video data, and the second video data is played, realize from the first video to the switching of the second video.
It can be seen that, scheme provided in an embodiment of the present invention, be main broadcaster source arrange it is corresponding it is standby broadcast source, in main broadcaster source corresponding the When there is accident in one video, it is possible to use standby to broadcast corresponding second video in source to replace the first video, therefore, the present invention is real The scheme of example offer is provided, the accident at live scene can be tackled, reduce live potential risk.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of video switching method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural representation of video switching device provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
To solve prior art problem, a kind of video switching method and device are embodiments provided.First below A kind of video switching method provided the embodiment of the present invention is described in detail.
Fig. 1 is a kind of schematic flow sheet of video switching method provided in an embodiment of the present invention, and the method is applied to client End, including:
S101, during the first video data is played, the first video is switched to the handover request of the second video for reception.
Wherein, the first video data is:As the corresponding video data of the first video in target main broadcaster source, the second video For:From the corresponding target in target main broadcaster source is standby determine in source first is broadcast for the corresponding video in source is broadcast.
Can include that the mark of the second video, the second video are corresponding standby to broadcast the mark in source, etc., this reality in handover request Apply example not limit this.
It should be understood that the set of multiple broadcast source compositions can be considered as a channel, and one of them can be set Broadcast source is main broadcaster source, and remaining broadcast source is for source is broadcast.In the corresponding video display process in main broadcaster source, when user wants to cut When changing to other standby videos for broadcasting source and playing out, select in source one and standby broadcast source and replace as new main broadcaster source from standby can broadcasting Change current main broadcaster source, then current main broadcaster source with other it is standby broadcast source together be considered as the standby of new main broadcaster source and broadcast source, play new The corresponding video in main broadcaster source, such that it is able to realize the switching of video.
In practical application, during the video in main broadcaster source is played, service end can provide all for broadcasting corresponding to source Live video newest sectional drawing to client so that user can with more intuitive understanding each standby availability for broadcasting source and Current video content, so as to select suitable for broadcasting source to replace current main broadcaster source in source from each standby broadcasting.Specifically, take Business end can obtain all standby newest sectional drawings for broadcasting the live video corresponding to source using video interception encoder.
Therefore, client can also receive the sectional drawing of service end feedback, wherein, sectional drawing is:Target main broadcaster source is corresponding each The standby current sectional drawing for broadcasting live video corresponding to source of individual target.
In this case, first standby broadcast source and can be:Broadcast in source really from the corresponding target in target main broadcaster source is standby according to sectional drawing Fixed.
It should be understood that service end can feed back the standby current sectional drawing for broadcasting source according to default time interval to service end, Feed back after the instruction of the standby current sectional drawing for broadcasting source of acquisition that can also receive client transmission, the present embodiment does not do to this Limit.
S102, according to handover request, to service end switching command is sent.
Can include that the mark of the second video, the second video are corresponding standby to broadcast the mark in source, etc., this reality in switching command Apply example not limit this.
Because the video that client is played is pushed by service end, therefore, when client needs switching currently playing Video when, need to send switching command to service end, so that service end determines new main broadcaster source according to switching command, and will be new The video data of the corresponding video in main broadcaster source feed back to client and play out.
It should be understood that for service end, in actual video playback, the source signal for obtaining video first is needed, For example, source signal can be the video signal obtained with video capture equipment floor picture, or, from other servers Video signal for pulling, etc..After the source signal for obtaining video, it is necessary first to carry out input stream encryption to source signal, when When client will play the video, then to be input into stream encryption after source signal carry out export stream encryption obtain video data, then Video data is fed back to into client to play out.Specifically, service end can use source signal of the direct broadcast coder to video Carry out being input into stream encryption and output stream encryption.
So, in order to realize the seamless switching that video switches, during the video for playing main broadcaster source, service end just can be with Input stream encryption is carried out to all standby source signals for broadcasting the corresponding video in source, so, when client need with new main broadcaster source come When replacing current anchor source, it is not necessary to carry out input stream encryption to the source signal of the new corresponding video in main broadcaster source, and can be Directly the video data after input stream encryption is fed back to into client after output stream encryption to play out.
The mode that the input stream encryption and output stream encryption of this video is isolated, is not to carry out just being opened when video switches Begin that the video after switching is carried out to be input into stream encryption and output stream encryption, therefore, it can reduce the time required for video switching, Seamless switching is realized, broadcasting pictures are not in the phenomenon of cutout, so as to improve Consumer's Experience.
S103, receives the second video data that service end is fed back according to switching command.
Wherein, the second video data is:The corresponding video data of second video.
Seen from the above description, the second video data can be service end receive client transmission handover request it The video data that front advance coding is completed.
S104, stops playing the first video data, and plays the second video data, realizes from the first video to the second video Switching.
It can be seen that, when the video switching method that the present embodiment is provided is broadcast live, the mode flexibility and reliability of Switch Video, Reasonable control can be accomplished to the emergency case at scene;Meanwhile, the present embodiment is regarded using the pattern of service end and client The mode of frequency switching, compared with the traditional approach of video switching is carried out using special cut bank equipment, reduces cost, Hardware cost, video material cost of manufacture and maintenance cost including equipment for customizing.
In practical application, in the play area of client the corresponding video in main broadcaster source is only played, this play mode can be with It is considered as general mode, certainly, because user may also have other broadcasting demands, for example, corresponding video is broadcast in main broadcaster source Play for the corresponding video in source is broadcast simultaneously during putting, therefore client can also provide the play mode of picture-in-picture, to realize Multi-angle scene is carried out it is live, experience more preferably.
Specifically, the video switching method can also include:
During the first video data is played, the first acquisition instruction for obtaining the 3rd video data is sent to service end, Wherein, the 3rd video data is:The second standby video data for broadcasting corresponding 3rd video in source, second standby broadcast source and is:From target master Broadcast that the corresponding target in source is standby to be broadcast determine in source standby and broadcast source;
Service end is received according to the first the 3rd video data for obtaining instruction feedback;
According to default first video and the 3rd video in the position relationship in client terminal playing region, the first video counts are played According to the 3rd video data.
Wherein, the quantity of the 3rd video data that the present embodiment is obtained to client is not limited.
Exemplary, when the quantity of the 3rd video data that client is obtained is 1, default first video and the 3rd is regarded Frequently the position relationship in client terminal playing region can be:First video is in respectively to be distributed up and down in play area with the 3rd video Or left and right distribution;When the quantity of the 3rd video data that client is obtained is 3, default first video and the 3rd video are in visitor The position relationship of family end play area can be:First video is uniformly distributed in play area with 3 the 3rd videos in matrix pattern, Or, the first video occupies whole play area, 3 the 3rd videos and being covered on the first video and being distributed in play area In three zonules.
Further, in picture-in-picture play mode, to the corresponding video in main broadcaster source or standby can also broadcast that source is corresponding to be regarded Frequency is marked, in order to distinguish.For example, in the corresponding video playback area in main broadcaster source one asterisk of a certain position mark, or Person highlights, etc. to the corresponding video playback area in main broadcaster source, and the present embodiment is not limited the form of labelling.
In addition, under in order to avoid picture-in-picture play mode, the audio frequency of multiple videos plays the problem that can be interfered with each other simultaneously, It is broadcast state that client can also arrange the audio frequency of one of video, and the audio frequency of other videos is to forbid broadcast state. For example, the audio frequency for arranging the corresponding video in main broadcaster source is broadcast state, and the standby audio frequency for broadcasting the corresponding video in source is to forbid playing shape State.
In practical application, the video switching method can also include:
The second acquisition instruction of the channel information for obtaining the first channel is sent to service end, wherein, channel information is included:The Main broadcaster's source information of one channel and standby broadcast source information;
Service end is received according to the second channel information for obtaining instruction feedback.
Wherein, the second acquisition instruction can include the identification information of the first channel.Client can be to service end to one Existing channel is inquired about, and to obtain the details of the channel, for example, the main broadcaster source of the channel, standby broadcast source, is played mould Formula, main broadcaster source and standby broadcast whether source is currently carrying out coding work, etc..
It should be understood that the first channel can be the channel corresponding to above-mentioned first video, or other channels. When the channel corresponding to the first channel is the first video, send the second of the channel information for obtaining the first channel to service end and obtain The step of instruction fetch, performed before the step of the first video is switched to into the handover request of the second video is received.When the first frequency When road is other channels, the present embodiment is not limited to service end and sends the second step for obtaining the step of instructing and the switching of above-mentioned video Execution sequence between rapid.
Specifically, data base can be set in service end, to store the channel information of each channel, for example, service end makes With MySQL (Relational DBMS) as channel information locally stored medium.Service end is obtained according to second and referred to The identification information of the first channel in order, can determine the channel information of the first channel from data base, and feed back to client.
In practical application, when the first channel is not present or service end does not record the channel information of the first channel, service It is sky to hold according to the second channel information for obtaining instruction feedback.In this case, the video switching method can also include:
It is space-time in channel information, the establishment sent for the first channel to service end is instructed, so that service end creates the One channel;
Instruct to setting of the service end transmission for broadcast source, so that service end is the first channel arranges main broadcaster source and for broadcasting Source;
The 4th video data that service end sends is received, and plays the 4th video data, wherein, the 4th video data is: Service end carries out encoding the video data for obtaining to the corresponding video in main broadcaster source of the first channel.
Specifically, client is sending the establishment instruction for the first channel, and service end establishment first to service end After channel, client can be sent in the first channel the addition instruction for adding target broadcast source to service end, so that service end Target broadcast source is added in the second channel;Then client sends to service end arrange a certain broadcasting in target broadcast source again Put the setting that source is main broadcaster source to instruct, so that the broadcast source is set to main broadcaster source by service end, other broadcast sources are for source is broadcast.
Certainly, client is sending the establishment instruction for the first channel, and the frequency of service end establishment first to service end Behind road, client can send the setting instruction for being directed to broadcast source to service end, and in setting instruction the first frequency is may be embodied in The information of the broadcast source to be added in road, and configuration information of the wherein a certain broadcast source for main broadcaster source is set, so that service end It is added in the first channel according to the broadcast source that the setting instruction will be added, and main broadcaster source is therefrom set and for source is broadcast.
Service end is arranging main broadcaster source and for after broadcasting source, can start the coding to all target channel sources in the first channel Work, and the video data of the corresponding video in main broadcaster source after coding is fed back to into client, so that client terminal playing main broadcaster source pair The video answered.
When the channel information of the first channel of service end feedback is not space-time, if main broadcaster source and standby broadcasting source and currently entering Row coding work, then client can directly play the corresponding video in main broadcaster source, or to reset and play new behind main broadcaster source The corresponding video in main broadcaster source.If, currently without being encoded, client can be sent out to service end for main broadcaster source or standby source of broadcasting The instruction for starting main broadcaster source or the standby coding for broadcasting source is sent, so as to service end feeds back corresponding video data play out.
Certainly, during the corresponding video in main broadcaster source is played, user such as wants to switch off current key frame, can be with preview The standby current sectional drawing for broadcasting the corresponding live video in source of server feedback, selects suitable for broadcasting the corresponding video in source to replace Current video, then client send switching command to service end and carry out the switching of key frame.
In summary, the video switching method that the present embodiment is provided, client connects during the first video data is played The handover request that the first video is switched to user the second video is received, wherein, the first video data is:As target main broadcaster source The corresponding video data of first video, the second video is:It is standby for broadcast determination in source first from the corresponding target in target main broadcaster source Broadcast the corresponding video in source;Switching command is sent to service end according to handover request;Receive what service end was fed back according to switching command Second video data, wherein, the second video data is:The corresponding video data of second video;Stop playing the first video data, And the second video data is played, realize from the first video to the switching of the second video.
It can be seen that, the scheme that the present embodiment is provided is that the setting of main broadcaster source is corresponding for source is broadcast, and is regarded in main broadcaster source corresponding first Occur frequently existing accident when, it is possible to use it is standby to broadcast corresponding second video in source to replace the first video, therefore, the present embodiment is provided Scheme, the accident at live scene can be tackled, reduce live potential risk.
Corresponding with above-mentioned video switching method, the embodiment of the present invention additionally provides a kind of video switching device.
Corresponding with the embodiment of the method shown in Fig. 1, Fig. 2 is a kind of video switching device provided in an embodiment of the present invention Structural representation, the device is applied to client, can include:
First receiver module 201, for during the first video data is played, the first video to be switched to second by reception The handover request of video, wherein, first video data is:As the corresponding video counts of the first video in target main broadcaster source According to second video is:From the corresponding target in the target main broadcaster source, for broadcast determination in source first, for broadcasting, source is corresponding to be regarded Frequently;
First sending module 202, for according to the handover request, to service end switching command being sent;
Second receiver module 203, for receiving the second video data that the service end is fed back according to the switching command, Wherein, second video data is:The corresponding video data of second video;
Handover module 204, for stopping playing first video data, and plays second video data, realizes From first video to the switching of second video.
Specifically, described device can also include:
3rd receiver module (not shown), for receiving the sectional drawing of the service end feedback, wherein, the sectional drawing For:The standby current sectional drawing for broadcasting live video corresponding to source of corresponding each target in the target main broadcaster source;
Described first standby broadcast source and is:Determined from standby the broadcasting in source of the corresponding target in the target main broadcaster source according to the sectional drawing 's.
Specifically, described device can also include:
Second sending module (not shown), for during the first video data is played, sending out to the service end The the first acquisition instruction for obtaining the 3rd video data is sent, wherein, the 3rd video data is:Second standby broadcasts source the corresponding 3rd The video data of video, described second standby broadcast source and is:Broadcast from the corresponding target in the target main broadcaster source for the standby of determination in source is broadcast Source;
4th receiver module (not shown), instruction feedback is obtained for receiving the service end according to described first 3rd video data;
Playing module (not shown), for according to default first video and the 3rd video in the visitor The position relationship of family end play area, plays first video data and the 3rd video data.
Specifically, described device can also include:
3rd sending module (not shown), for sending the channel information for obtaining the first channel to the service end Second obtains instruction, wherein, the channel information is included:Main broadcaster's source information of first channel and standby broadcast source information;
5th receiver module (not shown), instruction feedback is obtained for receiving the service end according to described second The channel information.
Specifically, described device may also include:
4th sending module (not shown), for being space-time in the channel information, to the service end pin is sent Establishment to first channel is instructed, so that the service end creates first channel;
5th sending module (not shown), for sending the setting instruction for broadcast source to the service end, with Make the service end and main broadcaster source is set and for source is broadcast for first channel;
Playing module (not shown) is received, for receiving the 4th video data that the service end sends, and is played 4th video data, wherein, the 4th video data is:Main broadcaster source correspondence of the service end to first channel Video carry out encoding the video data for obtaining.
Specifically, second video data can be:The service end is receiving the switching that the client sends Encode the video data for completing before request in advance.
In summary, the video switching device that the present embodiment is provided, client connects during the first video data is played The handover request that the first video is switched to user the second video is received, wherein, the first video data is:As target main broadcaster source The corresponding video data of first video, the second video is:It is standby for broadcast determination in source first from the corresponding target in target main broadcaster source Broadcast the corresponding video in source;Switching command is sent to service end according to handover request;Receive what service end was fed back according to switching command Second video data, wherein, the second video data is:The corresponding video data of second video;Stop playing the first video data, And the second video data is played, realize from the first video to the switching of the second video.
It can be seen that, the scheme that the present embodiment is provided is that the setting of main broadcaster source is corresponding for source is broadcast, and is regarded in main broadcaster source corresponding first Occur frequently existing accident when, it is possible to use it is standby to broadcast corresponding second video in source to replace the first video, therefore, the present embodiment is provided Scheme, the accident at live scene can be tackled, reduce live potential risk.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating In any this actual relation or order.And, term " including ", "comprising" or its any other variant are intended to Nonexcludability is included, so that a series of process, method, article or equipment including key elements not only will including those Element, but also including other key elements being not expressly set out, or also include for this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of correlation, identical similar portion between each embodiment Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.Especially for device reality For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
Presently preferred embodiments of the present invention is the foregoing is only, protection scope of the present invention is not intended to limit.It is all Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention It is interior.

Claims (12)

1. a kind of video switching method, it is characterised in that be applied to client, methods described includes:
During the first video data is played, the first video is switched to the handover request of the second video for reception, wherein, it is described First video data is:Used as the corresponding video data of the first video in target main broadcaster source, second video is:From the mesh The corresponding target in mark main broadcaster source is standby to broadcast determine in source first for the corresponding video in source is broadcast;
According to the handover request, to service end switching command is sent;
The second video data that the service end is fed back according to the switching command is received, wherein, second video data is: The corresponding video data of second video;
Stop playing first video data, and play second video data, realize from first video to described The switching of the second video.
2. method according to claim 1, it is characterised in that methods described also includes:
The sectional drawing of the service end feedback is received, wherein, the sectional drawing is:Corresponding each target in the target main broadcaster source is standby to be broadcast The current sectional drawing of live video corresponding to source;
Described first standby broadcast source and is:Broadcast what is determined in source from the corresponding target in the target main broadcaster source is standby according to the sectional drawing.
3. method according to claim 1, it is characterised in that methods described also includes:
During the first video data is played, the first acquisition instruction for obtaining the 3rd video data is sent to the service end, Wherein, the 3rd video data is:The second standby video data for broadcasting corresponding 3rd video in source, described second standby broadcast source and is: Source is broadcast from the corresponding target in the target main broadcaster source for the standby of determination in source is broadcast;
The service end is received according to the described first the 3rd video data for obtaining instruction feedback;
According to default first video and the 3rd video in the position relationship in the client terminal playing region, institute is played State the first video data and the 3rd video data.
4. method according to claim 1, it is characterised in that methods described also includes:
The second acquisition instruction of the channel information for obtaining the first channel is sent to the service end, wherein, the channel information bag Contain:Main broadcaster's source information of first channel and standby broadcast source information;
The service end is received according to the described second channel information for obtaining instruction feedback.
5. method according to claim 4, it is characterised in that methods described also includes:
It is space-time in the channel information, the establishment instruction for first channel is sent to the service end, so that described Service end creates first channel;
The setting instruction for broadcast source is sent to the service end, so that the service end is first channel arranges main broadcaster Source and standby broadcast source;
The 4th video data that the service end sends is received, and plays the 4th video data, wherein, the 4th video Data are:The service end carries out encoding the video data for obtaining to the corresponding video in main broadcaster source of first channel.
6. the method according to any one of claim 1-5, it is characterised in that second video data is:The service Hold and encoded the video data for completing in advance before the switching command that the client sends is received.
7. a kind of video switching device, it is characterised in that be applied to client, described device includes:
First receiver module, for during the first video data is played, the first video to be switched to the second video by reception Handover request, wherein, first video data is:It is described as the corresponding video data of the first video in target main broadcaster source Second video is:From the corresponding target in the target main broadcaster source is standby determine in source first is broadcast for the corresponding video in source is broadcast;
First sending module, for according to the handover request, to service end switching command being sent;
Second receiver module, for receiving the second video data that the service end is fed back according to the switching command, wherein, institute Stating the second video data is:The corresponding video data of second video;
Handover module, for stopping playing first video data, and plays second video data, realizes from described the Switching of one video to second video.
8. device according to claim 7, it is characterised in that described device also includes:
3rd receiver module, for receiving the sectional drawing of the service end feedback, wherein, the sectional drawing is:The target main broadcaster source The standby current sectional drawing for broadcasting live video corresponding to source of corresponding each target;
Described first standby broadcast source and is:Broadcast what is determined in source from the corresponding target in the target main broadcaster source is standby according to the sectional drawing.
9. device according to claim 7, it is characterised in that described device also includes:
Second sending module, for during the first video data is played, sending to the service end and obtaining the 3rd video counts According to first acquisition instruction, wherein, the 3rd video data is:The second standby video data for broadcasting corresponding 3rd video in source, Described second standby broadcast source and is:Source is broadcast from the corresponding target in the target main broadcaster source for the standby of determination in source is broadcast;
4th receiver module, for receiving the service end according to the described first the 3rd video data for obtaining instruction feedback;
Playing module, for according to default first video and the 3rd video the client terminal playing region position Relation is put, first video data and the 3rd video data is played.
10. device according to claim 7, it is characterised in that described device also includes:
3rd sending module, for sending the second acquisition instruction of the channel information for obtaining the first channel to the service end, its In, the channel information is included:Main broadcaster's source information of first channel and standby broadcast source information;
5th receiver module, for receiving the service end according to the described second channel information for obtaining instruction feedback.
11. devices according to claim 10, it is characterised in that described device also includes:
4th sending module, for being space-time in the channel information, sends for first channel to the service end Instruction is created, so that the service end creates first channel;
5th sending module, for sending the setting instruction for broadcast source to the service end, so that the service end is institute State the first channel and main broadcaster source is set and for source is broadcast;
Playing module is received, for receiving the 4th video data that the service end sends, and the 4th video data is played, Wherein, the 4th video data is:The service end carries out encoding to the corresponding video in main broadcaster source of first channel The video data for arriving.
12. devices according to any one of claim 7-11, it is characterised in that second video data is:The clothes Business end encoded in advance the video data for completing before the handover request that the client sends is received.
CN201611250027.1A 2016-12-29 2016-12-29 Video switching method and device Active CN106686394B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611250027.1A CN106686394B (en) 2016-12-29 2016-12-29 Video switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611250027.1A CN106686394B (en) 2016-12-29 2016-12-29 Video switching method and device

Publications (2)

Publication Number Publication Date
CN106686394A true CN106686394A (en) 2017-05-17
CN106686394B CN106686394B (en) 2020-04-28

Family

ID=58872204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611250027.1A Active CN106686394B (en) 2016-12-29 2016-12-29 Video switching method and device

Country Status (1)

Country Link
CN (1) CN106686394B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172443A (en) * 2017-06-29 2017-09-15 北京小米移动软件有限公司 Net cast methods, devices and systems
CN108848390A (en) * 2018-05-28 2018-11-20 北京文香信息技术有限公司 A kind of multithread live streaming copic viewing system
CN109982098A (en) * 2019-03-11 2019-07-05 烽火通信科技股份有限公司 A kind of IPTV channel switching method and system
CN112738540A (en) * 2020-12-25 2021-04-30 广州虎牙科技有限公司 Multi-device live broadcast switching method, device and system, electronic device and readable storage medium
CN113923499A (en) * 2021-09-30 2022-01-11 北京字跳网络技术有限公司 Display control method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101909160A (en) * 2009-12-17 2010-12-08 新奥特(北京)视频技术有限公司 Broadcast control switching method and device in network video live broadcast
CN104935955A (en) * 2015-05-29 2015-09-23 腾讯科技(北京)有限公司 Live video stream transmission method, device and system
CN105191316A (en) * 2013-03-15 2015-12-23 罗伯特·博世有限公司 Switching apparatus for switching compressed video streams, conference system with the switching apparatus and process for switching compressed video streams
CN105472437A (en) * 2015-11-24 2016-04-06 广州华多网络科技有限公司 Video playing method and apparatus thereof
CN105657579A (en) * 2015-10-29 2016-06-08 乐视致新电子科技(天津)有限公司 Live broadcast audio switching method, stream media server and client
CN105704540A (en) * 2016-03-28 2016-06-22 华为技术有限公司 Method and device for switching television live broadcast channel
CN105828091A (en) * 2016-03-28 2016-08-03 广州华多网络科技有限公司 Method and system for video program playing in network broadcast
CN105872570A (en) * 2015-12-11 2016-08-17 乐视网信息技术(北京)股份有限公司 Method and apparatus for implementing multi-camera video synchronous playing

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101909160A (en) * 2009-12-17 2010-12-08 新奥特(北京)视频技术有限公司 Broadcast control switching method and device in network video live broadcast
CN105191316A (en) * 2013-03-15 2015-12-23 罗伯特·博世有限公司 Switching apparatus for switching compressed video streams, conference system with the switching apparatus and process for switching compressed video streams
CN104935955A (en) * 2015-05-29 2015-09-23 腾讯科技(北京)有限公司 Live video stream transmission method, device and system
CN105657579A (en) * 2015-10-29 2016-06-08 乐视致新电子科技(天津)有限公司 Live broadcast audio switching method, stream media server and client
CN105472437A (en) * 2015-11-24 2016-04-06 广州华多网络科技有限公司 Video playing method and apparatus thereof
CN105872570A (en) * 2015-12-11 2016-08-17 乐视网信息技术(北京)股份有限公司 Method and apparatus for implementing multi-camera video synchronous playing
CN105704540A (en) * 2016-03-28 2016-06-22 华为技术有限公司 Method and device for switching television live broadcast channel
CN105828091A (en) * 2016-03-28 2016-08-03 广州华多网络科技有限公司 Method and system for video program playing in network broadcast

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172443A (en) * 2017-06-29 2017-09-15 北京小米移动软件有限公司 Net cast methods, devices and systems
CN108848390A (en) * 2018-05-28 2018-11-20 北京文香信息技术有限公司 A kind of multithread live streaming copic viewing system
CN109982098A (en) * 2019-03-11 2019-07-05 烽火通信科技股份有限公司 A kind of IPTV channel switching method and system
CN109982098B (en) * 2019-03-11 2020-12-01 烽火通信科技股份有限公司 IPTV channel switching method and system
CN112738540A (en) * 2020-12-25 2021-04-30 广州虎牙科技有限公司 Multi-device live broadcast switching method, device and system, electronic device and readable storage medium
CN112738540B (en) * 2020-12-25 2023-09-05 广州虎牙科技有限公司 Multi-device live broadcast switching method, device, system, electronic device and readable storage medium
CN113923499A (en) * 2021-09-30 2022-01-11 北京字跳网络技术有限公司 Display control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106686394B (en) 2020-04-28

Similar Documents

Publication Publication Date Title
CN106686394A (en) Video switching method and apparatus
EP1472871B1 (en) Remote server switching of video streams
CN107483460B (en) Method and system for multi-platform parallel broadcasting and stream pushing
CN101588488B (en) Multiple-position streaming media broadcasting method and system
US9357141B2 (en) Method and apparatus for remotely controlling a live TV production
CN100515056C (en) Method, system apparatus and set top box for displaying mutli-channel information in identical picture
CN104836964B (en) Video fusion plant control unit in distributed video emerging system
CN106227492B (en) Combination and mobile intelligent terminal interconnected method and device
CN101742221B (en) Method and device for synthesizing multiple pictures in video conference system
CN101198047B (en) Television broadcasting method and system
CN105359544A (en) Trick play in digital video streaming
CN111491178B (en) Method, system and electronic equipment for television program scene interaction
CN108055497B (en) Conference signal playing method and device, video conference terminal and mobile device
CN106331880A (en) Information processing method and information processing system
CN101686391A (en) Video coding/decoding method and device as well as video playing method, device and system
CN104486685A (en) Control method, device and system of media streams
CN106888169A (en) Video broadcasting method and device
CN106488254A (en) A kind of method and system of live picture switching
CN103686219A (en) Method, device and system for recording and broadcasting video conference
CN101355688A (en) Method for selecting channel of IPTV, apparatus for composite coding and set-top box
KR20010013590A (en) Group-wise video conferencing uses 3d-graphics model of broadcast event
CN101094415A (en) Method and apparatus for transmitting and method for reproducing and apparatus for receiving broadcast signal
CN103188422A (en) News reporting control system and control method thereof
CN109218740A (en) Display methods, storage medium, electronic equipment and the system of double screen video flowing
CN104811806A (en) Control method for audio mixed output

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