CN106488255A - A kind of method and device of switching media stream - Google Patents

A kind of method and device of switching media stream Download PDF

Info

Publication number
CN106488255A
CN106488255A CN201610937653.1A CN201610937653A CN106488255A CN 106488255 A CN106488255 A CN 106488255A CN 201610937653 A CN201610937653 A CN 201610937653A CN 106488255 A CN106488255 A CN 106488255A
Authority
CN
China
Prior art keywords
frame
sent
audio
media stream
video
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
CN201610937653.1A
Other languages
Chinese (zh)
Other versions
CN106488255B (en
Inventor
吕现广
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201610937653.1A priority Critical patent/CN106488255B/en
Publication of CN106488255A publication Critical patent/CN106488255A/en
Application granted granted Critical
Publication of CN106488255B publication Critical patent/CN106488255B/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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23113Content 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content 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 device of switching media stream, belongs to field of Internet communication.Methods described includes:The handover request that client sends is received when the first Media Stream is played, and the handover 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 very first time stamp of the frame to be sent is set, after very first time stamp is located at the timestamp of the first audio/video frames and and the time interval between the timestamp of first audio/video frames be less than predetermined threshold value, 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:Receiver module, acquisition module, setup module and sending module.The present invention can avoid of short duration blank screen or tone-off phenomenon occur during switching.

Description

A kind of method and device of switching media stream
Technical field
The present invention relates to field of Internet communication, more particularly to a kind of method and device of switching media stream.
Background technology
With the development of Internet technology, increasing user uses direct broadcast service.When live, the first of main broadcaster is whole End can set up network connection and the second terminal of spectators between, the media that then first terminal will be gathered by the network connection Stream is sent to second terminal, and second terminal plays the Media Stream, and such spectators are it is seen that the performance of main broadcaster, realizes viewing master That broadcast is live.
Spectators may want to watch the live of other main broadcasters when the Media Stream that second terminal is played is watched, and now spectators need Currently received for second terminal Media Stream is switched to the Media Stream of other main broadcasters.The mode of switching media stream is permissible at present For:Second terminal first disconnects the network connection and first terminal between, then resettles third terminal corresponding with other main broadcasters Between network connection, then the Media Stream that third terminal sends is received by network connection between third terminal, then broadcasts The Media Stream of third terminal transmission is put, such spectators are perceived by the live of other main broadcasters.
During the present invention is realized, inventor has found that prior art at least has problems with:
Network connection between the first terminal of the main broadcaster for first disconnecting current live in switching media stream, resettles other Network connection between the third terminal of main broadcaster, causes of short duration blank screen and tone-off phenomenon of video in order occur in switching.
Content of the invention
Of short duration blank screen and tone-off phenomenon is avoided the occurrence of during for switching media stream, the invention provides a kind of switching media The method and device of stream.The technical scheme is as follows:
On the one hand, there is provided a kind of method of switching media stream, methods described include:
The handover request that client sends is received when the first Media Stream is played, and the handover 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 very first time stamp of the frame to be sent is set, very first time stamp be located at the first audio/video frames timestamp it Afterwards and and time interval between the timestamp of first audio/video frames be less than predetermined threshold value, first audio/video frames are The last audio/video frames sent to the client;
The frame to be sent is sent to the client.
Optionally, the very first time stamp that frame to be sent is set, including:
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 that the sound of first Media Stream sent to the client when receiving the switching command is regarded Frequency frame;
Obtained for the second fiducial time, second fiducial time is at first fiducial time described in reception recently The timestamp of the audio/video frames of the second Media Stream;
According to first fiducial time and second fiducial time, the very first time stamp of the frame to be sent is set.
Optionally, the second fiducial time of the acquisition, including:
Received when obtaining in first fiducial time from the corresponding input-buffer space of second Media Stream recently The first audio frame and the first frame of video, the input-buffer space is used for the audio frequency and video of the second Media Stream that caching has been received Frame;
Minimum time stamp in the timestamp of the timestamp of first audio frame and first frame of video is defined as Second fiducial time.
Optionally, acquisition frame to be sent, including:
Receive next audio/video frames of second audio/video frames in first Media Stream;
If next audio/video frames are audio frame, obtain from the corresponding input-buffer space of second Media Stream The first audio frame of nearest reception is taken as first frame to be sent;
If next audio/video frames are frame of video, obtain from the corresponding input-buffer space of second Media Stream The key frame in one group of frame of video group of nearest reception is taken as first frame to be sent, and cache 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 The very first time stabs, including:
The very first time stamp for arranging first frame to be sent is T0+T1-Ta, wherein T0For the first fiducial time, TaFor Two fiducial times;
The T when first frame to be sent is audio frame1For timestamp of the audio frame in second Media Stream, The T when first frame to be sent is frame of video1For the frame of video that receives recently in one group of frame of video group described second Timestamp in Media Stream.
Optionally, acquisition frame to be sent also includes:
After first fiducial time when the audio frame of second Media Stream is received, by the sound of the reception Frequency frame is defined as the second frame to be sent;
Described according to first fiducial time and second fiducial time, the very first time of the frame to be sent is set Stamp, including:
The second timestamp for arranging second frame to be sent is T0+T2-Ta, wherein T0For the first fiducial time, TaFor Two fiducial times, T2For timestamp of second frame to be sent in second Media Stream.
Optionally, acquisition frame to be sent also includes:
After first fiducial time to before the key frame for receiving second Media Stream first, described when receiving The frame of video of the second Media Stream and when being cached with frame index number, increases the frame index number, corresponding from second Media Stream The corresponding frame of video of frame index number of the increase is obtained in input-buffer space as the 3rd frame to be sent;
When the frame of video for receiving second Media Stream and when being cached with frame index number, correspond to from second Media Stream Input-buffer space in obtain key frame in the one group of frame of video group for receiving recently as the 3rd frame to be sent, and cache institute State the frame index number of the 3rd frame to be sent;
Described according to first fiducial time and second fiducial time, the very first time of the frame to be sent is set Stamp, including:
The 3rd timestamp for arranging the 3rd frame to be sent is T0+T3-Ta, wherein T0For the first fiducial time, TaFor Two fiducial times, T2For timestamp of the 3rd frame to be sent in second Media Stream.
Optionally, acquisition frame to be sent also includes:
After first fiducial time to receive first second Media Stream key frame when, by receive described the The frame of video of two Media Streams is defined as the 4th frame to be sent;
Described according to first fiducial time and second fiducial time, the very first time of the frame to be sent is set Stamp, including:
The 3rd timestamp for arranging the 4th frame to be sent is T0+T4-Ta, wherein T4Exist for the 3rd frame to be sent Timestamp in second Media Stream.
On the other hand, there is provided a kind of device of switching media stream, described device include:
Receiver module, for receiving the handover request that client sends, the handover request when the first Media Stream is played Carry the stream title of the second Media Stream;
Acquisition module, 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 very first time for arranging the frame to be sent are stabbed, and the very first time stamp is regarded positioned at the first sound After the timestamp of frequency frame and and time interval between the timestamp of first audio/video frames be less than predetermined threshold value, 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, under second audio/video frames of the first fiducial time The timestamp of one audio/video frames, to described in the client transmission during the second audio/video frames reception switching command The audio/video frames of the first Media Stream;
Second acquisition unit, for obtaining for the second fiducial time, second fiducial time be in first benchmark Between when the timestamp of the audio/video frames of second Media Stream that receives recently;
Arranging unit, for according to first fiducial time and second fiducial time, arranging the frame to be sent The very first time stamp.
Optionally, the second acquisition unit, for obtaining from the corresponding input-buffer space of second Media Stream The first audio frame for being received at first fiducial time recently and the first frame of video, the input-buffer space are used for caching The audio/video frames of the second Media Stream for having received;By the timestamp of first audio frame and the timestamp of first frame of video In minimum time stamp be defined 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;
3rd acquiring unit, if being audio frame for next audio/video frames, corresponds to from second Media Stream Input-buffer space in obtain the first audio frame for receiving recently as first frame to be sent;
4th acquiring unit, if being frame of video for next audio/video frames, corresponds to from second Media Stream Input-buffer space in obtain key frame in the one group of frame of video group for receiving recently as first frame to be sent, and delay Deposit the frame index number of first frame to be sent.
Optionally, the arranging unit, the very first time for arranging first frame to be sent are stabbed as T0+T1-Ta, its Middle T0For the first fiducial time, TaFor the second fiducial time;The T when first frame to be sent is audio frame1For the audio frame Timestamp in second Media Stream, the T when first frame to be sent is frame of video1For in one group of frame of video group Timestamp of the frame of video for receiving recently in second Media Stream.
Optionally, the acquisition module also includes:
First determining unit, for when the audio frame for receiving second Media Stream after first fiducial time When, the audio frame of the reception is defined as the second frame to be sent;
Accordingly, the arranging unit, the second timestamp for arranging second frame to be sent are T0+T2-Ta, its Middle T0For the first fiducial time, TaFor the second fiducial time, T2For second frame to be sent in second Media Stream when Between stab.
Optionally, the acquisition module also includes:
5th acquiring unit, for the key frame for receiving second Media Stream first after first fiducial time Before, when the frame of video for receiving second Media Stream and when frame index number is cached with, increase the frame index number, from described The corresponding frame of video of frame index number of the increase is obtained in the corresponding input-buffer space of second Media Stream as to be sent Three frames;
6th acquiring unit, for when the frame of video for receiving second Media Stream and when being cached with frame index number, from Key frame in the one group of frame of video group for receiving recently is obtained in the corresponding input-buffer space of second Media Stream as treating The 3rd frame is sent, and caches the frame index number of the 3rd frame to be sent;
Accordingly, the arranging unit, the 3rd timestamp for arranging the 3rd frame to be sent are T0+T3-Ta, its Middle T0For the first fiducial time, TaFor the second fiducial time, T2For the 3rd frame to be sent in second Media Stream when Between stab.
Optionally, the acquisition module also includes:
Determining unit, for after first fiducial time to receive first second Media Stream key frame when, The frame of video of second Media Stream for receiving is defined as the 4th frame to be sent;
Accordingly, the arranging unit, the 3rd timestamp for arranging the 4th frame to be sent are T0+T4-Ta, its Middle T4For timestamp of the 3rd frame to be sent in second Media Stream.
The beneficial effect of technical scheme that the present invention is provided is:
By obtaining the frame to be sent in the second Media Stream, and the very first time stamp of setting frame to be sent, when making first Between stamp be located at the timestamp of the first audio/video frames after and be less than with the time interval between the timestamp of the first audio/video frames Predetermined threshold value, the first audio/video frames are the last audio/video frames sent to client, such client receive pending When frame is sent, the next frame that frame to be sent is the first audio/video frames will be considered that according to very first time stamp, and can be successfully decoded and play Frame to be sent, and because the first media sent when the first audio/video frames can receive handover request for gateway server The audio/video frames of stream, avoid the occurrence of of short duration blank screen and tone-off phenomenon during so as to switching media stream.
Description of the drawings
Fig. 1 is a kind of network architecture schematic diagram that the embodiment of the present invention one is provided;
Fig. 2 is a kind of method flow diagram of switching media stream that the embodiment of the present invention two is provided;
Fig. 3 is a kind of method flow diagram of switching media stream that the embodiment of the present invention three is provided;
Fig. 4 is a kind of apparatus structure schematic diagram of switching media stream that the embodiment of the present invention four is provided;
Fig. 5 is a kind of server architecture schematic diagram that the embodiment of the present invention five is provided.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying 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, the network architecture includes:Client 1, gateway takes Business device 2 and media stream server 3.
Media stream server 3 includes the Media Stream that at least one main broadcaster is produced when doing live, sends matchmaker to gateway server 2 Body stream.
Gateway server 3 is used for receiving the Media Stream of the transmission of media stream server 3, and forwards the Media Stream to client 1.
Client 1 can be the Flash player in live page or live plug-in unit etc., for receiving the Media Stream And play the Media Stream, so that spectators viewing main broadcaster's is live.
Embodiment two
Referring to Fig. 2, a kind of method of switching media stream is embodiments provided, including:
Step 201:The handover request that client sends is received when the first Media Stream is played, and the handover request carries second The stream title of Media Stream.
Step 202:Frame to be sent is obtained, frame to be sent is the audio/video frames in corresponding second Media Stream of the stream title.
Step 203:Arrange frame to be sent the very first time stamp, the very first time stamp be located at the first audio/video frames timestamp it Afterwards and and time interval between the timestamp of the first audio/video frames be less than predetermined threshold value, the first audio/video frames are the last time To the audio/video frames that client sends.
Step 204:Frame to be sent is sent to client.
In embodiments of the present invention, stabbed by arranging the very first time of frame to be sent, make very first time stamp be located at the first sound After the timestamp of frame of video and and time interval between the timestamp of the first audio/video frames be less than predetermined threshold value, the first sound Frame of video is the last audio/video frames sent to client, so avoid the occurrence of in switching media stream of short duration blank screen and Tone-off phenomenon.
Embodiment three
Embodiments provide a kind of method of switching media stream.The method is applied to broadcast using client in user The first Media Stream process of the first main broadcaster is put, user can make client switching that second Media Stream of the second main broadcaster is played, and lead to Cross 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 can as follows flow process switching, including:
Step 301:Gateway server receives the handover request that client sends, and the handover request carries the second Media Stream Stream title.
First Media Stream of the live generation of currently used the first main broadcaster of client terminal playing of user, when needing client terminal playing During the second Media Stream of the live generation of two main broadcasters, user only needs to select the stream title of the second Media Stream on the client and submit to Switching command is to client.Then client sends the handover request of the stream title for carrying the second Media Stream to gateway server, Request gateway server switching media stream.
Gateway server receives the handover request, the stream title of the second Media Stream carried according to the handover request, judges Locally whether the second Media Stream is cached with, if it did not, sending according to the stream name request media stream server of the second Media Stream Audio/video frames of the second Media Stream, and when the audio/video frames of the second Media Stream are received, distribute input-buffer space, first by the The audio/video frames of two Media Streams are buffered in the input-buffer space.
As gateway server forwarding media streaming server is sent to the Media Stream of client, and receive in gateway server First the audio/video frames can be buffered in the Media Stream during audio/video frames of the Media Stream sent to media stream server corresponding defeated Enter in spatial cache, so gateway server is local when gateway server forwards the second Media Stream to the client of other users Second Media Stream is just cached with, and otherwise gateway server does not locally just cache the second Media Stream.
Step 302:Execution step 303 after complete second audio/video frames to be sent such as gateway server, the second audio/video frames are Audio/video frames in the first Media Stream being currently transmitted.
During the first Media Stream of the live generation of the first main broadcaster of client terminal playing, 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:Gateway server when the switching command is received, by the first media being currently transmitted The audio/video frames of stream are referred to as the second audio/video frames, and judge whether the data that the second audio/video frames include have sent, if sent Complete, step 303 is immediately performed, if do not sent, remaining is not sent etc. what complete second audio/video frames to be sent included Data, and when the data for being left not send have been sent, it is immediately performed step 303.
Step 303:When gateway server obtains the first benchmark when next audio/video frames of the second audio/video frames are received Between, the first fiducial time was the timestamp of next audio frame.
After first fiducial time was located at the timestamp of the second audio/video frames, and time interval between the two is less than pre- If threshold value.
Step 304:Gateway server obtained for the second fiducial time, and the second fiducial time was nearest the second Media Stream for receiving Audio/video frames timestamp.
This step can be:Gateway server obtains nearest reception from the corresponding input-buffer space of the second Media Stream The time stamp T of audio framebTime stamp T with the nearest frame of video for receivingc, compare the time stamp T of the audio frame of receptionbWith nearest The time stamp T of the frame of video of receptionc, select minimum time to stab as the second fiducial time.
Step 305:Gateway server obtains the first frame to be sent according to the next audio/video frames, and the first frame to be sent is the Audio/video frames in two Media Streams.
Audio/video frames in Media Stream include at least one in audio frame and frame of video, so next audio/video frames may For audio frame, it is also possible to for frame of video.
In this step, when next audio/video frames are audio frame, gateway server is corresponding defeated from the first Media Stream Enter in spatial cache to obtain the first audio frame for receiving recently as the first frame to be sent;When next audio/video frames are frame of video When, gateway server obtains the pass in one group of frame of video group of nearest reception from the corresponding input-buffer space of the first Media Stream Key frame is used as the first frame to be sent.
Wherein, one group of frame of video group includes multi-frame video frame, and generally the first frame in one group of frame of video group is key frame, Other frames in addition to the first frame are non-key frame.Client directly can be decoded to key frame, and non-key frame is entered Need to decode using key frame during row decoding, need first to select key frame to send for this.
Step 306:According to the very first time stamp that the first fiducial time and the second fiducial time arrange the first frame to be sent it is T0+T1-Ta, wherein T0For the first fiducial time, TaFor the second fiducial time, if frame to be sent regards frame for sound, T1For pending Send time stamp T of first frame in the second Media Streamb, when if frame to be sent is frame of video, T1Corresponding defeated for the second Media Stream Enter the time stamp T of the frame of video for being received in spatial cache recentlyc.
Further, if the 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 TcClose, and the second fiducial time was time stamp TbAnd TcOne of, so set The very first time stamp T of the first frame to be sent that puts0+T1-TaAfter the timestamp of the second audio/video frames and with the second audio/video frames Timestamp between time interval also less, less than predetermined threshold value.
Step 307:Gateway server sends the first frame to be sent to client, so that client is played according to very first time stamp First frame to be sent.
Wherein, the second audio/video frames are the audio/video frames for being sent before the first fiducial time recently, and client is currently just Play be probably the second audio/video frames, due to the very first time stamp after the timestamp of the second audio/video frames and with the second sound Time interval between the timestamp of frame of video is less and is less than predetermined threshold value, and such client just will be considered that the first frame to be sent For the next audio/video frames after the second audio/video frames, stabbed according to the very first time, the first frame to be sent can be successfully decoded and broadcasts The first frame to be sent is put, so as to avoid client from of short duration blank screen phenomenon occur.
Gateway server continues to the audio frequency and video of media stream server transmission after the first frame to be sent has been sent Frame, the audio/video frames may be audio frame, it is also possible to for frame of video.Execution step 308 when audio frame is received, when receiving 310 are executed during frame of video.
Step 308:The sound of the second Media Stream for receiving is regarded frame as the second frame to be sent by gateway server, according to first It is T that fiducial time and the second fiducial time arrange the second timestamp of the second frame to be sent0+T2-Ta, wherein T2For to be sent Timestamp of two frames in the second Media Stream.
As media stream server continuously sends the time between audio/video frames and two audio/video frames of arbitrary neighborhood Interval is equal and less, so the second timestamp of setting and the last the second media sent to client of gateway server Time interval between the audio/video frames of stream is also less, i.e. the sound of the second timestamp and the second currently playing Media Stream of client Time interval between frame of video is less, typically smaller than predetermined threshold value.
Step 209:Gateway server sends the second frame to be sent to client, so that client is played according to the second timestamp Second frame to be sent.
Wherein, due between the time between the audio/video frames of the second currently playing Media Stream of the second timestamp and client Every less, such client just will be considered that the second frame to be sent is the next audio frequency and video after its currently playing audio/video frames Frame, can be successfully decoded and play the second frame to be sent according to the second timestamp.
Step 210:Gateway server judges whether the frame of video of the second Media Stream for receiving is key frame, if not pass Key frame, then execution step 211, if key frame, execution step 214.
Step 211:Gateway server obtains the second frame of video as pending from the corresponding spatial cache of the second Media Stream Send the 3rd frame, the second frame of video be next frame of video of the last frame of video sent to client in the second Media Stream or Key frame in the spatial cache in nearest one group of frame of video group.
Wherein, gateway server is after the first fiducial time to before the key frame for receiving the second Media Stream first In time period, if the frame of video of the second Media Stream for receiving is non-key frame, from the corresponding spatial cache of the second Media Stream Middle acquisition frame of video is simultaneously sent to client.
Within the time period, when non-key frame is received, first judge whether to be cached with frame index number, if do not cached Frame index number, then show the first frame to be sent for audio frame, and currently received non-key frame is to be connect within the time period for the first time The frame of video of the second Media Stream that receives, does not send the key frame of the second Media Stream, before this therefore from second to client The key frame in nearest one group of frame of video group is obtained in the corresponding spatial cache of Media Stream as the 3rd frame to be sent, and cache this The call number of key frame.
If caching frame index number, due within the time period gateway server every time send frame of video when by caching Frame index number is updated to the frame index number of the frame of video.So the frame index number of caching sends second for the last to client The frame index number of the frame of video in Media Stream.Accordingly, the frame index number of gateway server increase caching obtains the second frame of video Frame index number, the such as frame index number to caching adds 1 and obtains the frame index number of the second frame of video, according to the frame of the second frame of video Call number, obtains the second frame of video as the 3rd frame to be sent from the corresponding spatial cache of the second Media Stream.
Step 212:Gateway server arranges the of the 3rd 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 frame of video in the second Media Stream.
Time interval wherein between the audio/video frames of the second currently playing Media Stream of the 3rd timestamp and client is relatively Little, typically smaller than predetermined threshold value.
Step 213:Gateway server sends the 3rd frame to be sent to client, so that client is played according to the 3rd timestamp 3rd frame to be sent.
Wherein, due between the time between the audio/video frames of the second currently playing Media Stream of the 3rd timestamp and client Every less, such client just will be considered that the 3rd frame to be sent is the next audio frequency and video after its currently playing audio/video frames Frame, can be successfully decoded and play the 3rd frame to be sent according to the 3rd timestamp.
Step 214:Gateway server using the key frame for receiving as the 4th frame to be sent, according to the first fiducial time and the It is T that two fiducial times arranged the 4th timestamp of the 4th frame to be sent0+T4-Ta, wherein T4For the 4th frame to be sent in the second matchmaker Timestamp in body stream.
Wherein the 4th timestamp and the audio/video frames of the last the second Media Stream sent to client of gateway server Between time interval also less, i.e., between the audio/video frames of the second currently playing Media Stream of the 4th timestamp and client Time interval is less, typically smaller than predetermined threshold value.
Step 215:Gateway server sends the 4th frame to be sent to client, so that client is played according to the 4th timestamp 4th frame to be sent.
Wherein, due between the time between the audio/video frames of the second currently playing Media Stream of the 4th timestamp and client Every less, such client just will be considered that the 4th frame to be sent is the next audio frequency and video after its currently playing audio/video frames Frame, can be successfully decoded and play the 4th frame to be sent according to the 4th timestamp.
After the key frame is received first, as long as gateway server receives the second media of media stream server transmission The frame of video of stream, just by the frame of video for make frame to be sent and continue executing with step 214 and 215 the step of, by the frame to be sent Client is sent to, 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 that frame to be sent is set One timestamp, after making very first time stamp be located at the timestamp of the first audio/video frames and and the timestamp of the first audio/video frames between Time interval be less than predetermined threshold value, the first audio/video frames are the last audio/video frames sent to client, so objective Family end will be considered that, according to very first time stamp, the next frame that frame to be sent is the first audio/video frames when frame to be sent is received, and Can be successfully decoded and play frame to be sent, and because when the first audio/video frames can receive handover request for gateway server just In the audio/video frames of the first Media Stream for sending, of short duration blank screen and tone-off phenomenon during so as to switching media stream, is avoided the occurrence of.
Example IV
Referring to Fig. 4, a kind of device 400 of switching media stream is embodiments provided, described device 400 includes:
Receiver module 401, for receiving the handover request that client sends when the first Media Stream is played, the switching please Seek the stream title for carrying the second Media Stream;
Acquisition module 402, 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 very first time for arranging the frame to be sent are stabbed, and the very first time stamp is located at the first sound After the timestamp of frame of video and and time interval between the timestamp of first audio/video frames be less than predetermined threshold value, institute It is the last audio/video frames sent to the client to state the first audio/video frames;
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, under second audio/video frames of the first fiducial time The timestamp of one audio/video frames, to described in the client transmission during the second audio/video frames reception switching command The audio/video frames of the first Media Stream;
Second acquisition unit, for obtaining for the second fiducial time, second fiducial time be in first benchmark Between when the timestamp of the audio/video frames of second Media Stream that receives recently;
Arranging unit, for according to first fiducial time and second fiducial time, arranging the frame to be sent The very first time stamp.
Optionally, the second acquisition unit, for obtaining from the corresponding input-buffer space of second Media Stream The first audio frame for being received at first fiducial time recently and the first frame of video, the input-buffer space are used for caching The audio/video frames of the second Media Stream for having received;By the timestamp of first audio frame and the timestamp of first frame of video In minimum time stamp be defined 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;
3rd acquiring unit, if being audio frame for next audio/video frames, corresponds to from second Media Stream Input-buffer space in obtain the first audio frame for receiving recently as first frame to be sent;
4th acquiring unit, if being frame of video for next audio/video frames, corresponds to from second Media Stream Input-buffer space in obtain key frame in the one group of frame of video group for receiving recently as first frame to be sent, and delay Deposit the frame index number of first frame to be sent.
Optionally, the arranging unit, the very first time for arranging first frame to be sent are stabbed as T0+T1-Ta, its Middle T0For the first fiducial time, TaFor the second fiducial time;The T when first frame to be sent is audio frame1For the audio frame Timestamp in second Media Stream, the T when first frame to be sent is frame of video1For in one group of frame of video group Timestamp of the frame of video for receiving recently in second Media Stream.
Optionally, the acquisition module 402 also includes:
First determining unit, for when the audio frame for receiving second Media Stream after first fiducial time When, the audio frame of the reception is defined as the second frame to be sent;
Accordingly, the arranging unit, the second timestamp for arranging second frame to be sent are T0+T2-Ta, its Middle T0For the first fiducial time, TaFor the second fiducial time, T2For second frame to be sent in second Media Stream when Between stab.
Optionally, the acquisition module 402 also includes:
5th acquiring unit, for the key frame for receiving second Media Stream first after first fiducial time Before, when the frame of video for receiving second Media Stream and when frame index number is cached with, increase the frame index number, from described The corresponding frame of video of frame index number of the increase is obtained in the corresponding input-buffer space of second Media Stream as to be sent Three frames;
6th acquiring unit, for when the frame of video for receiving second Media Stream and when being cached with frame index number, from Key frame in the one group of frame of video group for receiving recently is obtained in the corresponding input-buffer space of second Media Stream as treating The 3rd frame is sent, and caches the frame index number of the 3rd frame to be sent;
Accordingly, the arranging unit, the 3rd timestamp for arranging the 3rd frame to be sent are T0+T3-Ta, its Middle T0For the first fiducial time, TaFor the second fiducial time, T2For the 3rd frame to be sent in second Media Stream when Between stab.
Optionally, the acquisition module 402 also includes:
Determining unit, for after first fiducial time to receive first second Media Stream key frame when, The frame of video of second Media Stream for receiving is defined as the 4th frame to be sent;
Accordingly, the arranging unit, the 3rd timestamp for arranging the 4th frame to be sent are T0+T4-Ta, its Middle T4For timestamp of the 3rd 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 that frame to be sent is set One timestamp, after making very first time stamp be located at the timestamp of the first audio/video frames and and the timestamp of the first audio/video frames between Time interval be less than predetermined threshold value, the first audio/video frames are the last audio/video frames sent to client, so objective Family end will be considered that, according to very first time stamp, the next frame that frame to be sent is the first audio/video frames when frame to be sent is received, and Can be successfully decoded and play frame to be sent, and because when the first audio/video frames can receive handover request for gateway server just In the audio/video frames of the first Media Stream for sending, of short duration blank screen and tone-off phenomenon during so as to switching media stream, is avoided the occurrence of.
Embodiment 5
It is the structural representation of server provided in an embodiment of the present invention 500 referring to Fig. 5, Fig. 5.The server 500 is permissible For above-mentioned gateway server, server 500 can because of configuration or performance is different and the larger difference of producing ratio, can 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 permissible It is of short duration storage or persistently storage.The program for being stored in storage medium 530 can include that (diagram does not have one or more modules Mark), each module can include to operate the series of instructions in server 500.Further, processor 522 is permissible Be set to communicate 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 Above operating system 541, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
It is concrete that server 500 also includes memory, and one or more than one program in the present embodiment, One of them or more than one program storage is in memory, and is configured to be held by one or more than one processor OK.Said one or more than one program bag are containing the instruction for carrying out following operation:
The handover request that client sends is received when the first Media Stream is played, and the handover 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 very first time stamp of the frame to be sent is set, very first time stamp be located at the first audio/video frames timestamp it Afterwards and and time interval between the timestamp of first audio/video frames be less than predetermined threshold value, first audio/video frames are The last audio/video frames sent to the client;
The frame to be sent is sent to the client.
Optionally, the very first time stamp that frame to be sent is set, including:
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 that the sound of first Media Stream sent to the client when receiving the switching command is regarded Frequency frame;
Obtained for the second fiducial time, second fiducial time is at first fiducial time described in reception recently The timestamp of the audio/video frames of the second Media Stream;
According to first fiducial time and second fiducial time, the very first time stamp of the frame to be sent is set.
Optionally, the second fiducial time of the acquisition, including:
Received when obtaining in first fiducial time from the corresponding input-buffer space of second Media Stream recently The first audio frame and the first frame of video, the input-buffer space is used for the audio frequency and video of the second Media Stream that caching has been received Frame;
Minimum time stamp in the timestamp of the timestamp of first audio frame and first frame of video is defined as Second fiducial time.
Optionally, acquisition frame to be sent, including:
Receive next audio/video frames of second audio/video frames in first Media Stream;
If next audio/video frames are audio frame, obtain from the corresponding input-buffer space of second Media Stream The first audio frame of nearest reception is taken as first frame to be sent;
If next audio/video frames are frame of video, obtain from the corresponding input-buffer space of second Media Stream The key frame in one group of frame of video group of nearest reception is taken as first frame to be sent, and cache 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 The very first time stabs, including:
The very first time stamp for arranging first frame to be sent is T0+T1-Ta, wherein T0For the first fiducial time, TaFor Two fiducial times;
The T when first frame to be sent is audio frame1For timestamp of the audio frame in second Media Stream, The T when first frame to be sent is frame of video1For the frame of video that receives recently in one group of frame of video group described second Timestamp in Media Stream.
Optionally, acquisition frame to be sent also includes:
After first fiducial time when the audio frame of second Media Stream is received, by the sound of the reception Frequency frame is defined as the second frame to be sent;
Described according to first fiducial time and second fiducial time, the very first time of the frame to be sent is set Stamp, including:
The second timestamp for arranging second frame to be sent is T0+T2-Ta, wherein T0For the first fiducial time, TaFor Two fiducial times, T2For timestamp of second frame to be sent in second Media Stream.
Optionally, acquisition frame to be sent also includes:
After first fiducial time to before the key frame for receiving second Media Stream first, described when receiving The frame of video of the second Media Stream and when being cached with frame index number, increases the frame index number, corresponding from second Media Stream The corresponding frame of video of frame index number of the increase is obtained in input-buffer space as the 3rd frame to be sent;
When the frame of video for receiving second Media Stream and when being cached with frame index number, correspond to from second Media Stream Input-buffer space in obtain key frame in the one group of frame of video group for receiving recently as the 3rd frame to be sent, and cache institute State the frame index number of the 3rd frame to be sent;
Described according to first fiducial time and second fiducial time, the very first time of the frame to be sent is set Stamp, including:
The 3rd timestamp for arranging the 3rd frame to be sent is T0+T3-Ta, wherein T0For the first fiducial time, TaFor Two fiducial times, T2For timestamp of the 3rd frame to be sent in second Media Stream.
Optionally, acquisition frame to be sent also includes:
After first fiducial time to receive first second Media Stream key frame when, by receive described the The frame of video of two Media Streams is defined as the 4th frame to be sent;
Described according to first fiducial time and second fiducial time, the very first time of the frame to be sent is set Stamp, including:
The 3rd timestamp for arranging the 4th frame to be sent is T0+T4-Ta, wherein T4Exist for the 3rd 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 that frame to be sent is set One timestamp, after making very first time stamp be located at the timestamp of the first audio/video frames and and the timestamp of the first audio/video frames between Time interval be less than predetermined threshold value, the first audio/video frames are the last audio/video frames sent to client, so objective Family end will be considered that, according to very first time stamp, the next frame that frame to be sent is the first audio/video frames when frame to be sent is received, and Can be successfully decoded and play frame to be sent, and because when the first audio/video frames can receive handover request for gateway server just In the audio/video frames of the first Media Stream for sending, of short duration blank screen and tone-off phenomenon during so as to switching media stream, is avoided the occurrence of.
One of ordinary skill in the art will appreciate that all or part of step for realizing above-described embodiment can pass through hardware To complete, it is also possible to which the hardware for being instructed correlation by program is completed, and described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvement that is made etc., should be included within the scope of the present invention.

Claims (16)

1. a kind of method of switching media stream, it is characterised in that methods described includes:
The handover request that client sends is received when the first Media Stream is played, and the handover 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;
The very first time stamp of the frame to be sent is set, after very first time stamp is located at the timestamp of the first audio/video frames and And the time interval between the timestamp of first audio/video frames is less than predetermined threshold value, and first audio/video frames are nearest The audio/video frames for once sending to the client;
The frame to be sent is sent to the client.
2. the method for claim 1, it is characterised in that the very first time stamp of setting frame to be sent, including:
Obtained for the first fiducial time, first fiducial time is the timestamp of next audio/video frames of the second audio/video frames, institute The audio/video frames that the second audio/video frames are first Media Streams sent when receiving the switching command are stated to the client;
Obtained for the second fiducial time, second fiducial time is described second for being received at first fiducial time recently The timestamp of the audio/video frames of Media Stream;
According to first fiducial time and second fiducial time, the very first time stamp of the frame to be sent is set.
3. method as claimed in claim 2, it is characterised in that the second fiducial time of the acquisition, including:
The received recently when obtaining in first fiducial time from the corresponding input-buffer space of second Media Stream One audio frame and the first frame of video, the input-buffer space are used for the audio/video frames of the second Media Stream that caching has been received;
Minimum time stamp in the timestamp of the timestamp of first audio frame and first frame of video is defined as second Fiducial time.
4. method as claimed in claim 2, it is characterised in that acquisition frame to be sent, including:
Receive next audio/video frames of second audio/video frames in first Media Stream;
If next audio/video frames are audio frame, obtain most from the corresponding input-buffer space of second Media Stream The first audio frame that proximity is received is used as first frame to be sent;
If next audio/video frames are frame of video, obtain most from the corresponding input-buffer space of second Media Stream Key frame in one group of frame of video group that proximity is received is used as first frame to be sent, and caches the frame of first frame to be sent Call number.
5. method as claimed in claim 4, it is characterised in that described according to first fiducial time and second benchmark Time, the very first time stamp of the frame to be sent is set, including:
The very first time stamp for arranging first frame to be sent is T0+T1-Ta, wherein T0For the first fiducial time, TaFor the second base Between punctual;
The T when first frame to be sent is audio frame1For timestamp of the audio frame in second Media Stream, work as institute The first frame to be sent is stated for T during frame of video1For the nearest frame of video for receiving in one group of frame of video group in second media Timestamp in stream.
6. method as claimed in claim 4, it is characterised in that acquisition frame to be sent also includes:
After first fiducial time when the audio frame of second Media Stream is received, by the audio frame of the reception It is defined as the second frame to be sent;
Described the very first time stamp of the frame to be sent is set according to first fiducial time and second fiducial time, Including:
The second timestamp for arranging second frame to be sent is T0+T2-Ta, wherein T0For the first fiducial time, TaFor the second base Between punctual, T2For timestamp of second frame to be sent in second Media Stream.
7. method as claimed in claim 4, it is characterised in that acquisition frame to be sent also includes:
After first fiducial time to before the key frame for receiving second Media Stream first, when receiving described second The frame of video 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 frame of video of frame index number of the increase is obtained in spatial cache as the 3rd frame to be sent;
When the frame of video for receiving second Media Stream and when being cached with frame index number, corresponding defeated from second Media Stream Enter the key frame obtained in spatial cache in the one group of frame of video group for receiving recently as the 3rd frame to be sent, and cache described treating Send the frame index number of the 3rd frame;
Described the very first time stamp of the frame to be sent is set according to first fiducial time and second fiducial time, Including:
The 3rd timestamp for arranging the 3rd frame to be sent is T0+T3-Ta, wherein T0For the first fiducial time, TaFor the second base Between punctual, T2For timestamp of the 3rd frame to be sent in second Media Stream.
8. method as claimed in claim 7, it is characterised in that acquisition frame to be sent also includes:
After first fiducial time to receive first second Media Stream key frame when, second matchmaker that will be received The frame of video of body stream is defined as the 4th frame to be sent;
Described the very first time stamp of the frame to be sent is set according to first fiducial time and second fiducial time, Including:
The 3rd timestamp for arranging the 4th frame to be sent is T0+T4-Ta, wherein T4For the 3rd frame to be sent described Timestamp in two Media Streams.
9. a kind of device of switching media stream, it is characterised in that described device includes:
Receiver module, for receiving the handover request that client sends when the first Media Stream is played, the handover request is carried The stream title of the second Media Stream;
Acquisition module, for obtaining frame to be sent, the frame to be sent is the sound in corresponding second Media Stream of the stream title Frame of video;
Setup module, the very first time for arranging the frame to be sent are stabbed, and the very first time stamp is located at the first audio/video frames Timestamp after and and time interval between the timestamp of first audio/video frames be less than predetermined threshold value, 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.
10. device as claimed in claim 9, it is characterised in that 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 frame of video, second audio/video frames are described first sent to the client when receiving the switching command The audio/video frames of Media Stream;
Second acquisition unit, for obtaining for the second fiducial time, second fiducial time be at first fiducial time The timestamp of the audio/video frames of second Media Stream for receiving recently;
Arranging unit, for according to first fiducial time and second fiducial time, arranging the of the frame to be sent One timestamp.
11. devices as claimed in claim 10, it is characterised in that
The second acquisition unit, for obtaining in first base from the corresponding input-buffer space of second Media Stream The first audio frame for being received when between punctual recently and the first frame of video, the input-buffer space are used for second that caching has been received The audio/video frames of Media Stream;By the minimum time in the timestamp of the timestamp of first audio frame and first frame of video Stamp was defined as the second fiducial time.
12. devices as claimed in claim 10, it is characterised in that the acquisition module includes:
Receiving unit, for receiving next audio/video frames of second audio/video frames in first Media Stream;
3rd acquiring unit, if being audio frame for next audio/video frames, corresponding defeated from second Media Stream Enter in spatial cache to obtain the first audio frame for receiving recently as first frame to be sent;
4th acquiring unit, if being frame of video for next audio/video frames, corresponding defeated from second Media Stream Enter the key frame obtained in spatial cache in the one group of frame of video group for receiving recently as first frame to be sent, and cache institute State the frame index number of the first frame to be sent.
13. devices as claimed in claim 12, it is characterised in that the arranging unit, for arranging described to be sent first The very first time stamp of frame is T0+T1-Ta, wherein T0For the first fiducial time, TaFor the second fiducial time;When described to be sent first T when frame is audio frame1For timestamp of the audio frame in second Media Stream, when first frame to be sent is video T during frame1For timestamp of the nearest frame of video for receiving in second Media Stream in one group of frame of video group.
14. devices as claimed in claim 12, it is characterised in that the acquisition module also includes:
First determining unit, for after first fiducial time when the audio frame of second Media Stream is received, The audio frame of the reception is defined as the second frame to be sent;
Accordingly, the arranging unit, the second timestamp for arranging second frame to be sent are T0+T2-Ta, wherein T0For First fiducial time, TaFor the second fiducial time, T2For timestamp of second frame to be sent in second Media Stream.
15. devices as claimed in claim 12, it is characterised in that the acquisition module also includes:
5th acquiring unit, for after first fiducial time to receive first second Media Stream key frame it Before, when the frame of video for receiving second Media Stream and when frame index number is cached with, increase the frame index number, from described the The corresponding frame of video of frame index number of the increase is obtained in the corresponding input-buffer space of two Media Streams as the to be sent 3rd Frame;
6th acquiring unit, for when the frame of video for receiving second Media Stream and when being cached with frame index number, from described The key frame in the one group of frame of video group for receiving recently is obtained in the corresponding input-buffer space of second Media Stream as to be sent 3rd frame, and cache the frame index number of the 3rd frame to be sent;
Accordingly, the arranging unit, the 3rd timestamp for arranging the 3rd frame to be sent are T0+T3-Ta, wherein T0For First fiducial time, TaFor the second fiducial time, T2For timestamp of the 3rd frame to be sent in second Media Stream.
16. devices as claimed in claim 15, it is characterised in that the acquisition module also includes:
Determining unit, for after first fiducial time to receive first second Media Stream key frame when, will connect The frame of video of second Media Stream that receives is defined as the 4th frame to be sent;
Accordingly, the arranging unit, the 3rd timestamp for arranging the 4th frame to be sent are T0+T4-Ta, wherein T4For Timestamp of 3rd frame to be sent in second Media Stream.
CN201610937653.1A 2016-10-24 2016-10-24 A kind of method and device of switching media stream Active CN106488255B (en)

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 true CN106488255A (en) 2017-03-08
CN106488255B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106937131A (en) * 2017-03-31 2017-07-07 广州华多网络科技有限公司 video stream switching method, device and equipment
CN110113621A (en) * 2018-02-01 2019-08-09 腾讯科技(深圳)有限公司 Playing method and device, storage medium, the electronic device of media information
CN111327923A (en) * 2018-12-13 2020-06-23 华为技术有限公司 Audio stream switching method and device
KR20210094078A (en) * 2019-02-28 2021-07-28 후아웨이 테크놀러지 컴퍼니 리미티드 Method and apparatus for synchronously switching between an audio stream and a video stream

Citations (6)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106937131A (en) * 2017-03-31 2017-07-07 广州华多网络科技有限公司 video stream switching method, device and equipment
CN110113621A (en) * 2018-02-01 2019-08-09 腾讯科技(深圳)有限公司 Playing method and device, storage medium, the electronic device of media information
CN111327923A (en) * 2018-12-13 2020-06-23 华为技术有限公司 Audio stream switching method and device
CN111327923B (en) * 2018-12-13 2021-08-20 华为技术有限公司 Audio stream switching method and device
US11995375B2 (en) 2018-12-13 2024-05-28 Huawei Technologies Co., Ltd. Audio stream switching method and apparatus
KR20210094078A (en) * 2019-02-28 2021-07-28 후아웨이 테크놀러지 컴퍼니 리미티드 Method and apparatus for synchronously switching between an audio stream and a video stream
EP3883238A4 (en) * 2019-02-28 2022-03-23 Huawei Technologies Co., Ltd. Method and apparatus for simultaneously switching audio stream and video stream
US11368634B2 (en) 2019-02-28 2022-06-21 Huawei Technologies Co., Ltd. Audio stream and video stream synchronous switching method and apparatus
KR102519381B1 (en) 2019-02-28 2023-04-06 후아웨이 테크놀러지 컴퍼니 리미티드 Method and apparatus for synchronously switching audio and video streams

Also Published As

Publication number Publication date
CN106488255B (en) 2019-05-14

Similar Documents

Publication Publication Date Title
US20190028746A1 (en) Synchronous and Multi-Sourced Audio and Video Broadcast
CN101394469B (en) Audio and video synchronization method, device and a digital television chip
CN102036058B (en) Method, server, terminal and system for switching videos in video monitoring system
KR102099357B1 (en) Device, system and method for providing screen shot
CN102752642B (en) Method and system for synchronously broadcasting multi-terminal video based on IP (internet protocol) network
CN107566918B (en) A kind of low delay under video distribution scene takes the neutrel extraction of root
CN106488255A (en) A kind of method and device of switching media stream
RU2610451C2 (en) Method, apparatus and system for recording video conference
US20120102517A1 (en) Method, system and device for processing media stream
CN106488273A (en) A kind of method and apparatus of transmission live video
CN110267064B (en) Audio playing state processing method, device, equipment and storage medium
JP2010093576A (en) Reception apparatus, reception method, and computer program
CN101854533A (en) Frequency channel switching method, device and system
US20160044368A1 (en) Method, apparatus and system for acquiring playback data stream of real-time video communication
CN104185070B (en) The switching method of TV difference display window
CN106303682B (en) Method, apparatus, terminal and the server of channel switching
CN111147362B (en) Multi-user instant messaging method, system, device and electronic equipment
CN103986945A (en) Hybrid network system, channel content replay method and hybrid set top box
CN103096128A (en) Method capable of achieving video interaction, server, terminal and system
JP2010057127A (en) Communication system, broadcast receiver, server device, and computer program
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
KR101624904B1 (en) Apparatus and method for playing the multisound channel content using dlna in portable communication system
CN104253696A (en) Police hand-held voice intercommunication method and system based on Internet
CN106658155A (en) Method and device for switching and playing of player

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