CN102903377A - Method and device for playing video with multiple video segments - Google Patents
Method and device for playing video with multiple video segments Download PDFInfo
- Publication number
- CN102903377A CN102903377A CN2012104317064A CN201210431706A CN102903377A CN 102903377 A CN102903377 A CN 102903377A CN 2012104317064 A CN2012104317064 A CN 2012104317064A CN 201210431706 A CN201210431706 A CN 201210431706A CN 102903377 A CN102903377 A CN 102903377A
- Authority
- CN
- China
- Prior art keywords
- video
- frequency band
- video section
- section
- target 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
Links
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the invention discloses a method for playing a video with a plurality of video segments. The method comprises the following steps of: loading a target video segment before a current video segment is switched into the target video segment, and modifying a time stamp of the target video segment, so the time stamps of the current video segment and the target video segment are continuous; and when trigger information which indicates that the current video segment is required to be switched into the target video segment is received, decoding and playing the target video segment with the modified time stamp. The embodiment of the invention also provides a device for playing the video with a plurality of video segments. By adoption of the scheme provided by the embodiment of the invention, the video segments can be smoothly switched without delay, and the phenomenon of discontinuity is avoided.
Description
Technical field
The application relates to technical field of information processing, particularly relates to video method and corresponding device thereof that a kind of broadcast comprises many video-frequency bands.
Background technology
In video display process, for ease of playing, usually a video is divided into a plurality of video-frequency bands and carries out the segmentation independent play-out, each video-frequency band consists of independently video-frequency band file.Comprise the video of many video-frequency bands as example take this class of Flash player plays, its playing process is: the Flash player creates two or more NetStream, each NetStream is responsible for loading and the video-frequency band file of decoding, when need to by the video-frequency band file conversion of current broadcast to the broadcast of target video segment file the time, must between two NetStream, carrying out blocked operation.Two process encapsulation are blended together because traditional NetStream technology will load and decode, make the NetStream that plays the current video section can not finish immediately (this will cause whole player application collapse) to the switching between the NetStream that the target video section is play, but after previous NetStream play end to the current video section, the delay certain hour was opened next NetStream again the target video section is play.
Yet, this switching of between two NetStream, carrying out, its handoff procedure is owing to existing delay, and of short duration pause will appear in video display process, so-called " card pauses " phenomenon namely occur.In addition, between NetStream, in the handoff procedure, usually can not better determine switching time, cause that easily the broadcast of current video section finishes in advance, and the target video section still take former broadcast concluding time of current video section as starting point, cause thus occurring " frame-skipping " phenomenon.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present application provides method and the corresponding intrument thereof of the video that a kind of broadcast comprises many video-frequency bands, to realize undelayed seamlessly transitting between a plurality of video-frequency bands, avoids occurring " card " phenomenon.
The method that the broadcast that the embodiment of the present application provides comprises the video of many video-frequency bands comprises:
Loaded targets video-frequency band before the current video section is switched to the target video section, the timestamp of modifying target video-frequency band makes the timestamp of current video section and target video section continuous;
When receive the current video section switched to the triggering of target video section after, to the broadcast of decoding of the target video section of modification time stamp.
Preferably, the timestamp of described modifying target video-frequency band specifically comprises the timestamp of current video section and target video section continuously:
The play start time of target video section is revised as the broadcast concluding time of current video section.
Preferably, before the current video section is switched to the target video section, the loaded targets video-frequency band, the timestamp of modifying target video-frequency band specifically comprises:
When the current video section begins to play, perhaps, when the video that comprises many video-frequency bands begins to play, perhaps, to receive the current video section is being switched in the triggering of target video section as terminal time, deducted the timestamp of loaded targets video-frequency band and modifying target video-frequency band before the time after the needed time, loaded targets video-frequency band, the timestamp of modifying target video-frequency band.
Preferably, described method also comprises: whether each video-frequency band of judging the video that comprises many video-frequency bands all is loaded and all decoded broadcasts, if so, then sends end notification message in order to comprise the broadcast of the video of many video-frequency bands according to this end notification message termination.
Further preferably, when receiving when the current video section switched to the triggering of target video section, the data buffer area that the target video section of modification time stamp is pushed to NetStream is decoded for broadcast, and whether all the decoded broadcast of each video-frequency band of then judging the video that comprises many video-frequency bands specifically comprises:
Whether the data buffer area of judging NetStream is empty, if so, then sends end notification message.
The embodiment of the present application also provides a kind of broadcast to comprise the device of the video of many video-frequency bands.This device comprises: loading unit, modification unit, receiving element and decoding broadcast unit, wherein:
Described video-frequency band loading unit is used for loaded targets video-frequency band before the current video section is switched to the target video section;
Described video-frequency band is revised the unit, and the timestamp that is used for modifying target video-frequency band before the current video section is switched to the target video section makes the timestamp of current video section and target video section continuous;
Described triggering receiving element is used for receiving the triggering that the current video section is switched to the target video section;
Described decoding broadcast unit, be used for receive the current video section switched to the triggering of target video section after, to the broadcast of decoding of the target video section of modification time stamp.
Preferably, described video-frequency band is revised the unit and is specially: the broadcast concluding time of the play start time of target video section being revised as the current video section.
Preferably, described video-frequency band loading unit is specially: when the current video section begins to play, perhaps, when the video that comprises many video-frequency bands begins to play, perhaps, in the triggering that switches to the target video section to receive the current video section, be terminal time, deducted before the time after the time that the timestamp of loaded targets video-frequency band and modifying target video-frequency band needs the loaded targets video-frequency band.
Preferably, described device also comprises: judging unit and end of playing unit, wherein:
Described judging unit is used for judging whether each video-frequency band of the video that comprises many video-frequency bands all is loaded and all decoded broadcasts, if so, then sends end notification message;
Described end of playing unit is used for comprising according to described end notification message termination the broadcast of the video of many video-frequency bands.
Further preferably, when receiving when the current video section switched to the triggering of target video section, the data buffer area that the target video section of the stamp of modification time is pushed to NetStream is decoded, then judging unit is used for specifically judging whether the data buffer area of NetStream is empty, if so, then send end notification message.
The embodiment of the present application is before the current video section is switched to the target video section, the loaded targets video-frequency band is also carried out timestamp to the target video section and is revised, the timestamp of timestamp and current video section is continuous after revising, when receive the current video section switched to the triggering of target video section after, to the broadcast of decoding of the target video section of modification time stamp.Compared with prior art, because loading procedure and the decode procedure of the target video section of the embodiment of the present application are fully independent, make loading and modification process after receiving triggering, carry out finishing before the decode operation, thereby appearance " card pauses " phenomenon has been avoided in the fully linking when having guaranteed to switch.In addition, because the timestamp of the target video section of the embodiment of the present application and the timestamp of current video section are continuous, make decode procedure for to as if binary file stream, no longer have the independently concept of " video-frequency band file ", thereby avoided " frame-skipping " problem in handoff procedure.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, the accompanying drawing that the following describes only is some embodiment that put down in writing among the application, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow diagram of an embodiment of the application's the broadcast method that comprises many video-frequency bands;
Fig. 2 (a) comprises the process flow diagram of another embodiment of the method for many video-frequency bands for the application's broadcast;
Fig. 2 (b) flows to schematic diagram for data, the signal of the described embodiment of Fig. 2 (a);
Fig. 3 is the structured flowchart of embodiment of the device of the application's the broadcast video that comprises many video-frequency bands.
Embodiment
In order to make those skilled in the art person understand better technical scheme among the application, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment only is the application's part embodiment, rather than whole embodiment.Based on the embodiment among the application, those of ordinary skills are not making the every other embodiment that obtains under the creative work prerequisite, all should belong to the scope of the application's protection.
Referring to Fig. 1, the broadcast that the figure shows the application comprises the flow process of an embodiment of the method for many video-frequency bands.This embodiment comprises:
Step S101: loaded targets video-frequency band before the current video section is switched to the target video section, the timestamp of modifying target video-frequency band makes the timestamp of current video section and target video section continuous;
Realize by each video-frequency band of broadcast multiple segments voice separately owing to playing the video that comprises many video-frequency bands, need to load and each video-frequency band of decoding.The encapsulation of the loading of prior art and decode procedure is blended together, and the loading of video-frequency band and decode procedure is continued simultaneously carry out.The embodiment of the present application was only carried out load operation in the current video section before the target video section is switched, be about to the memory headroom that the target video section is loaded into the operation player program.The application is not limited in current video section specifically when starting or finish loading before switching to the target video section, as long as before switching, does not whenever all hinder the realization of the present application purpose.In actual application, the application can be preferably as follows any in three kinds of modes:
First kind of way: when the current video section begins to play, carry out load operation.Be not subjected in the natural broadcast situation of external interference at a video that comprises many video-frequency bands, the common video-frequency band video-frequency band that will continue is play successively, after namely the previous video section is play and finished, the next video-frequency band that switches to its next-door neighbour is play.Under this situation, when playing the current video section, get final product the loaded targets video-frequency band with to be played.This mode not be used in the internal memory of store video section and preserves too much video-frequency band in the section of fixing time, and has saved memory headroom, thereby has been conducive to improve the travelling speed of player and other application programs in same system.
The second way: when the video that comprises many video-frequency bands begins to play, carry out load operation.Video-frequency band is then the natural broadcast situation of playing successively of a video-frequency band when comprising the video of many video-frequency bands except the above-mentioned broadcast of mentioning, the operation of " pulling " broadcast bar or click " rollback ", " advancing " button before and after the video-see person also can take sometimes is in order to optionally watch some video-frequency band.Be subject under the extraneous non-situation of naturally playing of intervening this, if still use the mode that when playing the current video section, loads its immediate next video-frequency band, owing to can't determine that the target video section on earth for which video-frequency band in the video, makes above-mentioned load operation not have practical significance.For this reason, the application can be chosen in the whole video that comprises many video-frequency bands and begin to load whole possible target video sections in the broadcast, may be subjected to the extraneous broadcast of intervening many video-frequency bands video of playing with reply.
The third mode: to receive the current video section is being switched in the triggering of target video section as terminal time, carrying out load operation before deducting the time of timestamp after the needed time of loaded targets video-frequency band and modifying target video-frequency band.Although above-mentioned dual mode can satisfy some requirement in particular cases preferably, but, because they only are to loading a kind of qualitative description of beginning or concluding time, how long just can take turns to the broadcast of target video section after can't specifically determining to be loaded into internal memory, if " loading is finished " arrives the overlong time of " real played " this time period, in fact this wasted the loading resource.The third mode switches to the triggering of target video section as terminal time to receive with the current video section, by this time eyes front, from this terminal time, deduct loaded targets video-frequency band and spent time of modifying target video-frequency band timestamp, take time of such calculating as critical point, before this critical point time, finish loading and can realize goal of the invention.
Above-mentioned these three kinds of modes are different according to actual conditions, be applicable to different situations: first kind of way is applicable to not have extraneous natural playing process of intervening usually, non-natural playing process when the second way is applicable to determine preferably extraneous intervention time of intervening (when initiating to switch) and intervenes object (switching to which target video section), the third mode is applicable to estimate preferably intervention or the non-intervention playing process of current video section to the triggered time of target video section.Also need to prove: because the time of the reproduction time of video-frequency band and loading video-frequency band is not on an order of magnitude, therefore, start-up loading target video section before " loaded targets video-frequency band before the current video section is switched to the target video section " can refer to switching also can refer to finish the load operation of target video section before switching.
After according to aforesaid any mode or other modes the target video section being loaded into internal memory, the embodiment of the present application is also made amendment to the timestamp of target video section.Timestamp has recorded the broadcast beginning and ending time of video-frequency band.In the prior art, because each video-frequency band independent loads and decoding, the timestamp of video-frequency band is independent separately, and timestamp has the meaning of indicating broadcast stream in this video-frequency band, and between video-frequency band, does not then have meaning.The embodiment of the present application is made amendment to the timestamp of target video section, make the timestamp of current video section and target video continuous, realize that the timestamp between current video section and the target video section has various ways continuously, such as, the broadcast concluding time of the play start time of target video section being revised as the current video section.Also need to prove: two independently processes can be obviously divided in retouching operation and above-mentioned load operation to target video section timestamp, also two processes can be finished in single job simultaneously, such as can first the target video section being loaded among the internal memory, and then carry out the timestamp retouching operation for the target video section in the internal memory, can also when the loaded targets video-frequency band arrives internal memory, finish the modification to target video section timestamp.
Step S102: when receive the current video section switched to the triggering of target video section after, to the broadcast of decoding of the target video section of modification time stamp;
The embodiment of the present application was loaded into internal memory with the target video section before receiving handover trigger, and had finished the retouching operation to target video section timestamp.If receive the triggering that the current video section is switched to the target video section, then can be immediately to the broadcast of decoding of the target video section of modification time stamp.The current video section here can show as multiple concrete form to the handover trigger of target video section, such as, under the situation that the video that comprises many video-frequency bands is play naturally, can show as the current video section and play finish namely to be considered as handover trigger to the target video section, can also show as according to default monitoring start-up time time cycle, when Preset Time arrives, produce the handover trigger to the target video section.Also such as, the mode by manual control triggers: in current video section playing process, the video-see person pulls the broadcast bar, and this drag operation namely is considered as the handover trigger to the target video section.
The present embodiment is before the current video section is switched to the target video section, the loaded targets video-frequency band is also carried out timestamp to the target video section and is revised, the timestamp of timestamp and current video section is continuous after revising, when receive the current video section switched to the triggering of target video section after, to the broadcast of decoding of the target video section of modification time stamp.Compared with prior art, the present embodiment can be obtained following technique effect at least:
(1) because the present embodiment is fully independent to loading procedure and the decode procedure of target video section, make and load and modification process can be finished before receiving the play operation of being decoded after the triggering of target video section by the current video section, thereby two video-frequency bands when having guaranteed the video-frequency band switching are connected before and after playing on the sequential, have avoided appearance " card pauses " phenomenon.
(2) because the timestamp of the timestamp of the target video section of the present embodiment and current video section is continuous, make decode procedure for to as if binary file stream, no longer there is the independently concept of " video-frequency band file ", thereby avoided " frame-skipping " problem in handoff procedure.
(3) loading of prior art and decoding encapsulation kneading, play needs in the situation that satisfy, loading velocity and broadcasting speed adapt, make preferably controlled loading speed of developer, no matter the video-frequency band file is much, the total data of this video-frequency band file all will be loaded into internal memory, cause internal memory to take in a large number, affect the player operational efficiency.And the present embodiment is because loading and decode procedure are independent, broadcasting speed and loading velocity do not have inevitable direct relation, therefore, the developer can control according to actual conditions needs (such as the network environment situation) loading velocity of video-frequency band file, thereby the memory data output of internal memory is suitably controlled.
(4) because loading procedure and the decode procedure of the present embodiment are separate, decoding to a plurality of video-frequency bands can be adopted identical NetStream, that is to say, need between a plurality of NetStream, not switch, thereby be conducive to simplify the complexity of whole Play System, made things convenient for programming to realize.
The technical scheme of above-described embodiment can also be further improved distortion according to these needs for satisfying some special requirement, forms new embodiment.Such as, in the prior art, if " frame-skipping " phenomenon is not to appear in the handoff procedure of video-frequency band, but when appearing at the broadcast ending of a video that comprises many video-frequency bands, to cause video to finish in advance, although the technical scheme of above-described embodiment can solve " frame-skipping " problem in the video-frequency band handoff procedure, can not solve preferably " finishing in advance " problem at video end.For this problem, the embodiment of the present application can be taked following measure: in the displaying video process (as can be when last video-frequency band of displaying video) judge whether each video-frequency band of the video that comprises many video-frequency bands all is loaded and all decoded broadcasts, if, then send end notification message, then comprise the broadcast of the video of many video-frequency bands according to this end notification message termination.Adopt this mode can know exactly whether video really finishes, thereby effectively avoid video " finishing in advance ".It should be noted that: the Rule of judgment here comprises two: the one, and whether each video-frequency band all is loaded, and the 2nd, whether all the video-frequency band that loads decoding is play.Why adopt " two condition " mechanism, its reason is: single condition is met and can not illustrates that video really finishes in some cases.Such as, when being used for storing data buffer storage (buffering) Qu Weikong of video-frequency band to be played, all decoded finishing of video-frequency band are described, but can not think video genuine " end ", because at this moment may be owing to the Internet Transmission reason, some subsequent video section of this video does not load, if at once finish the broadcast of video, just the phenomenon of " finishing in advance " will occur.In this case, the application also judges the load condition of video-frequency band, if all be loaded, illustrates that this video that comprises many video-frequency bands finishes really, can stop this broadcast.
For the technical scheme to the application further describes, explained below in conjunction with a more detailed embodiment.Referring to Fig. 2, wherein: the broadcast that Fig. 2 (a) shows the application comprises the flow process of embodiment of method of the video of many video-frequency bands, and Fig. 2 (b) shows the signal circulation schematic diagram between each step.This embodiment is take the Flash player as application scenarios, the Flash player is based on the player that is mainly used in the WEB page that the Flash technology adopts the AS3 Programming with Pascal Language, the full name of AS3 is ActionScript3.0, it is the OO programming language that is similar to C Plus Plus or JAVA, and NetStream is an object that is used for displaying video among the AS3.Before the video of playing many video-frequency bands, the present embodiment all is loaded into whole video-frequency bands first in the internal memory, and whole process is finished by creating a NetStream, and decode procedure carries out in the data buffer of NetStream.This embodiment comprises:
Step S201: load video-frequency band by http protocol from CDN or accelerator;
The CDN here is the abbreviation of Content Delivery Network, i.e. content distributing network.The basic ideas of this distributing network are to avoid as far as possible may affecting on the network bottleneck and the link of data rate and stability, make the speed of content delivery faster, stability is stronger.It is one deck intelligent virtual network that consists of by the basis that node server is set everywhere at network, and it is directed to user's request on the nearest service node of user again according to the connection of network traffics and each node, load state and to integrated informations such as user's distance and response times in real time.Can make the user obtain required content nearby by the CDN mode, solve the network congestion problem, improve the response speed of access websites.The input of this step can be the complete FLV file video-frequency band data with the FLV header.
Step S202: the video-frequency band that loads is carried out timestamp make amendment, make the timestamp of each video-frequency band continuous;
The video-frequency band timestamp that is loaded into internal memory is revised, to guarantee temporal continuity.As previously mentioned, this retouching operation can be finished in the process that loads video-frequency band, also can carry out one by one after being loaded into internal memory again.Traditional loading and decode procedure integrate mutually, the video-frequency band that the loads broadcast of to decode immediately, and the present embodiment will load with decode procedure and separate, therefore, video-frequency band in the certain hour in the internal memory may be more, at this moment need these video-frequency bands are carried out organization and administration, so as correct to push, the decoded video section.The management here can comprise according to the size of memory headroom dynamically to be adjusted the quantity of the video-frequency band in the internal memory etc.The input of this step is FLV file video-frequency band data, is output as timestamp video data array continuous, that in chronological sequence sequentially deposit.
Step S203: the data buffer that video-frequency band the is pushed to NetStream broadcast of decoding;
For guaranteeing continuous broadcast, in this step, push again other video-frequency band data after can waiting total data decoding in the data buffer to play, and data that can be in the data buffer are during less than certain preset value, namely carry out the data-pushing that will load to the operation of the data buffer of NetStream.This step be input as FLV file video-frequency band data, be output as for the yuv video stream of playing.
Step S204: receiving the current video section after the handover trigger of target video section, decodes for broadcast in the data buffer that the target video section is pushed to NetStream;
Abovementioned steps is normal playing process, if owing to after a variety of causes produces the handover trigger of target video section, the respective objects video-frequency band data-pushing in the internal memory can be decoded for broadcast to the data buffer of NetStream.
Step S205: whether each video-frequency band of judging the video that comprises many video-frequency bands all is loaded and all decoded broadcasts, if so, then sends the Empty event, stops video playback according to this event.
Whether all the decoded broadcast of each video-frequency band of judging the video comprise many video-frequency bands can judge realization by the situation to the data buffer of NetStream, if the data buffer of NetStream is empty, illustrating does not have and can for the video-frequency band data of decoding execution, at this moment will send the Empty event.After receiving this event, stop video playback according to this event.
Signal between above steps, data flow can referring to Fig. 2 (b): step S201 in the data stream of step S202 such as the figure 1.; Step S202 in the data stream of step S203 such as the figure 2..These data flow processes can be controlled by the data engine of NetStream, dotted line representation signal control stream among the figure.
Above content is the description to the application's embodiment of the method, and correspondingly, the application also provides device embodiment.Referring to Fig. 3, the broadcast that the figure shows the application comprises the structured flowchart of device of the video of many video-frequency bands.This device embodiment comprises: video-frequency band loading unit 301, timestamp are revised unit 302, are triggered receiving element 303 and decoding broadcast unit 304, wherein:
Video-frequency band loading unit 301 is used for loaded targets video-frequency band before the current video section is switched to the target video section;
Timestamp is revised unit 302, and the timestamp that is used for modifying target video-frequency band before the current video section is switched to the target video section makes the timestamp of current video section and target video section continuous;
Trigger receiving element 303, be used for receiving the triggering that the current video section is switched to the target video section;
Decoding broadcast unit 304, be used for receive the current video section switched to the triggering of target video section after, to the broadcast of decoding of the target video section of modification time stamp.
The course of work of this device embodiment is: video-frequency band loading unit 301 is the loaded targets video-frequency band before the current video section is switched to the target video section, the timestamp that timestamp is revised unit 302 modifying target video-frequency band before the current video section is switched to the target video section makes the timestamp of current video section and target video section continuous, receive when the current video section switched to the triggering of target video section when triggering receiving element 303, by the broadcast of decoding of the target video section of 304 pairs of modification times stamps of decoding broadcast unit.
This device embodiment is before the current video section is switched to the target video section, the loaded targets video-frequency band is also carried out timestamp to the target video section and is revised, the timestamp of timestamp and current video section is continuous after revising, when receive the current video section switched to the triggering of target video section after, to the broadcast of decoding of the target video section of modification time stamp.Compared with prior art, because loading procedure and the decode procedure of the target video section of this device embodiment are fully independent, make loading and modification process after receiving triggering, carry out finishing before the decode operation, thereby appearance " card pauses " phenomenon has been avoided in the fully linking when having guaranteed to switch.In addition, because the timestamp of the target video section of the embodiment of the present application and the timestamp of current video section are continuous, make decode procedure for to as if binary file stream, no longer have the independently concept of " video-frequency band file ", thereby avoided " frame-skipping " problem in handoff procedure.
Video-frequency band loading unit among the said apparatus embodiment specifically can carry out at different time points the loading of video-frequency band, finishes before the target video section is switched as long as this is carried in the current video section.Such as can be in following three kinds of modes any: when the current video section begins to play, perhaps, when the video that comprises many video-frequency bands begins to play, perhaps, in the triggering that switches to the target video section to receive the current video section, be terminal time, deducted before the time after the time that the timestamp of loaded targets video-frequency band and modifying target video-frequency band needs.These different modes have adapted to the different situations in the actual application.Timestamp among the said apparatus embodiment is revised the unit also can have multiple concrete modification mode, such as being the broadcast concluding time of the play start time of target video section being revised as the current video section.
In actual application, the problem that said apparatus embodiment also may exist video " to finish in advance ".For addressing this problem, said apparatus embodiment has corresponding structural change, such as comprising: judging unit 305 and end of playing unit 306, wherein: judging unit 305, be used for judging whether each video-frequency band of the video that comprises many video-frequency bands all is loaded and all decoded broadcasts, if so, then send end notification message; End of playing unit 306 is used for comprising according to described end notification message termination the broadcast of the video of many video-frequency bands.In the device that comprises judging unit and end of playing unit, if this device is based on the Flash player and realizes, decode procedure is when finishing in the data buffer area of NetStream, judgment unit judges comprise many video-frequency bands video each video-frequency band whether all decoded broadcast can the data buffer area by judging NetStream whether be empty the realization, that is: whether the data buffer area of judging NetStream is empty, if so, then send end notification message.
For the convenience of describing, be divided into various unit with function when describing above device and describe respectively.Certainly, when implementing the application, can in same or a plurality of softwares and/or hardware, realize the function of each unit.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the application and can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that the application's technical scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, such as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the application or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses is difference with other embodiment.Especially, for system embodiment, because its basic simlarity is in embodiment of the method, so describe fairly simplely, relevant part gets final product referring to the part explanation of embodiment of the method.System embodiment described above only is schematic, wherein said unit as the separating component explanation can or can not be physically to separate also, the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of module to realize the purpose of the present embodiment scheme.Those of ordinary skills namely can understand and implement in the situation that do not pay creative work.
The application can be used in numerous general or special purpose computingasystem environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, comprise distributed computing environment of above any system or equipment etc.
The application can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment, put into practice the application, in these distributed computing environment, be executed the task by the teleprocessing equipment that is connected by communication network.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
The above only is the application's embodiment; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the application's principle; can also make some improvements and modifications, these improvements and modifications also should be considered as the application's protection domain.
Claims (10)
1. a broadcast comprises the method for the video of many video-frequency bands, it is characterized in that, the method comprises:
Before the current video section is switched to the target video section, the loaded targets video-frequency band, the timestamp of modifying target video-frequency band makes the timestamp of current video section and target video section continuous;
When receive the current video section switched to the triggering of target video section after, to the broadcast of decoding of the target video section of modification time stamp.
2. method according to claim 1 is characterized in that, the timestamp of described modifying target video-frequency band specifically comprises the timestamp of current video section and target video section continuously:
The play start time of target video section is revised as the broadcast concluding time of current video section.
3. method according to claim 1 is characterized in that, before the current video section is switched to the target video section, and the loaded targets video-frequency band, the timestamp of modifying target video-frequency band specifically comprises:
When the current video section begins to play, perhaps, when the video that comprises many video-frequency bands begins to play, perhaps, to receive the current video section is being switched in the triggering of target video section as terminal time, deducted the timestamp of loaded targets video-frequency band and modifying target video-frequency band before the time after the needed time, loaded targets video-frequency band, the timestamp of modifying target video-frequency band.
4. any one described method in 3 according to claim 1 is characterized in that, described method also comprises:
Whether each video-frequency band of judging the video that comprises many video-frequency bands all is loaded and all decoded broadcasts, if so, then sends end notification message in order to comprise the broadcast of the video of many video-frequency bands according to this end notification message termination.
5. method according to claim 4, it is characterized in that, when receiving when the current video section switched to the triggering of target video section, the data buffer area that the target video section of modification time stamp is pushed to NetStream is decoded for broadcast, and whether all the decoded broadcast of each video-frequency band of then judging the video that comprises many video-frequency bands specifically comprises:
Whether the data buffer area of judging NetStream is empty, if so, then sends end notification message.
6. a broadcast comprises the device of the video of many video-frequency bands, it is characterized in that, this device comprises: video-frequency band loading unit, timestamp are revised the unit, are triggered receiving element and decoding broadcast unit, wherein:
Described video-frequency band loading unit is used for loaded targets video-frequency band before the current video section is switched to the target video section;
Described timestamp is revised the unit, and the timestamp that is used for modifying target video-frequency band before the current video section is switched to the target video section makes the timestamp of current video section and target video section continuous;
Described triggering receiving element is used for receiving the triggering that the current video section is switched to the target video section;
Described decoding broadcast unit, be used for receive the current video section switched to the triggering of target video section after, to the broadcast of decoding of the target video section of modification time stamp.
7. device according to claim 6 is characterized in that, described timestamp is revised the unit and is specially: the broadcast concluding time of the play start time of target video section being revised as the current video section.
8. device according to claim 6 is characterized in that, described video-frequency band loading unit is specially:
When the current video section begins to play, perhaps, when the video that comprises many video-frequency bands begins to play, perhaps, in the triggering that switches to the target video section to receive the current video section, be terminal time, deducted before the time after the time that the timestamp of loaded targets video-frequency band and modifying target video-frequency band needs the loaded targets video-frequency band.
9. any one described device in 8 according to claim 6 is characterized in that, described device also comprises: judging unit and end of playing unit, wherein:
Described judging unit is used for judging whether each video-frequency band of the video that comprises many video-frequency bands all is loaded and all decoded broadcasts, if so, then sends end notification message;
Described end of playing unit is used for comprising according to described end notification message termination the broadcast of the video of many video-frequency bands.
10. device according to claim 9, it is characterized in that, when receiving when the current video section switched to the triggering of target video section, the data buffer area that the target video section of the stamp of modification time is pushed to NetStream is decoded, then judgment unit judges comprise many video-frequency bands video each video-frequency band whether all decoded broadcast be specially:
Whether the data buffer area of judging NetStream is empty, if so, then sends end notification message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210431706.4A CN102903377B (en) | 2012-11-01 | 2012-11-01 | Method and device for playing video with multiple video segments |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210431706.4A CN102903377B (en) | 2012-11-01 | 2012-11-01 | Method and device for playing video with multiple video segments |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102903377A true CN102903377A (en) | 2013-01-30 |
CN102903377B CN102903377B (en) | 2015-07-22 |
Family
ID=47575579
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210431706.4A Active CN102903377B (en) | 2012-11-01 | 2012-11-01 | Method and device for playing video with multiple video segments |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102903377B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197886A (en) * | 2013-03-13 | 2013-07-10 | 北京小米科技有限责任公司 | Video switch method and terminal |
CN104270671A (en) * | 2014-09-28 | 2015-01-07 | 可牛网络技术(北京)有限公司 | Flash video playing method and device |
CN104837061A (en) * | 2015-05-14 | 2015-08-12 | 无锡天脉聚源传媒科技有限公司 | Method and device for modifying and managing video playlist |
CN104902287A (en) * | 2015-05-14 | 2015-09-09 | 无锡天脉聚源传媒科技有限公司 | Video switching playing method and device |
CN104935976A (en) * | 2015-06-03 | 2015-09-23 | 无锡天脉聚源传媒科技有限公司 | Carousel playlist editing method and apparatus |
CN105992051A (en) * | 2015-03-03 | 2016-10-05 | 广州市动景计算机科技有限公司 | Content data playback method and device |
CN106358077A (en) * | 2016-09-29 | 2017-01-25 | 北京奇艺世纪科技有限公司 | Video live broadcasting method and device thereof |
CN106899757A (en) * | 2017-02-06 | 2017-06-27 | 青岛海信电器股份有限公司 | The control method for playing back of audio-video document, device and terminal device |
CN108377409A (en) * | 2018-03-05 | 2018-08-07 | 广东欧珀移动通信有限公司 | A kind of seamless play method, terminal device and the storage medium of multimedia file |
CN109167950A (en) * | 2018-10-25 | 2019-01-08 | 腾讯科技(深圳)有限公司 | Video recording method, video broadcasting method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035294A (en) * | 2007-04-13 | 2007-09-12 | 深圳市融合视讯科技有限公司 | Network advertisement inter-broadcasting method in the video program |
CN101232612A (en) * | 2007-12-06 | 2008-07-30 | 北京广视通达网络技术有限公司 | Assistant medium playing method triggered based on video contents |
CN101646050A (en) * | 2009-09-09 | 2010-02-10 | 中国电信股份有限公司 | Text annotation method and system, playing method and system of video files |
-
2012
- 2012-11-01 CN CN201210431706.4A patent/CN102903377B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035294A (en) * | 2007-04-13 | 2007-09-12 | 深圳市融合视讯科技有限公司 | Network advertisement inter-broadcasting method in the video program |
CN101232612A (en) * | 2007-12-06 | 2008-07-30 | 北京广视通达网络技术有限公司 | Assistant medium playing method triggered based on video contents |
CN101646050A (en) * | 2009-09-09 | 2010-02-10 | 中国电信股份有限公司 | Text annotation method and system, playing method and system of video files |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197886A (en) * | 2013-03-13 | 2013-07-10 | 北京小米科技有限责任公司 | Video switch method and terminal |
CN103197886B (en) * | 2013-03-13 | 2015-12-09 | 小米科技有限责任公司 | The method that video switches and terminal |
CN104270671A (en) * | 2014-09-28 | 2015-01-07 | 可牛网络技术(北京)有限公司 | Flash video playing method and device |
CN105992051A (en) * | 2015-03-03 | 2016-10-05 | 广州市动景计算机科技有限公司 | Content data playback method and device |
CN105992051B (en) * | 2015-03-03 | 2019-04-02 | 广州市动景计算机科技有限公司 | Content-data playback method and device |
CN104837061B (en) * | 2015-05-14 | 2018-06-19 | 无锡天脉聚源传媒科技有限公司 | A kind of video broadcasts single modification management method and device |
CN104837061A (en) * | 2015-05-14 | 2015-08-12 | 无锡天脉聚源传媒科技有限公司 | Method and device for modifying and managing video playlist |
CN104902287A (en) * | 2015-05-14 | 2015-09-09 | 无锡天脉聚源传媒科技有限公司 | Video switching playing method and device |
CN104935976A (en) * | 2015-06-03 | 2015-09-23 | 无锡天脉聚源传媒科技有限公司 | Carousel playlist editing method and apparatus |
CN106358077A (en) * | 2016-09-29 | 2017-01-25 | 北京奇艺世纪科技有限公司 | Video live broadcasting method and device thereof |
CN106358077B (en) * | 2016-09-29 | 2019-05-10 | 北京奇艺世纪科技有限公司 | A kind of net cast method and device |
CN106899757A (en) * | 2017-02-06 | 2017-06-27 | 青岛海信电器股份有限公司 | The control method for playing back of audio-video document, device and terminal device |
CN108377409A (en) * | 2018-03-05 | 2018-08-07 | 广东欧珀移动通信有限公司 | A kind of seamless play method, terminal device and the storage medium of multimedia file |
CN109167950A (en) * | 2018-10-25 | 2019-01-08 | 腾讯科技(深圳)有限公司 | Video recording method, video broadcasting method, device, equipment and storage medium |
CN109167950B (en) * | 2018-10-25 | 2020-05-12 | 腾讯科技(深圳)有限公司 | Video recording method, video playing method, device, equipment and storage medium |
US11450350B2 (en) | 2018-10-25 | 2022-09-20 | Tencent Technology (Shenzhen) Company Limited | Video recording method and apparatus, video playing method and apparatus, device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN102903377B (en) | 2015-07-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102903377B (en) | Method and device for playing video with multiple video segments | |
CN113423018B (en) | Game data processing method, device and storage medium | |
US10349139B2 (en) | Delivery of content | |
US9271015B2 (en) | Systems and methods for loading more than one video content at a time | |
US8321905B1 (en) | Fast switching of media streams | |
CN102905188B (en) | A kind of video code flow changing method and device | |
CN110636346B (en) | Code rate self-adaptive switching method and device, electronic equipment and storage medium | |
US8555163B2 (en) | Smooth streaming client component | |
CN104869467B (en) | Information output method, device and system in media play | |
CN110099134B (en) | Video file downloading method and device, electronic equipment and storage medium | |
CN111277869B (en) | Video playing method, device, equipment and storage medium | |
CN107547940A (en) | Video playback processing method, equipment and computer-readable recording medium | |
CN103198851B (en) | A kind of multiple terminals synchronous broadcast method based on time-stamping messages | |
CN109565620A (en) | Low latency HTTP real-time streaming transport | |
CN107333148B (en) | Method for processing video frequency and device, computer storage medium and equipment | |
CN1980377A (en) | Method for smart inserting material | |
CN108924582A (en) | Video recording method, computer readable storage medium and recording and broadcasting system | |
CN105451071A (en) | Video stream processing method, device and system | |
CN113424553B (en) | Method and system for playback of media items | |
CN103747339A (en) | Method and apparatus for resolving no response condition of on-line video by using android device | |
CN110017847B (en) | Self-adaptive navigation voice broadcasting method, device and system | |
CN109640108A (en) | Interaction data and audio, video data synchronous method and system is broadcast live based on document class | |
CN110198494A (en) | A kind of video broadcasting method, device, equipment and storage medium | |
CN112601127A (en) | Video display method and device, electronic equipment and computer readable storage medium | |
CN105187897A (en) | Multi-segment media file cross-segment playing method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |