CN102903377B - Method and device for playing video with multiple video segments - Google Patents

Method and device for playing video with multiple video segments Download PDF

Info

Publication number
CN102903377B
CN102903377B CN201210431706.4A CN201210431706A CN102903377B CN 102903377 B CN102903377 B CN 102903377B CN 201210431706 A CN201210431706 A CN 201210431706A CN 102903377 B CN102903377 B CN 102903377B
Authority
CN
China
Prior art keywords
video
video section
frequency band
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.)
Active
Application number
CN201210431706.4A
Other languages
Chinese (zh)
Other versions
CN102903377A (en
Inventor
邓治民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201210431706.4A priority Critical patent/CN102903377B/en
Publication of CN102903377A publication Critical patent/CN102903377A/en
Application granted granted Critical
Publication of CN102903377B publication Critical patent/CN102903377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

A kind of broadcasting comprises method and the device of the video of many video-frequency bands
Technical field
The application relates to technical field of information processing, particularly relates to a kind of broadcasting and comprises the video method of many video-frequency bands and corresponding device thereof.
Background technology
In video display process, for ease of playing, usually a video is divided into multiple video-frequency band and carries out segmentation independent play-out, each video-frequency band forms independently video-frequency band file.This kind of video comprising many video-frequency bands is play for Flash player, its playing process is: Flash player creates two or more NetStream, each NetStream is responsible for loading and a decoding video-frequency band file, when needing by the video-frequency band file transform of current broadcasting to broadcasting to target video segment file, blocked operation must be carried out between two NetStream.Because loading and decoding two process encapsulation are blended together by traditional NetStream technology, switching between the NetStream to the NetStream play target video section of broadcasting current video section can not be completed (this will cause whole player application to be collapsed) immediately, but after previous NetStream terminates the broadcasting of current video section, delay certain hour is opened next NetStream again and is play target video section.
But this switching carried out between two NetStream, its handoff procedure postpones owing to existing, and video display process will occur of short duration pause, namely occurs so-called " card " phenomenon.In addition, between NetStream in handoff procedure, usually better can not determine switching time, easily cause the broadcasting of current video section to terminate in advance, and target video section still with the former broadcasting end time of current video section for starting point, cause thus occur " frame-skipping " phenomenon.
Summary of the invention
For solving the problems of the technologies described above, a kind of method that the embodiment of the present application provides broadcasting to comprise the video of many video-frequency bands and corresponding intrument thereof, to realize undelayed between multiple video-frequency band seamlessly transitting, avoid occurring " card " phenomenon.
The method that the broadcasting that the embodiment of the present application provides comprises the video of many video-frequency bands comprises:
Loaded targets video-frequency band before current video section switches to target video section, the timestamp of modifying target video-frequency band makes the timestamp of current video section and target video section continuous;
After receiving current video section is switched to the triggering of target video section, decoding broadcasting is carried out to the target video section of modification time stamp.
Preferably, the timestamp of described modifying target video-frequency band makes the timestamp of current video section and target video section specifically comprise continuously:
The play start time of target video section is revised as the broadcasting end time of current video section.
Preferably, before current video section switches to target video section, loaded targets video-frequency band, the timestamp of modifying target video-frequency band specifically comprises:
When current video section starts to play, or, when the video comprising many video-frequency bands starts to play, or, with receive current video section is switched to the triggering of target video section when for terminal time, before time after the time required for timestamp deducting loaded targets video-frequency band and modifying target video-frequency band, loaded targets video-frequency band, the timestamp of modifying target video-frequency band.
Preferably, described method also comprises: judge whether each video-frequency band comprising the video of many video-frequency bands is all loaded and all decoded broadcasting, if so, then sends end notification message to stop comprising the broadcasting of the video of many video-frequency bands according to this end notification message.
Further preferably, when receive current video section is switched to the triggering of target video section time, is carried out decoding for broadcasting in the data buffer area that the target video section that modification time stabs is pushed to NetStream, then judges that the whether all decoded broadcasting of each video-frequency band comprising the video of many video-frequency bands specifically comprises:
Judge that whether the data buffer area of NetStream is empty, if so, then send end notification message.
The embodiment of the present application additionally provides the device that a kind of broadcasting comprises the video of many video-frequency bands.This device comprises: loading unit, amendment unit, receiving element and decoding broadcast unit, wherein:
Described video-frequency band loading unit, for current video section to target video section switch before loaded targets video-frequency band;
Described video-frequency band amendment unit, makes the timestamp of current video section and target video section continuous for the timestamp of modifying target video-frequency band before switching to target video section in current video section;
Described triggering receiving element, for receiving triggering current video section being switched to target video section;
Described decoding broadcast unit, for after receiving current video section is switched to the triggering of target video section, carries out decoding broadcasting to the target video section of modification time stamp.
Preferably, described video-frequency band amendment unit is specially: the broadcasting end time of the play start time of target video section being revised as current video section.
Preferably, described video-frequency band loading unit is specially: when current video section starts to play, or, when the video comprising many video-frequency bands starts to play, or, to receive when current video section switches to the triggering of target video section as terminal time, before the time after the time that the timestamp deducting loaded targets video-frequency band and modifying target video-frequency band needs, loaded targets video-frequency band.
Preferably, described device also comprises: judging unit and end of playing unit, wherein:
Described judging unit, for judging whether each video-frequency band of the video comprising many video-frequency bands is all loaded and all decoded broadcasting, if so, then sends end notification message;
Described end of playing unit, for stopping according to described end notification message the broadcasting comprising the video of many video-frequency bands.
Further preferably, when receive current video section is switched to the triggering of target video section time, is decoded in the data buffer area that the target video section that modification time stabs is pushed to NetStream, then judging unit is specifically for judging whether the data buffer area of NetStream is empty, if so, then end notification message is sent.
The embodiment of the present application is before current video section switches to target video section, loaded targets video-frequency band also carries out timestamp amendment to target video section, after amendment, the timestamp of timestamp and current video section is continuous, after receiving current video section is switched to the triggering of target video section, decoding broadcasting is carried out to the target video section of modification time stamp.Compared with prior art, due to the loading procedure of the target video section of the embodiment of the present application and decode procedure completely independent, make loading and modification process can carry out decode operation after receiving triggering before complete, thus the linking completely when ensure that switching, avoids appearance " card " phenomenon.In addition, due to the timestamp of the target video section of the embodiment of the present application and the timestamp of current video section continuous, make decode procedure for as if binary file stream, no longer there is independently the concept of " video-frequency band file ", thus avoid " frame-skipping " problem in handoff procedure.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram that the broadcasting of the application comprises an embodiment of the method for many video-frequency bands;
The broadcasting that Fig. 2 (a) is the application comprises the process flow diagram of another embodiment of the method for many video-frequency bands;
The data that Fig. 2 (b) is the described embodiment of Fig. 2 (a), signal flow to schematic diagram;
Fig. 3 is the structured flowchart that the broadcasting of the application comprises the embodiment of the device of the video of many video-frequency bands.
Embodiment
Technical scheme in the application is understood better in order to make those skilled in the art person, 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 is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all should belong to the scope of the application's protection.
See Fig. 1, the broadcasting 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 current video section switches to target video section, the timestamp of modifying target video-frequency band makes the timestamp of current video section and target video section continuous;
Realized by each video-frequency band of broadcast multiple segments voice separately owing to playing the video comprising many video-frequency bands, need to load and each video-frequency band of decoding.The loading of prior art and decode procedure encapsulation are blended together, and continue simultaneously carry out the loading of video-frequency band and decode procedure.The embodiment of the present application only carried out load operation before current video section switches to target video section, was loaded into the memory headroom running player program by target video section.The application is not limited in specifically when starting or completing loading before current video section switches to target video section, as long as before the handover, does not whenever all hinder the realization of the present application object.In actual application, the application can be preferably as follows any one in three kinds of modes:
First kind of way: carry out load operation when current video section starts to play.At a video comprising many video-frequency bands not by the nature broadcasting situation of external interference, the usual video-frequency band video-frequency band that will continue is play successively, after namely previous video section is play and terminated, plays being switched to its next video-frequency band be close to.Under this situation, when playing current video section, get final product loaded targets video-frequency band with to be played.Which makes the internal memory of store video section not be used in the section of fixing time and preserves too much video-frequency band, has saved memory headroom, thus is conducive to the travelling speed improving player and other application programs in same system.
The second way: carry out load operation when the video comprising many video-frequency bands starts to play.Except the nature broadcasting situation play successively of the then video-frequency band of video-frequency band when the above-mentioned broadcasting mentioned comprises the video of many video-frequency bands, before and after video viewers also can take sometimes, " pulling " plays the operation of bar or click " rollback ", " advance " button, optionally to watch some video-frequency band.When this non-natural being subject to extraneous intervention is play, if be still used in the mode loading its immediate next video-frequency band when playing current video section, owing to cannot determine that target video section is which video-frequency band in video on earth, above-mentioned load operation is made not have practical significance.For this reason, the application can select, when the whole video comprising many video-frequency bands starts to play, to load whole possible target video sections, may by the extraneous broadcasting intervening the many video-frequency bands video play to tackle.
The third mode: with receive current video section is switched to the triggering of target video section when for terminal time, carried out load operation before the time after the time required for timestamp deducting loaded targets video-frequency band and modifying target video-frequency band.Although above-mentioned two kinds of modes can meet some requirement in particular cases preferably, but, due to a kind of qualitative description that they are only to loading beginning or end time, the broadcasting of target video section how long just can be taken turns to after specifically cannot determining to be loaded into internal memory, if " loading completes " is to the overlong time of " being really played " this time period, this concretely wastes loading resource.Current video section is switched to the triggering of target video section for terminal time to receive by the third mode, by this time eyes front, loaded targets video-frequency band and the time spent by modifying target video-frequency band timestamp is deducted from this terminal time, with the time calculated like this for critical point, before this critical point time, complete loading can realize goal of the invention.
These three kinds of modes above-mentioned are different according to actual conditions, be applicable to different situations: first kind of way is applicable to do 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 (when initiating to switch) of intervening and intervenes object (to which target video section switching), the third mode is applicable to estimate preferably that current video section is to the intervention in the triggered time of target video section or non-intervention playing process.Also it should be noted that: because the reproduction time of video-frequency band and the time of loading video-frequency band is not on an order of magnitude, therefore, " before current video section switches to target video section loaded targets video-frequency band " can refer to start-up loading target video section before handover, also can refer to the load operation completing target video section before handover.
After target video section being loaded into internal memory according to aforesaid any one mode or other modes, the embodiment of the present application is also modified to the timestamp of target video section.Timestamp have recorded the broadcasting beginning and ending time of video-frequency band.In the prior art, due to each video-frequency band independent loads and decoding, the timestamp of video-frequency band is independent separately, and timestamp has the meaning indicated and play stream in this video-frequency band, and between video-frequency band, does not then have meaning.The timestamp of the embodiment of the present application to target video section is modified, make the timestamp of current video section and target video continuous, the timestamp realized between current video section and target video section has various ways continuously, such as, the play start time of target video section is revised as the broadcasting end time of current video section.Also it should be noted that: obviously can divide into two independently processes to the retouching operation of target video section timestamp and above-mentioned load operation, also two processes can be completed in single job simultaneously, such as can first target video section be loaded among internal memory, and then carry out timestamp retouching operation for the target video section in internal memory, while loaded targets video-frequency band to internal memory, the amendment to target video section timestamp can also be completed.
Step S102: after receiving current video section is switched to the triggering of target video section, carries out decoding broadcasting to the target video section of modification time stamp;
Target video section, before receiving handover trigger, is loaded into internal memory by the embodiment of the present application, and completes the retouching operation to target video section timestamp.If receive triggering current video section being switched to target video section, then can carry out decoding to the target video section of modification time stamp immediately and play.Here current video section can show as multiple concrete form to the handover trigger of target video section, such as, when the video comprising many video-frequency bands is play naturally, current video section can be shown as and play the handover trigger terminating namely to be considered as target video section, monitoring start-up time time cycle according to presetting can also being shown as, producing the handover trigger to target video section when Preset Time arrives.Also such as, triggered by the mode of manual control: in current video section playing process, video viewers pulls broadcasting bar, and namely this drag operation is considered as the handover trigger to target video section.
The present embodiment is before current video section switches to target video section, loaded targets video-frequency band also carries out timestamp amendment to target video section, after amendment, the timestamp of timestamp and current video section is continuous, after receiving current video section is switched to the triggering of target video section, decoding broadcasting is carried out to the target video section of modification time stamp.Compared with prior art, the present embodiment at least can obtain following technique effect:
(1) due to the present embodiment to the loading procedure of target video section and decode procedure completely independent, make loading and modification process can receive carry out decoding play operation after by current video section to the triggering of target video section before complete, thus two video-frequency bands when ensure that video-frequency band switches are successive in broadcasting sequential, avoid appearances " card pauses " phenomenon.
(2) due to the timestamp of the target video section of the present embodiment and the timestamp of current video section continuous, make decode procedure for as if binary file stream, no longer there is the concept of independently " video-frequency band file ", thus avoid " frame-skipping " problem in handoff procedure.
(3) prior art loading and decoding encapsulation kneading, when satisfied broadcasting needs, loading velocity and broadcasting speed adapt, make developer can not controlled loading speed preferably, no matter 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 player operational efficiency.And the present embodiment is owing to loading and decode procedure independence, broadcasting speed and loading velocity do not have inevitable direct relation, therefore, developer can control the loading velocity of video-frequency band file according to actual conditions needs (such as network environment situation), thus suitably controls the memory data output of internal memory.
(4) due to the loading procedure of the present embodiment and decode procedure separate, identical NetStream can be adopted to the decoding of multiple video-frequency band, that is, do not need to switch between multiple NetStream, thus be conducive to the complexity simplifying whole Play System, facilitate programming realization.
The technical scheme of above-described embodiment, for meeting some special requirement, can also need to be further improved distortion according to these, form new embodiment.Such as, in the prior art, if " frame-skipping " phenomenon is not appear in the handoff procedure of video-frequency band, but appear at one when comprising the broadcasting ending of the video of many video-frequency bands, video will be caused to terminate in advance, although the technical scheme of above-described embodiment can solve " frame-skipping " problem in video-frequency band handoff procedure, " terminating in advance " problem at video end can not be solved preferably.For this problem, the embodiment of the present application can take following measure: (as can when playing last video-frequency band of video) judges whether each video-frequency band comprising the video of many video-frequency bands is all loaded and all decoded broadcasting playing in video process, if, then send end notification message, then stop according to this end notification message the broadcasting comprising the video of many video-frequency bands.Adopt and can know whether video really finishes in this way exactly, thus effectively avoid video " to terminate in advance ".It should be noted that: it is whether each video-frequency band is all loaded that Rule of judgment here comprises two: one, two is whether the video-frequency band loaded all decodes broadcasting.Why adopt " two condition " mechanism, its reason is: single condition is met and can not illustrates that video indeed finishes in some cases.Such as, during for storing data buffer storage (buffering) Qu Weikong of video-frequency band to be played, illustrate that video-frequency band is all decoded to finish, but can not think that video is really " end ", because at this moment may due to Internet Transmission reason, some subsequent video section of this video does not load, if at once terminate the broadcasting of video, just will occur the phenomenon of " terminating in advance ".In this case, the application also judges the load condition of video-frequency band, if be all loaded, illustrates that the video that this comprises many video-frequency bands finishes really, can stop this and play.
For being further described the technical scheme of the application, explained below in conjunction with an embodiment specifically.See Fig. 2, wherein: the broadcasting that Fig. 2 (a) shows the application comprises the flow process of the embodiment of the method for the video of many video-frequency bands, Fig. 2 (b) shows the signal circulation schematic diagram between each step.This embodiment take Flash player as application scenarios, Flash player is the player being mainly used in WEB page adopting AS3 Programming with Pascal Language based on Flash technology, the full name of AS3 is ActionScript3.0, it is the OO programming language being similar to C Plus Plus or JAVA, and NetStream is for playing an object of video in AS3.Before the video playing many video-frequency bands, whole video-frequency bands is all first loaded in internal memory by the present embodiment, and whole process is completed by establishment 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;
Here CDN is the abbreviation of Content Delivery Network, i.e. content distributing network.The basic ideas of this distributing network avoid network may affect bottleneck and the link of data rate and stability as far as possible, makes that the speed of content delivery is faster, stability is stronger.It is by arranging one deck intelligent virtual network that the basis of node server is formed everywhere at network, and it is in real time according to the connection of network traffics and each node, load state and user's request to be again directed to from the nearest service node of user to the integrated information such as Distance geometry response time of user.User can be made to obtain required content nearby by CDN mode, solve network congestion problems, improve the response speed of access websites.The input of this step can be the complete FLV file video-frequency band data with FLV header.
Step S202: timestamp is carried out to the video-frequency band loaded and modifies, make the timestamp of each video-frequency band continuous;
To the video-frequency band timestamp amendment of internal memory be loaded into, to ensure temporal continuity.As previously mentioned, this retouching operation can complete in the process loading 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 loaded may be carried out decoding immediately and be play, and loading and decode procedure separate by the present embodiment, therefore, video-frequency band in certain hour in internal memory may be more, at this moment need to carry out organization and administration to these video-frequency bands, push so that correct, decoded video section.Here management can comprise carries out dynamic conditioning etc. according to the size of memory headroom to the quantity of the video-frequency band in internal memory.The input of this step is FLV file video-frequency band data, exports as timestamp continuous print, in chronological sequence the video data array deposited of order.
Step S203: decoding broadcasting is carried out in data buffer video-frequency band being pushed to NetStream;
For ensureing Continuous Play, in this step, other video-frequency band data are pushed again after the decoding of the total data in data buffer can be waited to play, and can data in data buffer when being less than certain preset value, namely carry out the operation to the data buffer of NetStream of the data-pushing that loads.This step be input as FLV file video-frequency band data, export into for play yuv video stream.
Step S204: after reception is by current video section to the handover trigger of target video section, carry out decoding for broadcasting in data buffer target video section being pushed to NetStream;
Abovementioned steps is normal playing process, if due to after a variety of causes produces the handover trigger of target video section, can be carried out decoding for broadcasting in the data buffer of the respective objects video-frequency band data-pushing in internal memory to NetStream.
Step S205: judge whether each video-frequency band comprising the video of many video-frequency bands is all loaded and all decoded broadcasting, if so, then sends Empty event, according to this event terminations video playback.
Judge that the whether all decoded broadcasting of each video-frequency band comprising the video of many video-frequency bands carries out judgement realization by the situation of the data buffer to NetStream, if the data buffer of NetStream is empty, the video-frequency band data not having to perform for decoding are described, at this moment will send Empty event.After receiving this event, according to this event terminations video playback.
Signal between above steps, data flow can see Fig. 2 (b): the data stream of step S201 to step S202 as in figure 1.; The data stream of step S202 to step S203 as in figure 2..These data flow processes control by the data engine of NetStream, represented by dotted arrows signal control flow check in figure.
Above content is the description to the application's embodiment of the method, correspondingly, present invention also provides device embodiment.See Fig. 3, the broadcasting that the figure shows the application comprises the structured flowchart of the device of the video of many video-frequency bands.This device embodiment comprises: video-frequency band loading unit 301, timestamp amendment unit 302, triggering receiving element 303 and decoding broadcast unit 304, wherein:
Video-frequency band loading unit 301, for current video section to target video section switch before loaded targets video-frequency band;
Timestamp amendment unit 302, makes the timestamp of current video section and target video section continuous for the timestamp of modifying target video-frequency band before switching to target video section in current video section;
Trigger receiving element 303, for receiving triggering current video section being switched to target video section;
Decoding broadcast unit 304, for after receiving current video section is switched to the triggering of target video section, carries out decoding broadcasting to the target video section of modification time stamp.
The course of work of this device embodiment is: video-frequency band loading unit 301 is loaded targets video-frequency band before current video section switches to target video section, the timestamp of timestamp amendment unit 302 modifying target video-frequency band before current video section switches to target video section makes the timestamp of current video section and target video section continuous, when trigger receiving element 303 receive current video section is switched to the triggering of target video section time, the target video section of being stabbed by the decoding broadcast unit 304 pairs of modification times carries out decoding broadcasting.
This device embodiment is before current video section switches to target video section, loaded targets video-frequency band also carries out timestamp amendment to target video section, after amendment, the timestamp of timestamp and current video section is continuous, after receiving current video section is switched to the triggering of target video section, decoding broadcasting is carried out to the target video section of modification time stamp.Compared with prior art, due to the loading procedure of the target video section of this device embodiment and decode procedure completely independent, make loading and modification process can carry out decode operation after receiving triggering before complete, thus the linking completely when ensure that switching, avoids appearance " card " phenomenon.In addition, due to the timestamp of the target video section of the embodiment of the present application and the timestamp of current video section continuous, make decode procedure for as if binary file stream, no longer there is independently the concept of " video-frequency band file ", thus avoid " frame-skipping " problem in handoff procedure.
Video-frequency band loading unit in said apparatus embodiment specifically can carry out the loading of video-frequency band on different time points, completes before target video section switches as long as this is carried in current video section.Can be such as any one in following three kinds of modes: when current video section starts to play, or, when the video comprising many video-frequency bands starts to play, or, to receive when current video section switches to the triggering of target video section as terminal time, before the time after the time that the timestamp deducting loaded targets video-frequency band and modifying target video-frequency band needs.These different modes have adapted to the different situations in actual application.Timestamp amendment unit in said apparatus embodiment also can have multiple concrete modification mode, can be such as the broadcasting end time of the play start time of target video section being revised as current video section.
In actual application, also may there is the problem that video " terminates " in advance in said apparatus embodiment.For solving this problem, said apparatus embodiment has the change of corresponding structure, such as can comprise: judging unit 305 and end of playing unit 306, wherein: judging unit 305, for judging whether each video-frequency band of the video comprising many video-frequency bands is all loaded and all decoded broadcasting, if so, then end notification message is sent; End of playing unit 306, for stopping according to described end notification message the broadcasting comprising the video of many video-frequency bands.In the device comprising judging unit and end of playing unit, if this device realizes based on Flash player, decode procedure is when completing in the data buffer area of NetStream, judging unit judges that the whether all decoded broadcasting of each video-frequency band comprising the video of many video-frequency bands is by judging whether the data buffer area of NetStream is empty realization, that is: judge that whether the data buffer area of NetStream is empty, if so, then end notification message is sent.
For convenience of description, various unit is divided into describe respectively with function when describing above device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add required general hardware platform by software and realizes.Based on such understanding, the technical scheme of the application can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in 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, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.System embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
The application can be used in numerous general or special purpose computing system environment or configuration.Such as: personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, system, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, the distributed computing environment comprising above any system or equipment etc. based on microprocessor.
The application can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the application in a distributed computing environment, in these distributed computing environment, be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium comprising memory device.
The above is only the embodiment of the application; it should be pointed out that for those skilled in the art, under the prerequisite not departing from the application's principle; can also make some improvements and modifications, these improvements and modifications also should be considered as the protection domain of the application.

Claims (8)

1. broadcasting comprises a method for the video of many video-frequency bands, and it is characterized in that, the method comprises:
Before current video section switches to target video section, 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, specifically comprises:
When current video section starts to play, or, when the video comprising many video-frequency bands starts to play, or, with receive current video section is switched to the triggering of target video section when for terminal time, before time after the time required for timestamp deducting loaded targets video-frequency band and modifying target video-frequency band, 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;
After receiving current video section is switched to the triggering of target video section, decoding broadcasting is carried out to 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 makes the timestamp of current video section and target video section specifically comprise continuously:
The play start time of target video section is revised as the broadcasting end time of current video section.
3. according to the method in claim 1 to 2 described in any one, it is characterized in that, described method also comprises:
Judge whether each video-frequency band comprising the video of many video-frequency bands is all loaded and all decoded broadcasting, if so, then send end notification message to stop comprising the broadcasting of the video of many video-frequency bands according to this end notification message.
4. method according to claim 3, it is characterized in that, when receive current video section is switched to the triggering of target video section time, is carried out decoding for broadcasting in the data buffer area that the target video section that modification time stabs is pushed to NetStream, then judges that the whether all decoded broadcasting of each video-frequency band comprising the video of many video-frequency bands specifically comprises:
Judge that whether the data buffer area of NetStream is empty, if so, then send end notification message.
5. broadcasting comprises a device for the video of many video-frequency bands, it is characterized in that, this device comprises: video-frequency band loading unit, timestamp amendment unit, triggering receiving element and decoding broadcast unit, wherein:
Described video-frequency band loading unit, for current video section to target video section switch before loaded targets video-frequency band, be specially: when current video section starts to play, or, when the video comprising many video-frequency bands starts to play, or, to receive when current video section switches to the triggering of target video section as terminal time, before time after the time that the timestamp deducting loaded targets video-frequency band and modifying target video-frequency band needs, loaded targets video-frequency band;
Described timestamp amendment unit, makes the timestamp of current video section and target video section continuous for the timestamp of modifying target video-frequency band before switching to target video section in current video section;
Described triggering receiving element, for receiving triggering current video section being switched to target video section;
Described decoding broadcast unit, for after receiving current video section is switched to the triggering of target video section, carries out decoding broadcasting to the target video section of modification time stamp.
6. device according to claim 5, is characterized in that, described timestamp amendment unit is specially: the broadcasting end time of the play start time of target video section being revised as current video section.
7. according to the device in claim 5 to 6 described in any one, it is characterized in that, described device also comprises: judging unit and end of playing unit, wherein:
Described judging unit, for judging whether each video-frequency band of the video comprising many video-frequency bands is all loaded and all decoded broadcasting, if so, then sends end notification message;
Described end of playing unit, for stopping according to described end notification message the broadcasting comprising the video of many video-frequency bands.
8. device according to claim 7, it is characterized in that, when receive current video section is switched to the triggering of target video section time, decoded the data buffer area that the target video section that modification time stabs is pushed to NetStream, then judging unit judges that the whether all decoded broadcasting of each video-frequency band comprising the video of many video-frequency bands is specially:
Judge that whether the data buffer area of NetStream is empty, if so, then send end notification message.
CN201210431706.4A 2012-11-01 2012-11-01 Method and device for playing video with multiple video segments Active CN102903377B (en)

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 CN102903377A (en) 2013-01-30
CN102903377B true 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)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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
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
CN109167950B (en) * 2018-10-25 2020-05-12 腾讯科技(深圳)有限公司 Video recording method, video playing method, device, equipment and storage medium

Citations (3)

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

Patent Citations (3)

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

Also Published As

Publication number Publication date
CN102903377A (en) 2013-01-30

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
CN107547940B (en) Video playing processing method, equipment and computer readable storage medium
US8321905B1 (en) Fast switching of media streams
CN110636346B (en) Code rate self-adaptive switching method and device, electronic equipment and storage medium
CN103024456B (en) A kind of Online Video player method and video playback server
CN111010614A (en) Method, device, server and medium for displaying live caption
US20160080470A1 (en) Server-side playlist stitching
CN108347622B (en) Multimedia data pushing method and device, storage medium and equipment
CN102905188A (en) Video code stream switching method and device
CN105657520A (en) Video definition switching method and video player
US11490173B2 (en) Switch of audio and video
CN104125482A (en) Streaming media playing method and device
CN1980377A (en) Method for smart inserting material
CN102790925A (en) Method and VOD (Video On Demand) terminal for playing online streaming media
CN105451071A (en) Video stream processing method, device and system
CN113424553B (en) Method and system for playback of media items
CN110198494B (en) Video playing method, device, equipment and storage medium
CN109640108A (en) Interaction data and audio, video data synchronous method and system is broadcast live based on document class
CN103747339A (en) Method and apparatus for resolving no response condition of on-line video by using android device
EP3800894A1 (en) Method and apparatus for detecting video playing quality
EP2928197A1 (en) Method of video streaming, corresponding device and system
CN105786441A (en) Audio processing method, server, user equipment and system
EP2903260A1 (en) Multi-speed playing method, device and system
CN108833968B (en) Method for caching video and related equipment

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