CN106488255B - A kind of method and device of switching media stream - Google Patents
A kind of method and device of switching media stream Download PDFInfo
- Publication number
- CN106488255B CN106488255B CN201610937653.1A CN201610937653A CN106488255B CN 106488255 B CN106488255 B CN 106488255B CN 201610937653 A CN201610937653 A CN 201610937653A CN 106488255 B CN106488255 B CN 106488255B
- Authority
- CN
- China
- Prior art keywords
- frame
- sent
- audio
- media stream
- time
- 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
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/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- 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/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23113—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving housekeeping operations for stored content, e.g. prioritizing content for deletion because of storage space restrictions
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of method and devices of switching media stream, belong to field of Internet communication.The described method includes: receiving the switching request that client is sent when playing the first Media Stream, the switching request carries the stream title of the second Media Stream;Frame to be sent is obtained, the frame to be sent is the audio/video frames in corresponding second Media Stream of the stream title;The first time stamp of the frame to be sent is set, the first time stamp is located at the time interval after the timestamp of the first audio/video frames and between the timestamp of first audio/video frames and is no more than preset threshold, and first audio/video frames are the last audio/video frames sent to the client;The frame to be sent is sent to the client.Described device includes: receiving module, obtains module, setup module and sending module.The present invention, which can be avoided, there is of short duration blank screen or tone-off phenomenon when switching.
Description
Technical field
The present invention relates to field of Internet communication, in particular to a kind of method and device of switching media stream.
Background technique
With the development of internet technology, more and more users use direct broadcast service.In live streaming, the first of main broadcaster is eventually
End can establish network connection between the second terminal of spectators, and then first terminal passes through the network connection for the media of acquisition
Stream is sent to second terminal, and second terminal plays the Media Stream, such spectators it is seen that main broadcaster performance, realize viewing master
The live streaming broadcast.
Spectators may want the live streaming for watching other main broadcasters when watching the Media Stream that second terminal plays, and spectators need at this time
The currently received Media Stream of second terminal is switched to the Media Stream of other main broadcasters.The mode of switching media stream can be at present
Are as follows: second terminal first disconnects the network connection between first terminal, then resettles third terminal corresponding with other main broadcasters
Between network connection, the Media Stream that third terminal is sent then is received by the network connection between third terminal, then is broadcast
The Media Stream of third terminal transmission is put, such spectators are perceived by the live streaming of other main broadcasters.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
The network connection between the first terminal of the main broadcaster of current live is first disconnected in switching media stream, resettles other
Network connection between the third terminal of main broadcaster leads to of short duration blank screen and tone-off phenomenon of video in order occur in switching.
Summary of the invention
In order to avoid the occurrence of of short duration blank screen and tone-off phenomenon when switching media stream, the present invention provides a kind of switching medias
The method and device of stream.The technical solution is as follows:
On the one hand, a kind of method of switching media stream is provided, which comprises
The switching request that client is sent when playing the first Media Stream is received, the switching request carries the second Media Stream
Stream title;
Frame to be sent is obtained, the frame to be sent is the audio/video frames in corresponding second Media Stream of the stream title;
The first time stamp of the frame to be sent is set, first time stamp be located at the first audio/video frames timestamp it
Time interval afterwards and between the timestamp of first audio/video frames is no more than preset threshold, and first audio/video frames are
The audio/video frames that the last time sends to the client;
The frame to be sent is sent to the client.
Optionally, the first time stamp of the setting frame to be sent, comprising:
Obtained for the first fiducial time, first fiducial time is the time of next audio/video frames of the second audio/video frames
Stamp, second audio/video frames are the sound views of first Media Stream sent when receiving the switching command to the client
Frequency frame;
Obtained for the second fiducial time, second fiducial time is received recently described in first fiducial time
The timestamp of the audio/video frames of second Media Stream;
According to first fiducial time and second fiducial time, the first time stamp of the frame to be sent is set.
Optionally, the second fiducial time of the acquisition, comprising:
It is received recently when obtaining from the corresponding input-buffer space of second Media Stream in first fiducial time
The first audio frame and the first video frame, the input-buffer space be used to cache the audio-video of received second Media Stream
Frame;
Minimum time stamp in the timestamp of first audio frame and the timestamp of first video frame is determined as
Second fiducial time.
It is optionally, described to obtain frame to be sent, comprising:
Receive next audio/video frames of second audio/video frames in first Media Stream;
If next audio/video frames are audio frame, obtained from the corresponding input-buffer space of second Media Stream
Take nearest received first audio frame as the first frame to be sent;
If next audio/video frames are video frame, obtained from the corresponding input-buffer space of second Media Stream
It takes the key frame in nearest received one group of video frame group as the first frame to be sent, and caches the first frame to be sent
Frame index number.
Optionally, described according to first fiducial time and second fiducial time, the frame to be sent is set
It stabs at the first time, comprising:
The first time stamp that the first frame to be sent is arranged is T0+T1-Ta, wherein T0For the first fiducial time, TaIt is
Two fiducial times;
The T when the first frame to be sent is audio frame1For timestamp of the audio frame in second Media Stream,
The T when the first frame to be sent is video frame1It is received video frame nearest in one group of video frame group described second
Timestamp in Media Stream.
It is optionally, described to obtain frame to be sent further include:
After first fiducial time when receiving the audio frame of second Media Stream, by the received sound
Frequency frame is determined as the second frame to be sent;
It is described according to first fiducial time and second fiducial time, the first time of the frame to be sent is set
Stamp, comprising:
The second timestamp that second frame to be sent is arranged is T0+T2-Ta, wherein T0For the first fiducial time, TaIt is
Two fiducial times, T2For timestamp of second frame to be sent in second Media Stream.
It is optionally, described to obtain frame to be sent further include:
It is described when receiving to before the key frame for receiving second Media Stream for the first time after first fiducial time
The video frame of second Media Stream and when being cached with frame index number, increases the frame index number, corresponding from second Media Stream
The corresponding video frame of the increased frame index number is obtained in input-buffer space as third frame to be sent;
It is corresponding from second Media Stream when the video frame for receiving second Media Stream and when being cached with frame index number
Input-buffer space in obtain key frame recently in received one group of video frame group as third frame to be sent, and cache institute
State the frame index number of third frame to be sent;
It is described according to first fiducial time and second fiducial time, the first time of the frame to be sent is set
Stamp, comprising:
The third timestamp that the third frame to be sent is arranged is T0+T3-Ta, wherein T0For the first fiducial time, TaIt is
Two fiducial times, T2For timestamp of the third frame to be sent in second Media Stream.
It is optionally, described to obtain frame to be sent further include:
When after first fiducial time to the key frame for receiving second Media Stream for the first time, by received described
The video frame of two Media Streams is determined as the 4th frame to be sent;
It is described according to first fiducial time and second fiducial time, the first time of the frame to be sent is set
Stamp, comprising:
The third timestamp that the 4th frame to be sent is arranged is T0+T4-Ta, wherein T4Exist for the third frame to be sent
Timestamp in second Media Stream.
On the other hand, a kind of device of switching media stream is provided, described device includes:
Receiving module, the switching request sent for receiving client when playing the first Media Stream, the switching request
Carry the stream title of the second Media Stream;
Module is obtained, for obtaining frame to be sent, the frame to be sent is in corresponding second Media Stream of the stream title
Audio/video frames;
Setup module, the first time for the frame to be sent to be arranged stab, and the first time stamp is located at the first sound and regards
Time interval after the timestamp of frequency frame and between the timestamp of first audio/video frames is no more than preset threshold, described
First audio/video frames are the last audio/video frames sent to the client;
Sending module, for sending the frame to be sent to the client.
Optionally, the setup module includes:
First acquisition unit, for obtaining for the first fiducial time, first fiducial time is under the second audio/video frames
The timestamp of one audio/video frames, second audio/video frames are when receiving the switching command to described in client transmission
The audio/video frames of first Media Stream;
Second acquisition unit, for obtaining for the second fiducial time, second fiducial time is in first benchmark
Between when recently received second Media Stream audio/video frames timestamp;
Setting unit, for the frame to be sent to be arranged according to first fiducial time and second fiducial time
First time stamp.
Optionally, the second acquisition unit, for being obtained from the corresponding input-buffer space of second Media Stream
Nearest received first audio frame and the first video frame in first fiducial time, the input-buffer space is for caching
The audio/video frames of received second Media Stream;By the timestamp of the timestamp of first audio frame and first video frame
In minimum time stamp be determined as the second fiducial time.
Optionally, the acquisition module includes:
Receiving unit, for receiving next audio/video frames of second audio/video frames in first Media Stream;
Third acquiring unit, it is corresponding from second Media Stream if being audio frame for next audio/video frames
Input-buffer space in obtain recently received first audio frame as the first frame to be sent;
4th acquiring unit, it is corresponding from second Media Stream if being video frame for next audio/video frames
Input-buffer space in obtain key frame recently in received one group of video frame group as the first frame to be sent, and delay
Deposit the frame index number of the first frame to be sent.
Optionally, the setting unit, it is T that the first time for the first frame to be sent to be arranged, which stabs,0+T1-Ta,
Middle T0For the first fiducial time, TaFor the second fiducial time;The T when the first frame to be sent is audio frame1For the audio frame
Timestamp in second Media Stream, the T when the first frame to be sent is video frame1For in one group of video frame group
Nearest timestamp of the received video frame in second Media Stream.
Optionally, the acquisition module further include:
First determination unit, for after first fiducial time when the audio frame for receiving second Media Stream
When, the received audio frame is determined as the second frame to be sent;
Correspondingly, the setting unit, the second timestamp for second frame to be sent to be arranged is T0+T2-Ta,
Middle T0For the first fiducial time, TaFor the second fiducial time, T2Be second frame to be sent in second Media Stream when
Between stab.
Optionally, the acquisition module further include:
5th acquiring unit, for after first fiducial time to the key frame for receiving second Media Stream for the first time
Before, when the video frame for receiving second Media Stream and when being cached with frame index number, increase the frame index number, from described
The corresponding video frame of the increased frame index number is obtained in the corresponding input-buffer space of second Media Stream as to be sent
Three frames;
6th acquiring unit, for when the video frame for receiving second Media Stream and when being cached with frame index number, from
Obtained in the corresponding input-buffer space of second Media Stream key frame in received one group of video frame group recently be used as to
Third frame is sent, and caches the frame index number of the third frame to be sent;
Correspondingly, the setting unit, the third timestamp for the third frame to be sent to be arranged is T0+T3-Ta,
Middle T0For the first fiducial time, TaFor the second fiducial time, T2Be the third frame to be sent in second Media Stream when
Between stab.
Optionally, the acquisition module further include:
Determination unit, when for after first fiducial time to the key frame for receiving second Media Stream for the first time,
The video frame of received second Media Stream is determined as the 4th frame to be sent;
Correspondingly, the setting unit, the third timestamp for the 4th frame to be sent to be arranged is T0+T4-Ta,
Middle T4For timestamp of the third frame to be sent in second Media Stream.
The beneficial effect of the technical scheme provided by the present invention is that:
By obtaining the frame to be sent in the second Media Stream, and the first time stamp of setting frame to be sent, when making first
Between stamp be located at the first audio/video frames timestamp after and the time interval between the timestamp of the first audio/video frames be no more than
Preset threshold, the first audio/video frames are the last audio/video frames sent to client, such client receive it is pending
When sending frame, it will be considered that frame to be sent is the next frame of the first audio/video frames according to first time stamp, and can be successfully decoded and play
Frame to be sent, but because the first audio/video frames can receive the first media sent when switching request for gateway server
The audio/video frames of stream, to avoid the occurrence of of short duration blank screen and tone-off phenomenon when switching media stream.
Detailed description of the invention
Fig. 1 is a kind of network architecture schematic diagram that the embodiment of the present invention one provides;
Fig. 2 is a kind of method flow diagram of switching media stream provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of method flow diagram for switching media stream that the embodiment of the present invention three provides;
Fig. 4 is a kind of apparatus structure schematic diagram for switching media stream that the embodiment of the present invention four provides;
Fig. 5 is a kind of server architecture schematic diagram that the embodiment of the present invention five provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment one
It is the network architecture provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, which includes: client 1, gateway clothes
Business device 2 and media stream server 3.
Media stream server 3 includes the Media Stream generated when at least one main broadcaster is broadcast live, sends matchmaker to gateway server 2
Body stream.
Gateway server 3 is used to receive the Media Stream of the transmission of media stream server 3, and forwards the Media Stream to client 1.
Client 1 can be Flash player or live streaming plug-in unit in live page etc., for receiving the Media Stream
And the Media Stream is played, so that spectators watch the live streaming of main broadcaster.
Embodiment two
Referring to fig. 2, the embodiment of the invention provides a kind of methods of switching media stream, comprising:
Step 201: receiving the switching request that client is sent when playing the first Media Stream, which carries second
The stream title of Media Stream.
Step 202: obtaining frame to be sent, frame to be sent is the audio/video frames in corresponding second Media Stream of the stream title.
Step 203: be arranged frame to be sent first time stamp, at the first time stamp be located at the first audio/video frames timestamp it
Time interval afterwards and between the timestamp of the first audio/video frames is no more than preset threshold, and the first audio/video frames are the last time
The audio/video frames sent to client.
Step 204: sending frame to be sent to client.
In embodiments of the present invention, it is stabbed by the way that the first time of frame to be sent is arranged, makes to be stabbed at the first time positioned at the first sound
Time interval after the timestamp of video frame and between the timestamp of the first audio/video frames is no more than preset threshold, the first sound
Video frame is the last audio/video frames sent to client, avoided the occurrence of in this way in switching media stream of short duration blank screen and
Tone-off phenomenon.
Embodiment three
The embodiment of the invention provides a kind of methods of switching media stream.This method is applied to broadcast in user using client
The first Media Stream process of the first main broadcaster is put, user can make client switching play the second Media Stream of the second main broadcaster, and lead to
It crosses client request gateway server and the first Media Stream of client terminal playing is switched to the second Media Stream of broadcasting.Referring to Fig. 3,
Gateway server process can switch as follows, comprising:
Step 301: gateway server receives the switching request that client is sent, which carries the second Media Stream
Flow title.
The first Media Stream generated is broadcast live in currently used the first main broadcaster of client terminal playing of user, when needing client terminal playing the
When the second Media Stream generated is broadcast live in two main broadcasters, stream title that user only needs to select the second Media Stream on the client is simultaneously submitted
Switching command is to client.Then client sends the switching request for carrying the stream title of the second Media Stream to gateway server,
Request gateway server switching media stream.
Gateway server receives the switching request, according to the stream title for the second Media Stream that the switching request carries, judgement
It is local whether to be cached with the second Media Stream, if not provided, being sent according to the stream name request media stream server of the second Media Stream
Audio/video frames of second Media Stream, and when receiving the audio/video frames of the second Media Stream distribute input-buffer space, first by the
The audio/video frames of two Media Streams are buffered in the input-buffer space.
Since gateway server forwarding media streaming server is sent to the Media Stream of client, and received in gateway server
It is corresponding defeated the audio/video frames to be first buffered in the Media Stream when audio/video frames of the Media Stream sent to media stream server
Enter in spatial cache, so gateway server is local when gateway server forwards the second Media Stream to the client of other users
It is just cached with the second Media Stream, otherwise gateway server is local just without the second Media Stream of caching.
Step 302: step 303 is executed after complete second audio/video frames to be sent such as gateway server, the second audio/video frames are
The audio/video frames in the first Media Stream being currently transmitted.
The first main broadcaster of client terminal playing be broadcast live generate the first Media Stream during, media stream server constantly to
Gateway server sends the audio/video frames of the first Media Stream;Gateway server can constantly receive the audio/video frames of the first Media Stream
And the audio/video frames of the first Media Stream are sent to client.
This step can be with are as follows: gateway server is when receiving the switching command, the first media for will being currently transmitted
The audio/video frames of stream are known as the second audio/video frames, and judge whether the data that the second audio/video frames include have sent, if sent
It is complete, it is immediately performed step 303, it is not sent etc. complete second audio/video frames to be sent being left of including if do not sent
Data, and sent be left not sent data when, be immediately performed step 303.
Step 303: when gateway server obtains the first benchmark when receiving next audio/video frames of the second audio/video frames
Between, the first fiducial time was the timestamp of next audio frame.
First fiducial time was located at after the timestamp of the second audio/video frames, and time interval between the two is no more than in advance
If threshold value.
Step 304: gateway server obtained for the second fiducial time, and the second fiducial time was nearest received second Media Stream
Audio/video frames timestamp.
This step can be with are as follows: gateway server obtains received recently from the corresponding input-buffer space of the second Media Stream
The time stamp T of audio framebWith the time stamp T of nearest received video framec, the time stamp T of more received audio framebWith it is nearest
The time stamp T of received video framec, select minimum time stamp as the second fiducial time.
Step 305: gateway server obtains first frame to be sent according to the next audio/video frames, and first frame to be sent is the
Audio/video frames in two Media Streams.
Audio/video frames in Media Stream include at least one of audio frame and video frame, so next audio/video frames may
For audio frame, it is also possible to be video frame.
In this step, when next audio/video frames are audio frame, gateway server is corresponding defeated from the first Media Stream
Enter to obtain nearest received first audio frame in spatial cache as first frame to be sent;When next audio/video frames are video frame
When, gateway server is from the pass obtained recently in received one group of video frame group in the corresponding input-buffer space of the first Media Stream
Key frame is as first frame to be sent.
Wherein, one group of video frame group includes multi-frame video frame, and the first frame in usual one group of video frame group is key frame,
Other frames in addition to first frame are non-key frame.Client can directly be decoded key frame, and to non-key frame into
It needs to decode using key frame when row decoding, needs first to select key frame thus to send.
Step 306: being according to the first time stamp that first frame to be sent is arranged in the first fiducial time and the second fiducial time
T0+T1-Ta, wherein T0For the first fiducial time, TaFor the second fiducial time, if frame to be sent is that sound regards frame, T1It is pending
Send time stamp T of the first frame in the second Media StreambIf frame to be sent is video frame, T1It is corresponding defeated for the second Media Stream
Enter the time stamp T of nearest received video frame in spatial cachec。
Further, if first frame to be sent is key frame, gateway server can also obtain the frame rope of the key frame
Quotation marks simultaneously cache the frame index number.
Wherein, due to time stamp TbAnd TcIt is close, and the second fiducial time was time stamp TbAnd TcOne of, it sets in this way
The first time for the first frame to be sent set stabs T0+T1-TaAfter the timestamp of the second audio/video frames and with the second audio/video frames
Timestamp between time interval it is also smaller, be no more than preset threshold.
Step 307: gateway server sends first frame to be sent to client, plays client according to first time stamp
First frame to be sent.
Wherein, the second audio/video frames are the audio/video frames sent recently before the first fiducial time, and client is currently just
What it is in broadcasting may be the second audio/video frames, due to first time stamp after the timestamp of the second audio/video frames and with the second sound
Time interval between the timestamp of video frame is smaller and is less than preset threshold, and such client just will be considered that first frame to be sent
For next audio/video frames after the second audio/video frames, is stabbed according to first time, first frame to be sent can be successfully decoded and broadcast
First frame to be sent is put, so that client be avoided of short duration blank screen phenomenon occur.
Gateway server continues to the audio-video of media stream server transmission after having sent first frame to be sent
Frame, the audio/video frames may be audio frame, it is also possible to be video frame.Step 308 is executed when receiving audio frame, when receiving
310 are executed when video frame.
Step 308: gateway server is using the sound of received second Media Stream view frame as the second frame to be sent, according to first
The second timestamp that the second frame to be sent is arranged in fiducial time and the second fiducial time is T0+T2-Ta, wherein T2It is to be sent
Timestamp of two frames in the second Media Stream.
Since media stream server continuously sends the time between audio/video frames and two audio/video frames of arbitrary neighborhood
It is spaced the second equal and smaller, the second timestamp and gateway server the last time being arranged in this way are sent to client media
Time interval between the audio/video frames of stream is also smaller, i.e. the sound of the second timestamp and the second currently playing Media Stream of client
Time interval between video frame is smaller, usually less than preset threshold.
Step 209: gateway server sends the second frame to be sent to client, plays client according to the second timestamp
Second frame to be sent.
Wherein, due between the time between the second timestamp and the audio/video frames of currently playing the second Media Stream of client
Every smaller, such client just will be considered that the second frame to be sent is next audio-video after its currently playing audio/video frames
Frame can be successfully decoded according to the second timestamp and play the second frame to be sent.
Step 210: gateway server judges whether the video frame of received second Media Stream is key frame, if not pass
Key frame, thens follow the steps 211, if it is key frame, executes step 214.
Step 211: gateway server obtains the second video frame as pending from the corresponding spatial cache of the second Media Stream
Send third frame, the second video frame be the last next video frame that the video frame in the second Media Stream is sent to client or
Key frame in the spatial cache in nearest one group of video frame group.
Wherein, gateway server is after the first fiducial time to before the key frame for receiving the second Media Stream for the first time
In period, if the video frame of received second Media Stream is non-key frame, from the corresponding spatial cache of the second Media Stream
Middle acquisition video frame is simultaneously sent to client.
During this period of time, when receiving non-key frame, first judge whether to be cached with frame index number, if do not cached
Frame index number then shows that first frame to be sent is audio frame, and currently received non-key frame is to connect for the first time during this period of time
The video frame for the second Media Stream received, before this to the key frame of client the second Media Stream of transmission, therefore from second
The key frame in nearest one group of video frame group is obtained in the corresponding spatial cache of Media Stream as third frame to be sent, and caching should
The call number of key frame.
If caching frame index number, since gateway server during this period of time is every time when sending video frame by caching
Frame index number is updated to the frame index number of the video frame.So the frame index number of caching is the last to client transmission second
The frame index number of video frame in Media Stream.Correspondingly, the frame index number that gateway server increases caching obtains the second video frame
Frame index number, such as add 1 to obtain the frame index number of the second video frame to the frame index number of caching, according to the frame of the second video frame
Call number obtains the second video frame as third frame to be sent from the corresponding spatial cache of the second Media Stream.
Step 212: gateway server is arranged the of third frame to be sent according to the first fiducial time and the second fiducial time
Three timestamps are T0+T3-Ta, wherein T3For timestamp of the currently received video frame in the second Media Stream.
Wherein the time interval between third timestamp and the audio/video frames of currently playing the second Media Stream of client compared with
It is small, usually less than preset threshold.
Step 213: gateway server sends third frame to be sent to client, plays client according to third timestamp
Third frame to be sent.
Wherein, due between the time between third timestamp and the audio/video frames of currently playing the second Media Stream of client
Every smaller, such client just will be considered that third frame to be sent is next audio-video after its currently playing audio/video frames
Frame can be successfully decoded according to third timestamp and play third frame to be sent.
Step 214: gateway server is using received key frame as the 4th frame to be sent, according to the first fiducial time and
The 4th timestamp that the 4th frame to be sent was arranged in two fiducial times is T0+T4-Ta, wherein T4It is the 4th frame to be sent in the second matchmaker
Timestamp in body stream.
The audio/video frames for the second Media Stream that wherein the 4th timestamp and gateway server the last time send to client
Between time interval it is also smaller, i.e. between the 4th timestamp and the audio/video frames of currently playing the second Media Stream of client
Time interval is smaller, usually less than preset threshold.
Step 215: gateway server sends the 4th frame to be sent to client, plays client according to the 4th timestamp
4th frame to be sent.
Wherein, due between the time between the 4th timestamp and the audio/video frames of currently playing the second Media Stream of client
Every smaller, such client just will be considered that the 4th frame to be sent is next audio-video after its currently playing audio/video frames
Frame can be successfully decoded according to the 4th timestamp and play the 4th frame to be sent.
After receiving the key frame for the first time, as long as gateway server receives the second media of media stream server transmission
The video frame is just the step of making frame to be sent and continue to execute step 214 and 215, by the frame to be sent by the video frame of stream
It is sent to client, the frame to be sent by client terminal playing.
In embodiments of the present invention, by obtaining the frame to be sent in the second Media Stream, and setting frame to be sent the
One timestamp makes to stab the timestamp for being located at the first audio/video frames at the first time later and between the timestamp of the first audio/video frames
Time interval be no more than preset threshold, the first audio/video frames are the last audio/video frames sent to client, in this way visitor
Family end will be considered that frame to be sent is the next frame of the first audio/video frames when receiving frame to be sent, according to first time stamp, and
It can be successfully decoded and play frame to be sent, and because when the first audio/video frames can receive switching request for gateway server just
In the audio/video frames of the first Media Stream of transmission, to avoid the occurrence of of short duration blank screen and tone-off phenomenon when switching media stream.
Example IV
Referring to fig. 4, the embodiment of the invention provides a kind of device 400 of switching media stream, described device 400 includes:
Receiving module 401, the switching request sent for receiving client when playing the first Media Stream, the switching are asked
Seek the stream title for carrying the second Media Stream;
Module 402 is obtained, for obtaining frame to be sent, the frame to be sent is corresponding second Media Stream of the stream title
In audio/video frames;
Setup module 403, the first time for the frame to be sent to be arranged stab, and the first time stamp is located at the first sound
Time interval after the timestamp of video frame and between the timestamp of first audio/video frames is no more than preset threshold, institute
Stating the first audio/video frames is the last audio/video frames sent to the client;
Sending module 404, for sending the frame to be sent to the client.
Optionally, the setup module 403 includes:
First acquisition unit, for obtaining for the first fiducial time, first fiducial time is under the second audio/video frames
The timestamp of one audio/video frames, second audio/video frames are when receiving the switching command to described in client transmission
The audio/video frames of first Media Stream;
Second acquisition unit, for obtaining for the second fiducial time, second fiducial time is in first benchmark
Between when recently received second Media Stream audio/video frames timestamp;
Setting unit, for the frame to be sent to be arranged according to first fiducial time and second fiducial time
First time stamp.
Optionally, the second acquisition unit, for being obtained from the corresponding input-buffer space of second Media Stream
Nearest received first audio frame and the first video frame in first fiducial time, the input-buffer space is for caching
The audio/video frames of received second Media Stream;By the timestamp of the timestamp of first audio frame and first video frame
In minimum time stamp be determined as the second fiducial time.
The acquisition module 402 includes:
Receiving unit, for receiving next audio/video frames of second audio/video frames in first Media Stream;
Third acquiring unit, it is corresponding from second Media Stream if being audio frame for next audio/video frames
Input-buffer space in obtain recently received first audio frame as the first frame to be sent;
4th acquiring unit, it is corresponding from second Media Stream if being video frame for next audio/video frames
Input-buffer space in obtain key frame recently in received one group of video frame group as the first frame to be sent, and delay
Deposit the frame index number of the first frame to be sent.
Optionally, the setting unit, it is T that the first time for the first frame to be sent to be arranged, which stabs,0+T1-Ta,
Middle T0For the first fiducial time, TaFor the second fiducial time;The T when the first frame to be sent is audio frame1For the audio frame
Timestamp in second Media Stream, the T when the first frame to be sent is video frame1For in one group of video frame group
Nearest timestamp of the received video frame in second Media Stream.
Optionally, the acquisition module 402 further include:
First determination unit, for after first fiducial time when the audio frame for receiving second Media Stream
When, the received audio frame is determined as the second frame to be sent;
Correspondingly, the setting unit, the second timestamp for second frame to be sent to be arranged is T0+T2-Ta,
Middle T0For the first fiducial time, TaFor the second fiducial time, T2Be second frame to be sent in second Media Stream when
Between stab.
Optionally, the acquisition module 402 further include:
5th acquiring unit, for after first fiducial time to the key frame for receiving second Media Stream for the first time
Before, when the video frame for receiving second Media Stream and when being cached with frame index number, increase the frame index number, from described
The corresponding video frame of the increased frame index number is obtained in the corresponding input-buffer space of second Media Stream as to be sent
Three frames;
6th acquiring unit, for when the video frame for receiving second Media Stream and when being cached with frame index number, from
Obtained in the corresponding input-buffer space of second Media Stream key frame in received one group of video frame group recently be used as to
Third frame is sent, and caches the frame index number of the third frame to be sent;
Correspondingly, the setting unit, the third timestamp for the third frame to be sent to be arranged is T0+T3-Ta,
Middle T0For the first fiducial time, TaFor the second fiducial time, T2Be the third frame to be sent in second Media Stream when
Between stab.
Optionally, the acquisition module 402 further include:
Determination unit, when for after first fiducial time to the key frame for receiving second Media Stream for the first time,
The video frame of received second Media Stream is determined as the 4th frame to be sent;
Correspondingly, the setting unit, the third timestamp for the 4th frame to be sent to be arranged is T0+T4-Ta,
Middle T4For timestamp of the third frame to be sent in second Media Stream.
In embodiments of the present invention, by obtaining the frame to be sent in the second Media Stream, and setting frame to be sent the
One timestamp makes to stab the timestamp for being located at the first audio/video frames at the first time later and between the timestamp of the first audio/video frames
Time interval be no more than preset threshold, the first audio/video frames are the last audio/video frames sent to client, in this way visitor
Family end will be considered that frame to be sent is the next frame of the first audio/video frames when receiving frame to be sent, according to first time stamp, and
It can be successfully decoded and play frame to be sent, and because when the first audio/video frames can receive switching request for gateway server just
In the audio/video frames of the first Media Stream of transmission, to avoid the occurrence of of short duration blank screen and tone-off phenomenon when switching media stream.
Embodiment 5
It is the structural schematic diagram of server 500 provided in an embodiment of the present invention referring to Fig. 5, Fig. 5.The server 500 can be with
For above-mentioned gateway server, server 500 can generate bigger difference because configuration or performance are different, may include one or
More than one processor 501, transceiver 502 and memory 532, one or more storage application programs 542 or data 544
Storage medium 530 (such as one or more mass memory units).Wherein, memory 532 and storage medium 530 can be with
It is of short duration storage or persistent storage.The program for being stored in storage medium 530 may include that (diagram does not have one or more modules
Mark), each module may include to the series of instructions operation in server 500.Further, processor 522 can be with
It is set as communicating with storage medium 530, the series of instructions operation in storage medium 530 is executed on server 500.
Server 500 can also include one or more power supplys 526, one or more wired or wireless networks
Interface 550, one or more input/output interfaces 558, one or more keyboards 556, and/or, one or one
The above operating system 541, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Specifically in the present embodiment, server 500 further includes having memory and one or more than one program,
Perhaps more than one program is stored in memory and is configured to be held by one or more than one processor for one of them
Row.Said one or more than one program include the instruction for performing the following operation:
The switching request that client is sent when playing the first Media Stream is received, the switching request carries the second Media Stream
Stream title;
Frame to be sent is obtained, the frame to be sent is the audio/video frames in corresponding second Media Stream of the stream title;
The first time stamp of the frame to be sent is set, first time stamp be located at the first audio/video frames timestamp it
Time interval afterwards and between the timestamp of first audio/video frames is no more than preset threshold, and first audio/video frames are
The audio/video frames that the last time sends to the client;
The frame to be sent is sent to the client.
Optionally, the first time stamp of the setting frame to be sent, comprising:
Obtained for the first fiducial time, first fiducial time is the time of next audio/video frames of the second audio/video frames
Stamp, second audio/video frames are the sound views of first Media Stream sent when receiving the switching command to the client
Frequency frame;
Obtained for the second fiducial time, second fiducial time is received recently described in first fiducial time
The timestamp of the audio/video frames of second Media Stream;
According to first fiducial time and second fiducial time, the first time stamp of the frame to be sent is set.
Optionally, the second fiducial time of the acquisition, comprising:
It is received recently when obtaining from the corresponding input-buffer space of second Media Stream in first fiducial time
The first audio frame and the first video frame, the input-buffer space be used to cache the audio-video of received second Media Stream
Frame;
Minimum time stamp in the timestamp of first audio frame and the timestamp of first video frame is determined as
Second fiducial time.
It is optionally, described to obtain frame to be sent, comprising:
Receive next audio/video frames of second audio/video frames in first Media Stream;
If next audio/video frames are audio frame, obtained from the corresponding input-buffer space of second Media Stream
Take nearest received first audio frame as the first frame to be sent;
If next audio/video frames are video frame, obtained from the corresponding input-buffer space of second Media Stream
It takes the key frame in nearest received one group of video frame group as the first frame to be sent, and caches the first frame to be sent
Frame index number.
Optionally, described according to first fiducial time and second fiducial time, the frame to be sent is set
It stabs at the first time, comprising:
The first time stamp that the first frame to be sent is arranged is T0+T1-Ta, wherein T0For the first fiducial time, TaIt is
Two fiducial times;
The T when the first frame to be sent is audio frame1For timestamp of the audio frame in second Media Stream,
The T when the first frame to be sent is video frame1It is received video frame nearest in one group of video frame group described second
Timestamp in Media Stream.
It is optionally, described to obtain frame to be sent further include:
After first fiducial time when receiving the audio frame of second Media Stream, by the received sound
Frequency frame is determined as the second frame to be sent;
It is described according to first fiducial time and second fiducial time, the first time of the frame to be sent is set
Stamp, comprising:
The second timestamp that second frame to be sent is arranged is T0+T2-Ta, wherein T0For the first fiducial time, TaIt is
Two fiducial times, T2For timestamp of second frame to be sent in second Media Stream.
It is optionally, described to obtain frame to be sent further include:
It is described when receiving to before the key frame for receiving second Media Stream for the first time after first fiducial time
The video frame of second Media Stream and when being cached with frame index number, increases the frame index number, corresponding from second Media Stream
The corresponding video frame of the increased frame index number is obtained in input-buffer space as third frame to be sent;
It is corresponding from second Media Stream when the video frame for receiving second Media Stream and when being cached with frame index number
Input-buffer space in obtain key frame recently in received one group of video frame group as third frame to be sent, and cache institute
State the frame index number of third frame to be sent;
It is described according to first fiducial time and second fiducial time, the first time of the frame to be sent is set
Stamp, comprising:
The third timestamp that the third frame to be sent is arranged is T0+T3-Ta, wherein T0For the first fiducial time, TaIt is
Two fiducial times, T2For timestamp of the third frame to be sent in second Media Stream.
It is optionally, described to obtain frame to be sent further include:
When after first fiducial time to the key frame for receiving second Media Stream for the first time, by received described
The video frame of two Media Streams is determined as the 4th frame to be sent;
It is described according to first fiducial time and second fiducial time, the first time of the frame to be sent is set
Stamp, comprising:
The third timestamp that the 4th frame to be sent is arranged is T0+T4-Ta, wherein T4Exist for the third frame to be sent
Timestamp in second Media Stream.
In embodiments of the present invention, by obtaining the frame to be sent in the second Media Stream, and setting frame to be sent the
One timestamp makes to stab the timestamp for being located at the first audio/video frames at the first time later and between the timestamp of the first audio/video frames
Time interval be no more than preset threshold, the first audio/video frames are the last audio/video frames sent to client, in this way visitor
Family end will be considered that frame to be sent is the next frame of the first audio/video frames when receiving frame to be sent, according to first time stamp, and
It can be successfully decoded and play frame to be sent, and because when the first audio/video frames can receive switching request for gateway server just
In the audio/video frames of the first Media Stream of transmission, to avoid the occurrence of of short duration blank screen and tone-off phenomenon when switching media stream.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (14)
1. a kind of method of switching media stream, which is characterized in that be applied to gateway server, which comprises
The switching request that client is sent when playing the first Media Stream is received, the switching request carries the stream of the second Media Stream
Title;
Frame to be sent is obtained, the frame to be sent is the audio/video frames in corresponding second Media Stream of the stream title;
Obtained for the first fiducial time, first fiducial time is the timestamp of next audio/video frames of the second audio/video frames, institute
State the audio/video frames that the second audio/video frames are first Media Streams sent when receiving the switching request to the client;
Obtained for the second fiducial time, second fiducial time is in first fiducial time nearest received described second
The timestamp of the audio/video frames of Media Stream;
According to first fiducial time and second fiducial time, the first time stamp of the frame to be sent is set, it is described
Stamp is located at the timestamp of the first audio/video frames later and the time between the timestamp of first audio/video frames at the first time
Interval is no more than preset threshold, and first audio/video frames are the last audio/video frames sent to the client;
The frame to be sent is sent to the client.
2. the method as described in claim 1, which is characterized in that the second fiducial time of the acquisition, comprising:
Recently received the when obtaining from the corresponding input-buffer space of second Media Stream in first fiducial time
One audio frame and the first video frame, the input-buffer space are used to cache the audio/video frames of received second Media Stream;
Minimum time stamp in the timestamp of first audio frame and the timestamp of first video frame is determined as second
Fiducial time.
3. the method as described in claim 1, which is characterized in that described to obtain frame to be sent, comprising:
Receive next audio/video frames of second audio/video frames in first Media Stream;
If next audio/video frames are audio frame, obtained most from the corresponding input-buffer space of second Media Stream
Nearly received first audio frame is as the first frame to be sent;
If next audio/video frames are video frame, obtained most from the corresponding input-buffer space of second Media Stream
Key frame in nearly received one group of video frame group caches the frame of the first frame to be sent as the first frame to be sent
Call number.
4. method as claimed in claim 3, which is characterized in that described according to first fiducial time and second benchmark
The first time stamp of the frame to be sent is arranged in time, comprising:
The first time stamp that the first frame to be sent is arranged is T0+T1-Ta, and by the first time of the first frame to be sent
It stabs and is stabbed as the first time of the frame to be sent, wherein T0For the first fiducial time, TaFor the second fiducial time;
When the first frame to be sent is audio frame, T1For timestamp of the audio frame in second Media Stream, work as institute
State first frame to be sent be video frame when, T1It is received video frame nearest in one group of video frame group in second media
Timestamp in stream.
5. method as claimed in claim 3, which is characterized in that described to obtain frame to be sent further include:
After first fiducial time when receiving the audio frame of second Media Stream, by the received audio frame
It is determined as the second frame to be sent;
It is described that the first time stamp of the frame to be sent is arranged according to first fiducial time and second fiducial time,
Include:
The second timestamp that second frame to be sent is arranged is T0+T2-Ta, and by the second time of second frame to be sent
It stabs and is stabbed as the first time of the frame to be sent, wherein T0For the first fiducial time, TaFor the second fiducial time, T2It is described
Timestamp of second frame to be sent in second Media Stream.
6. method as claimed in claim 3, which is characterized in that described to obtain frame to be sent further include:
To before the key frame for receiving second Media Stream for the first time after first fiducial time, when receiving described second
The video frame of Media Stream and when being cached with frame index number, increases the frame index number, from the corresponding input of second Media Stream
The corresponding video frame of the increased frame index number is obtained in spatial cache as third frame to be sent;
It is corresponding defeated from second Media Stream when the video frame for receiving second Media Stream and when being cached with frame index number
Enter to obtain key frame recently in received one group of video frame group in spatial cache as third frame to be sent, and cache it is described to
Send the frame index number of third frame;
It is described that the first time stamp of the frame to be sent is arranged according to first fiducial time and second fiducial time,
Include:
The third timestamp that the third frame to be sent is arranged is T0+T3-Ta, and by the third time of the third frame to be sent
It stabs and is stabbed as the first time of the frame to be sent, wherein T0For the first fiducial time, TaFor the second fiducial time, T3It is described
Timestamp of the third frame to be sent in second Media Stream.
7. method as claimed in claim 6, which is characterized in that described to obtain frame to be sent further include:
When after first fiducial time to the key frame for receiving second Media Stream for the first time, by received second matchmaker
The video frame of body stream is determined as the 4th frame to be sent;
It is described that the first time stamp of the frame to be sent is arranged according to first fiducial time and second fiducial time,
Include:
The 4th timestamp that the 4th frame to be sent is arranged is T0+T4-Ta, and by the 4th time of the 4th frame to be sent
It stabs and is stabbed as the first time of the frame to be sent, wherein T4Be the 4th frame to be sent in second Media Stream when
Between stab.
8. a kind of device of switching media stream, which is characterized in that be applied to gateway server, described device includes:
Receiving module, the switching request sent for receiving client when playing the first Media Stream, the switching request carry
The stream title of second Media Stream;
Module is obtained, for obtaining frame to be sent, the frame to be sent is the sound in corresponding second Media Stream of the stream title
Video frame;
Setup module, the first time for the frame to be sent to be arranged stab, and the first time stamp is located at the first audio/video frames
Timestamp after and time interval between the timestamp of first audio/video frames be no more than preset threshold, described first
Audio/video frames are the last audio/video frames sent to the client;
Sending module, for sending the frame to be sent to the client;
Wherein, the setup module includes:
First acquisition unit, for obtaining for the first fiducial time, first fiducial time is next sound of the second audio/video frames
The timestamp of video frame, second audio/video frames are described first sent when receiving the switching request to the client
The audio/video frames of Media Stream;
Second acquisition unit, for obtaining for the second fiducial time, second fiducial time is in first fiducial time
The timestamp of the audio/video frames of nearest received second Media Stream;
Setting unit, for according to first fiducial time and second fiducial time, being arranged the of the frame to be sent
One timestamp.
9. device as claimed in claim 8, which is characterized in that
The second acquisition unit, for obtaining from the corresponding input-buffer space of second Media Stream in first base
Received first audio frame and the first video frame, the input-buffer space are used to cache received second recently when between punctual
The audio/video frames of Media Stream;By the minimum time in the timestamp of first audio frame and the timestamp of first video frame
Stamp was determined as the second fiducial time.
10. device as claimed in claim 8, which is characterized in that the acquisition module includes:
Receiving unit, for receiving next audio/video frames of second audio/video frames in first Media Stream;
Third acquiring unit, it is corresponding defeated from second Media Stream if being audio frame for next audio/video frames
Enter to obtain nearest received first audio frame in spatial cache as the first frame to be sent;
4th acquiring unit, it is corresponding defeated from second Media Stream if being video frame for next audio/video frames
Enter the key frame in the nearest received one group of video frame group of acquisition in spatial cache as the first frame to be sent, and caches institute
State the frame index number of first frame to be sent.
11. device as claimed in claim 10, which is characterized in that the setting unit, for being arranged described to be sent first
The first time stamp of frame is T0+T1-Ta, and by the first time of the first frame to be sent stamp as the frame to be sent the
One timestamp, wherein T0For the first fiducial time, TaFor the second fiducial time;When the first frame to be sent is audio frame, T1
For timestamp of the audio frame in second Media Stream, when the first frame to be sent is video frame, T1It is described
Nearest timestamp of the received video frame in second Media Stream in one group of video frame group.
12. device as claimed in claim 10, which is characterized in that the acquisition module further include:
First determination unit, for after first fiducial time when receiving the audio frame of second Media Stream,
The received audio frame is determined as the second frame to be sent;
Correspondingly, the setting unit, the second timestamp for second frame to be sent to be arranged is T0+T2-Ta, and by institute
The second timestamp for stating the second frame to be sent is stabbed as the first time of the frame to be sent, wherein T0For the first fiducial time, Ta
For the second fiducial time, T2For timestamp of second frame to be sent in second Media Stream.
13. device as claimed in claim 10, which is characterized in that the acquisition module further include:
5th acquiring unit, for after first fiducial time to receive for the first time second Media Stream key frame it
Before, when the video frame for receiving second Media Stream and when being cached with frame index number, increase the frame index number, from described
The corresponding video frame of the increased frame index number is obtained in the corresponding input-buffer space of two Media Streams as third to be sent
Frame;
6th acquiring unit, for when the video frame for receiving second Media Stream and when being cached with frame index number, from described
The key frame in received one group of video frame group recently is obtained in the corresponding input-buffer space of second Media Stream as to be sent
Third frame, and cache the frame index number of the third frame to be sent;
Correspondingly, the setting unit, the third timestamp for the third frame to be sent to be arranged is T0+T3-Ta, and by institute
The third timestamp for stating third frame to be sent is stabbed as the first time of the frame to be sent, wherein T0For the first fiducial time, Ta
For the second fiducial time, T3For timestamp of the third frame to be sent in second Media Stream.
14. device as claimed in claim 13, which is characterized in that the acquisition module further include:
Determination unit will connect when for after first fiducial time to the key frame for receiving second Media Stream for the first time
The video frame for second Media Stream received is determined as the 4th frame to be sent;
Correspondingly, the setting unit, the 4th timestamp for the 4th frame to be sent to be arranged is T0+T4-Ta, and by institute
The 4th timestamp for stating the 4th frame to be sent is stabbed as the first time of the frame to be sent, wherein T4It is the described to be sent 4th
Timestamp of the frame in second Media Stream.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610937653.1A CN106488255B (en) | 2016-10-24 | 2016-10-24 | A kind of method and device of switching media stream |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610937653.1A CN106488255B (en) | 2016-10-24 | 2016-10-24 | A kind of method and device of switching media stream |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106488255A CN106488255A (en) | 2017-03-08 |
CN106488255B true CN106488255B (en) | 2019-05-14 |
Family
ID=58272894
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610937653.1A Active CN106488255B (en) | 2016-10-24 | 2016-10-24 | A kind of method and device of switching media stream |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106488255B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106937131B (en) * | 2017-03-31 | 2021-02-19 | 广州方硅信息技术有限公司 | Video stream switching method, device and equipment |
CN110113621B (en) * | 2018-02-01 | 2023-03-03 | 腾讯科技(深圳)有限公司 | Media information playing method and device, storage medium and electronic device |
CN111327923B (en) * | 2018-12-13 | 2021-08-20 | 华为技术有限公司 | Audio stream switching method and device |
CN111629158B (en) * | 2019-02-28 | 2021-08-03 | 华为技术有限公司 | Audio stream and video stream synchronous switching method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001103350A (en) * | 1999-09-29 | 2001-04-13 | Casio Comput Co Ltd | Recorder for photographed image |
CN101065963A (en) * | 2003-08-29 | 2007-10-31 | Rgb网络有限公司 | Video multiplexer system providing low-latency vcr-like effects and program changes |
CN101854533A (en) * | 2010-06-10 | 2010-10-06 | 华为技术有限公司 | Frequency channel switching method, device and system |
CN102123307A (en) * | 2011-01-20 | 2011-07-13 | 深圳市同洲电子股份有限公司 | Method and system for playing programs |
CN101345665B (en) * | 2008-08-28 | 2011-08-24 | 华为技术有限公司 | Method and system for media surface controlling signaling surface |
CN102905188A (en) * | 2012-11-01 | 2013-01-30 | 北京奇艺世纪科技有限公司 | Video code stream switching method and device |
-
2016
- 2016-10-24 CN CN201610937653.1A patent/CN106488255B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001103350A (en) * | 1999-09-29 | 2001-04-13 | Casio Comput Co Ltd | Recorder for photographed image |
CN101065963A (en) * | 2003-08-29 | 2007-10-31 | Rgb网络有限公司 | Video multiplexer system providing low-latency vcr-like effects and program changes |
CN101345665B (en) * | 2008-08-28 | 2011-08-24 | 华为技术有限公司 | Method and system for media surface controlling signaling surface |
CN101854533A (en) * | 2010-06-10 | 2010-10-06 | 华为技术有限公司 | Frequency channel switching method, device and system |
CN102123307A (en) * | 2011-01-20 | 2011-07-13 | 深圳市同洲电子股份有限公司 | Method and system for playing programs |
CN102905188A (en) * | 2012-11-01 | 2013-01-30 | 北京奇艺世纪科技有限公司 | Video code stream switching method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106488255A (en) | 2017-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106488255B (en) | A kind of method and device of switching media stream | |
CN107566918B (en) | A kind of low delay under video distribution scene takes the neutrel extraction of root | |
JP4702397B2 (en) | Content server, information processing apparatus, network device, content distribution method, information processing method, and content distribution system | |
CN102036058B (en) | Method, server, terminal and system for switching videos in video monitoring system | |
CN101938456B (en) | Method, device and system for reducing media delays | |
CN106303682B (en) | Method, apparatus, terminal and the server of channel switching | |
CN108471548B (en) | Live video quick playing method and device | |
CN107071549A (en) | Many player fast switch over method, device and storage medium under single decoder | |
CN109714622A (en) | A kind of video data handling procedure, device and electronic equipment | |
CN202759552U (en) | Multi-terminal video synchronous playing system based on IP network | |
CN109218759A (en) | Push method, apparatus, server and the storage medium of Media Stream | |
US10925014B2 (en) | Method and apparatus for synchronization in a network | |
CN111147362A (en) | Multi-user instant messaging method, system, device and electronic equipment | |
CN106792244A (en) | Net cast method and device | |
JP5428734B2 (en) | Network device, information processing apparatus, stream switching method, information processing method, program, and content distribution system | |
CN105959786A (en) | Audio and video playing method and device | |
CN104253696A (en) | Police hand-held voice intercommunication method and system based on Internet | |
US20210227005A1 (en) | Multi-user instant messaging method, system, apparatus, and electronic device | |
CN101714977A (en) | Method, system and device for modifying playing streaming media | |
JP4735666B2 (en) | Content server, information processing apparatus, network device, content distribution method, information processing method, and content distribution system | |
CN101540871B (en) | Method and terminal for synchronously recording sounds and images of opposite ends based on circuit domain video telephone | |
CN104869347A (en) | Video calling method and apparatus | |
CN106604085A (en) | Video sharing method and video sharing device | |
CN105898233A (en) | Audio and video playing method and apparatus in video monitoring | |
CN108632681B (en) | Method, server and terminal for playing media stream |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17 Applicant after: Guangzhou KuGou Networks Co., Ltd. Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F Applicant before: Guangzhou KuGou Networks Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |