A kind of video playing control method and systemTechnical field
The present invention relates to Online Video technical field, particularly relate to a kind of video playing control method and system.
Background technology
It is a kind of program broadcast mode realized based on http live streaming direct-seeding that Internet video is play.Wherein, the backstage of carousel platform is preset in the future a period of time, is usually the programme of 24 hours, and user can any at one dayTime point starts viewing.User is entering viewing when, and it is right that video server pushes to client end of playing back in the way of liveAnswer time point interface content.
Inventor finds during implementing the application, and either carousel platform or the program of live are to take at videoDepositing with the form of several section files in business device, each section file can be with independent play-out.Client end of playing back is being playDuring program, first downloading and describe file, this document, for describing the content of a program, particularly passes through the special of definitionTag describes address and the reproduction time of each section of this program, and reproduction time includes broadcast start time and time span.Sometimes, program also can be along with captions while playing, to help user preferably to watch program.At present, playingDuring program with captions, video server needs to push hierarchical description file, and this hierarchical description file includes video presentation literary compositionPart and captions describe file, i.e. video server not only wants pushing video to describe file, also constantly to push captions and describe file,Thus bring bigger burden to video server, and then directly affects the effect of video playback.
Summary of the invention
In view of this, embodiments provide a kind of video playing control method and system, to solve playing bandDuring the program of captions, file is described and the problem of bringing bigger burden to video server owing to needing constantly to push captions.
In order to solve the problems referred to above, the embodiment of the invention discloses a kind of video playing control method, be applied to video clothesBusiness device, described video playing control method specifically includes step:
The program play instruction that response user is sent to described video server by client end of playing back;
Generating the description file corresponding with current time, described description file includes regard corresponding with described current timeFrequently information, also includes the caption content in the preset duration with described current time as initial time;
According to described program play instruction, with direct-seeding by described description file push to described client end of playing back, instituteState client end of playing back for obtaining video segment playing according to described video information from described video server, and play simultaneouslyDescribed caption content.
Optionally, described video information includes address and the playing duration of described video segment.
Optionally, described playing duration matches with described preset duration.
Optionally, described caption content is caption information or subtitle file.
Optionally, described caption information includes captions address and caption play time, with corresponding the depositing in described captions addressStorage space internal memory contains described subtitle file.
In order to ensure the enforcement of said method, the embodiment of the present invention additionally provides a kind of video playback control system, applicationIn video server, described video playback control system specifically includes:
Instruction respond module, the program sent to described video server by client end of playing back for responding user is playInstruction;
File generating module, for generating the description file corresponding with current time, described description file includes and instituteState the video information that current time is corresponding, in also including the captions in the preset duration with described current time as initial timeHold;
File push module, for according to described program play instruction, arrives described description file push with direct-seedingDescribed client end of playing back, described client end of playing back is for obtaining video segment according to described video information from described video serverAnd play, and play described caption content simultaneously.
Optionally, described video information includes slice address and the section playing duration of described video segment.
Optionally, described playing duration matches with described preset duration.
Optionally, described caption content is caption information or subtitle file.
Optionally, described caption information includes captions address and captions playing duration, with corresponding the depositing in described captions addressStorage space internal memory contains described subtitle file.
From technique scheme it can be seen that embodiments provide a kind of video playing control method and system,The method and system are applied to video server, are specially the joint that response user is sent to video server by client end of playing backMesh play instruction;Generating the description file corresponding with current time, this describes file and includes corresponding with described current timeVideo information, also includes the caption content in the preset duration with current time as initial time;According to program play instruction, withDirect-seeding is by description file push to client end of playing back, and client end of playing back is for obtaining from video server according to video informationVideo segment is also play, and caption playing content simultaneously.Owing to caption content is included in description file, it not with single wordCurtain describes file and exists, and therefore video server describes file without frequently pushing these captions such that it is able to reduce Video serviceThe burden of device, it is to avoid result of broadcast is adversely affected.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existingIn having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only thisSome embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible toOther accompanying drawing is obtained according to these accompanying drawings.
The flow chart of steps of a kind of video playing control method that Fig. 1 provides for the embodiment of the present invention;
The flow chart of steps of the another kind of video playing control method that Fig. 2 provides for the embodiment of the present invention;
The structured flowchart of a kind of video playback control system that Fig. 3 provides for the embodiment of the present invention;
The structured flowchart of the another kind of video playback control system that Fig. 4 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, completeDescribe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based onEmbodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premiseEmbodiment, broadly falls into the scope of protection of the invention.
Embodiment one
The flow chart of steps of a kind of video playing control method that Fig. 1 provides for the embodiment of the present invention.
With reference to shown in Fig. 1, the video playing control method that the present embodiment provides is applied to the video server of video website,This video server for sending the video watched for user to client end of playing back, this video playing control method specifically include asLower step:
S101: the program play instruction of response user's input.
This program play instruction is that user is sent by client end of playing back.So-called client end of playing back refers to run on intelligencePlay-back application on the smart machines such as mobile phone, intelligent television, PC, when user wants the program playing video website, logicalCross the client end of playing back run on above-mentioned smart machine and send program play instruction to the video server being positioned at video website,At this moment this instruction is responded, to meet the playing request of user.
S102: generate the description file corresponding with current time.
This describes file and includes the video information corresponding with current time, in addition, also includes with current time for risingCaption content in the preset duration begun.In general, this describes file is m3u8 file, and this document is a listing file,For the video content that need not caption playing, this m3u8 file includes and points in video server regarding of being storedThe address of frequency section and playing duration, client end of playing back can obtain corresponding video segment according to this address from video serverAnd play.
Specific to the description file in the present embodiment, its form is also, it is preferred that m3u8 file, and this document not only includes videoInformation, also includes caption content.Video information is for describing the address of video segment and playing duration.Caption content is captionsInformation or subtitle file, the concept of caption information is corresponding with video information, including captions address and the captions of subtitle fileReproduction time, this caption play time includes play start time and plays the end time;Or, this caption content only includes wordCurtain file, this subtitle file carries play start time equally and plays the end time.The memory space that captions address is correspondingStorage has corresponding subtitle file.
In order to reduce the quantity of m3u8 file, thus reducing the propelling movement frequency of video server, this describes in file and is wrappedThe caption play time of the subtitle file including or pointing to matches with the playing duration of video segment, the most identical, so regardsFrequently server is according only to pushing the frequency of m3u8 file required for video content, pushes to Play Server and can meet broadcasting wordThe demand of curtain.
S103: according to program play instruction, push description file with direct-seeding to client end of playing back.
When user sends program play instruction by client end of playing back to video server, with direct-seeding to this broadcastingThe description file that client push is corresponding with current time and each later time point, this describes, and file is the most above-mentioned includes videoThe description file of information and caption content, concrete video information and caption content are for the same level of this document, the most on timeBetween for order be arranged in corresponding list.
Client end of playing back is receiving after this describes file, obtains from video server by the content describing file definedVideo segment and corresponding subtitle file play out, or obtain video segment and describe the word included by file plus thisCurtain file plays out.
From technique scheme it can be seen that present embodiments provide a kind of video playing control method, the method is appliedThe program broadcasting sent to video server by client end of playing back in the video server of carousel platform, specially response user is referred toOrder;Generating the description file corresponding with current time, this describes file and includes the video information corresponding with described current time,Also include the caption content in the preset duration with current time as initial time;According to program play instruction, with direct-seedingBy description file push to client end of playing back, client end of playing back is for obtaining video segment according to video information from video serverAnd playing, and caption playing content simultaneously.Owing to caption content is included in description file, it not to describe literary composition with single captionsPart exists, and therefore video server describes file without frequently pushing these captions such that it is able to reduce the burden of video server,Avoid result of broadcast is adversely affected.
It addition, it is worthy of note, step S102 listed in the present embodiment is had to carry out the most every time, ifDescribe file generate the most in advance, then video server according to program play instruction to client end of playing back push generate in advance retouchState file.
Embodiment two
The flow chart of steps of the another kind of video playing control method that Fig. 2 provides for the embodiment of the present invention.
With reference to shown in Fig. 2, the video playing control method that the present embodiment provides is applied to client end of playing back, this broadcasting clientEnd sends, for the video server playing video website, the video watched for user, and this video playing control method specifically includesFollowing steps:
S201: send program play instruction to video server.
This program play instruction is that user is sent by this client end of playing back.So-called client end of playing back refers to run on intelligencePlay-back application on the smart machines such as energy mobile phone, intelligent television, PC, when user wants the program playing video website,Refer to the video server transmission program broadcasting being positioned at video website by running on the client end of playing back on above-mentioned smart machineOrder.
Video server can generate the description file corresponding with current time according to above-mentioned program play instruction.
This describes file and includes the video information corresponding with current time, in addition, also includes with current time for risingCaption content in the preset duration begun.In general, this describes file is m3u8 file, and this document is a listing file,For the video content that need not caption playing, this m3u8 file includes and points in video server regarding of being storedThe address of frequency section and playing duration, client end of playing back can obtain corresponding video segment according to this address from video serverAnd play.
Specific to the description file in the present embodiment, its form is also, it is preferred that m3u8 file, and this document not only includes videoInformation, also includes caption content.Video information is for describing the address of video segment and playing duration.Caption content is captionsInformation or subtitle file, the concept of caption information is corresponding with video information, including captions address and the captions of subtitle fileReproduction time, this caption play time includes play start time and plays the end time;Or, this caption content only includes wordCurtain file, this subtitle file carries play start time equally and plays the end time.The memory space that captions address is correspondingStorage has corresponding subtitle file.
In order to reduce the quantity of m3u8 file, thus reducing the propelling movement frequency of video server, this describes in file and is wrappedThe caption play time of the subtitle file including or pointing to matches with the playing duration of video segment, the most identical, so regardsFrequently server is according only to pushing the frequency of m3u8 file required for video content, pushes to Play Server and can meet broadcasting wordThe demand of curtain.
S202: receive the description file that video server pushes with direct-seeding.
Generating after foregoing description file, pushing and current time and later each to this client end of playing back with direct-seedingThe description file that individual time point is corresponding, this describes the most above-mentioned description file including video information and caption content of file, specificallyVideo information and caption content, for the same level of this document, are the most temporally arranged in corresponding list for order.
S203: obtain video segment and subtitle file from video server according to foregoing description file.
After receiving the description file that video server sends, by describing the content of file defined from video serverObtain video segment and corresponding subtitle file plays out, or obtain video segment and describe included by file plus thisSubtitle file play out.
From technique scheme it can be seen that present embodiments provide a kind of video playing control method, the method is appliedIn client end of playing back, being specially and send program play instruction to video server, video server can generate and current time pairThe description file answered, this describes file and includes the video information corresponding with described current time, also include with current time beCaption content in the preset duration of initial time;Receive video server and will describe file with direct-seeding, finally according to upperState description file obtain video segment from video server and play, and caption playing content simultaneously.Owing to caption content includesIn describing file, not being to describe file with single captions to exist, therefore video server is retouched without frequently pushing these captionsState file such that it is able to reduce the burden of video server, it is to avoid result of broadcast is adversely affected.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of action groupClosing, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because depending onAccording to the embodiment of the present invention, some step can use other orders or carry out simultaneously.Secondly, those skilled in the art also shouldKnowing, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention implementsNecessary to example.
Embodiment three
The structured flowchart of a kind of video playback control system that Fig. 3 provides for the embodiment of the present invention.
With reference to shown in Fig. 3, the video playback control system that the present embodiment provides in the video server of video website,This video server for sending the video watched for user to client end of playing back, and this carousel control system specifically includes instruction and ringsAnswer module 10, file generating module 20 and file push module 30.
Instruction respond module 10 is for responding the program play instruction of user's input.
This program play instruction is that user is sent by client end of playing back.So-called client end of playing back refers to run on intelligencePlay-back application on the smart machines such as mobile phone, intelligent television, PC, when user wants the program playing video website, logicalCross the client end of playing back run on above-mentioned smart machine and send program play instruction to the video server being positioned at video website,At this moment this instruction is responded, to meet the playing request of user.
File generating module 20 is for generating the description file corresponding with current time.
This describes file and includes the video information corresponding with current time, in addition, also includes with current time for risingCaption content in the preset duration begun.In general, describing file is m3u8 file, and this document is a listing file, rightFor the video content that need not caption playing, this m3u8 file includes and points to the video stored in video serverThe address of section and playing duration, client end of playing back can obtain corresponding video segment also according to this address from video serverPlay.
Specific to the description file in the present embodiment, its form is also, it is preferred that m3u8 file, and this document not only includes videoInformation, also includes caption content.Video information is for describing the address of video segment and playing duration.Caption content is captionsInformation or subtitle file, the concept of caption information is corresponding with video information, including captions address and the captions of subtitle fileReproduction time, this caption play time includes play start time and plays the end time;Or, this caption content only includes wordCurtain file, this subtitle file carries play start time equally and plays the end time.The memory space that captions address is correspondingStorage has corresponding subtitle file.
In order to reduce the quantity of m3u8 file, thus reducing the propelling movement frequency of video server, this describes in file and is wrappedThe caption play time of the subtitle file including or pointing to matches with the playing duration of video segment, the most identical, so regardsFrequently server is according only to pushing the frequency of m3u8 file required for video content, pushes to Play Server and can meet broadcasting wordThe demand of curtain.
File push module 30 is for according to program play instruction, pushing description literary composition with direct-seeding to client end of playing backPart.
When user sends program play instruction by client end of playing back to video server, with direct-seeding to this broadcastingThe description file that client push is corresponding with current time and each later time point, this describes, and file is the most above-mentioned includes videoThe description file of information and caption content, concrete video information and caption content are for the same level of this document, the most on timeBetween for order be arranged in corresponding list.
Client end of playing back is receiving after this describes file, obtains from video server by the content describing file definedVideo segment and corresponding subtitle file play out, or obtain video segment and describe the word included by file plus thisCurtain file plays out.
From technique scheme it can be seen that present embodiments provide a kind of video playback control system, this system is appliedIn the video server of video website, it is specially the program broadcasting that response user is sent to video server by client end of playing backInstruction;Generating the description file corresponding with current time, this describes file and includes the video letter corresponding with described current timeBreath, also includes the caption content in the preset duration with current time as initial time;According to program play instruction, with live sideFormula will describe file push and cut for obtaining video according to video information from video server to client end of playing back, client end of playing backSheet is also play, and caption playing content simultaneously.Owing to caption content is included in description file, it not to describe with single captionsFile exists, and therefore video server describes file without frequently pushing these captions such that it is able to reduce the negative of video serverLoad, it is to avoid result of broadcast is adversely affected.
Embodiment four
The structured flowchart of the another kind of video playback control system that Fig. 4 provides for the embodiment of the present invention.
With reference to shown in Fig. 4, the video playback control system that the present embodiment provides in client end of playing back, this broadcasting clientEnd sends, for the video server playing video website, the video watched for user, and this video playback control system includes instructionSending module 40, file reception module 50 and video acquiring module 60.
Instruction sending module 40 sends program play instruction to video server.
This program play instruction is that user is sent by this client end of playing back.So-called client end of playing back refers to run on intelligencePlay-back application on the smart machines such as energy mobile phone, intelligent television, PC, when user wants the program playing video website,Refer to the video server transmission program broadcasting being positioned at video website by running on the client end of playing back on above-mentioned smart machineOrder.
Video server can generate the description file corresponding with current time according to above-mentioned program play instruction.
This describes file and includes the video information corresponding with current time, in addition, also includes with current time for risingCaption content in the preset duration begun.In general, this describes file is m3u8 file, and this document is a listing file,For the video content that need not caption playing, this m3u8 file includes and points in video server regarding of being storedThe address of frequency section and playing duration, client end of playing back can obtain corresponding video segment according to this address from video serverAnd play.
Specific to the description file in the present embodiment, its form is also, it is preferred that m3u8 file, and this document not only includes videoInformation, also includes caption content.Video information is for describing the address of video segment and playing duration.Caption content is captionsInformation or subtitle file, the concept of caption information is corresponding with video information, including captions address and the captions of subtitle fileReproduction time, this caption play time includes play start time and plays the end time;Or, this caption content only includes wordCurtain file, this subtitle file carries play start time equally and plays the end time.The memory space that captions address is correspondingStorage has corresponding subtitle file.
In order to reduce the quantity of m3u8 file, thus reducing the propelling movement frequency of video server, this describes in file and is wrappedThe caption play time of the subtitle file including or pointing to matches with the playing duration of video segment, the most identical, so regardsFrequently server is according only to pushing the frequency of m3u8 file required for video content, pushes to Play Server and can meet broadcasting wordThe demand of curtain.
File reception module 50 is for receiving the description file that video server pushes with direct-seeding.
Video server, after generating foregoing description file, pushes and current time to this client end of playing back with direct-seedingThe description file corresponding with each later time point, this describes the most above-mentioned description including video information and caption content of fileFile, concrete video information and caption content, for the same level of this document, are the most temporally arranged in corresponding for orderList.File reception module 50 is then used for receiving foregoing description file.
Video acquiring module 60 is for obtaining video segment and subtitle file according to foregoing description file from video server.
Video acquiring module 60 is after receiving the description file that video server sends, by describing the interior of file definedHold and play out from video server acquisition video segment and corresponding subtitle file, or obtain video segment and plus being somebody's turn to doDescribe the subtitle file included by file to play out.
From technique scheme it can be seen that present embodiments provide a kind of video playback control system, this system is appliedIn client end of playing back, being specially and send program play instruction to video server, video server can generate and current time pairThe description file answered, this describes file and includes the video information corresponding with described current time, also include with current time beCaption content in the preset duration of initial time;Receive video server and will describe file with direct-seeding, finally according to upperState description file obtain video segment from video server and play, and caption playing content simultaneously.Owing to caption content includesIn describing file, not being to describe file with single captions to exist, therefore video server is retouched without frequently pushing these captionsState file such that it is able to reduce the burden of video server, it is to avoid result of broadcast is adversely affected
For device embodiment, due to itself and embodiment of the method basic simlarity, so describe is fairly simple, relevantPart sees the part of embodiment of the method and illustrates.
Each embodiment in this specification all uses the mode gone forward one by one to describe, what each embodiment stressed is withThe difference of other embodiments, between each embodiment, identical similar part sees mutually.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present invention can be provided as method, device or calculateMachine program product.Therefore, the embodiment of the present invention can use complete hardware embodiment, complete software implementation or combine software andThe form of the embodiment of hardware aspect.And, the embodiment of the present invention can use one or more wherein include computer canWith in the computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) of program codeThe form of the computer program implemented.
The embodiment of the present invention is with reference to method, terminal unit (system) and computer program according to embodiments of the present inventionThe flow chart of product and/or block diagram describe.It should be understood that can be by computer program instructions flowchart and/or block diagramIn each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.These can be providedComputer program instructions sets to general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminalsStandby processor is to produce a machine so that held by the processor of computer or other programmable data processing terminal equipmentThe instruction of row produces for realizing in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frameThe device of the function specified.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing terminal equipmentIn the computer-readable memory worked in a specific way so that the instruction being stored in this computer-readable memory produces bagIncluding the manufacture of command device, this command device realizes in one flow process of flow chart or multiple flow process and/or one side of block diagramThe function specified in frame or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment so thatOn computer or other programmable terminal equipment, execution sequence of operations step is to produce computer implemented process, thusThe instruction performed on computer or other programmable terminal equipment provides for realizing in one flow process of flow chart or multiple flow processAnd/or the step of the function specified in one square frame of block diagram or multiple square frame.
Although having been described for the preferred embodiment of the embodiment of the present invention, but those skilled in the art once knowing baseThis creativeness concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed toThe all changes including preferred embodiment and falling into range of embodiment of the invention and amendment.
Finally, in addition it is also necessary to explanation, in this article, the relational terms of such as first and second or the like be used merely to byOne entity or operation separate with another entity or operating space, and not necessarily require or imply these entities or operationBetween exist any this reality relation or order.And, term " includes ", " comprising " or its any other variant meaningContaining comprising of nonexcludability, so that include that the process of a series of key element, method, article or terminal unit not only wrapInclude those key elements, but also include other key elements being not expressly set out, or also include for this process, method, articleOr the key element that terminal unit is intrinsic.In the case of there is no more restriction, by wanting that statement " including ... " limitsElement, it is not excluded that there is also other identical element in including the process of described key element, method, article or terminal unit.
The technical scheme provided the embodiment of the present invention above is described in detail, specific case used hereinPrinciple and embodiment to the present invention are set forth, and the explanation of above example is only intended to help to understand the side of the present inventionMethod and core concept thereof;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, in detailed description of the inventionAnd all will change in range of application, in sum, this specification content should not be construed as limitation of the present invention.