A kind of video locating method and video player based on programme information
Technical field
The present invention relates to video technique field, particularly a kind of video locating method and video player based on programme information.
Background technology
At present, be that Online Video program request or the broadcasting of local download film source all can run into the problem of F.F. preview.For example, film source is downloaded to the local < of broadcasting < Spring Festival Party > >, this video the inside has comprised tens programs, if want to navigate to wherein some programs, the mode of employing has:
1, constantly F.F., until find the associated video interface of expectation program, and then fine setting is to the starting position of this program.The method of this positioning video program map unusual trouble for user, can not navigate to the program that user wants fast, and this mode to locate the starting position of program not accurate yet, often to repeatedly finely tune and could determine.
2, on progress bar, rolling mouse is realized preview video in advance, and location is watched.When user wants to switch to when certain time, program request was put, mouse beacon moves to this time point on progress bar, and video content (generally showing with image format), the left button of clicking the mouse on can this time point of preview switch to this time point at once while determining starts to play.This mode be take the time and is searched as benchmark carries out program, unless user knows the reproduction time of this program, just otherwise also need repeatedly to move and can find this program; Meanwhile, if video data below does not also cushion, be that mouse is positioned on this time point, video content is now arrived in preview at once, need to wait for that video loads, more time-consuming.
3, on the basis of mode 2, increase video content description,, when mouse moves to certain time point, had text description video content now.In which, whole video is the MTV(Music Television by a plurality of segments, Music Television (MTV)) video composition, while being equivalent to this video playback, be divided into a bit of, a bit of broadcasting according to the order of sequence.This video carries out text description by related personnel to the video content of corresponding video section after uploading to network, thereby realizes the management to video set.This mode is equivalent to video file to carry out post-processed, normally the content in a period of time is carried out to video content description.That is to say, may show identical video content description two different time points, its accuracy is lower, easily misleads user; Meanwhile, although which has increased video content description, also need user to know that the reproduction time of program could locate quickly and accurately.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art part, the object of the present invention is to provide a kind of video locating method and video player based on programme information, can not be fast when solving existing video program play, the accurate problem of location.
In order to achieve the above object, the present invention has taked following technical scheme:
A video locating method based on programme information, it comprises:
A, the programme information of video file is loaded in described video file, generates corresponding previewing programs icon;
B, when displaying video, if previewing programs icon detected, be triggered, eject program information list;
C, when a video-see item is triggered in detecting program information list, obtains with the corresponding video data of this video-see item and play.
The described video locating method based on programme information, wherein, described steps A specifically comprises:
A1, the programme information of video file is divided into a plurality of video-see items, generates program information list storage;
A2, each video-see item is corresponding with corresponding video data;
A3, described program information list be loaded in the header file of video file and generate previewing programs icon.
The described video locating method based on programme information, wherein, after described steps A 1, also comprises: the word of program information list and frame are highlighted to processing, and the white space of program information list is made to transparence and process.
The described video locating method based on programme information, wherein, described programme information comprises program sequence number, programm name, program start time and program end time.
The described video locating method based on programme information, wherein, described step B specifically comprises:
B1, when displaying video, in video display frame, show described previewing programs icon;
If B2 detects previewing programs, icon is triggered, and ejects program information list; Described program information list is suspended in video clip.
A video player, it comprises:
Video pre-filtering module, for being loaded into described video file by the programme information of video file, generating corresponding previewing programs icon;
Detection module, for detection of the triggering state of previewing programs icon and video-see item;
Playing module, for when the displaying video, is triggered if previewing programs icon detected, ejects program information list; And when a video-see item is triggered in detection program information list, obtains with the corresponding video data of this video-see item and play.
Described video player, wherein, described video pre-filtering module comprises:
List generation unit, for the programme information of video file being divided into a plurality of video-see items, generates program information list storage;
Data processing unit, for corresponding with corresponding video data by each video-see item;
Loading unit, for being loaded into described program information list the header file of video file and generating previewing programs icon.
Described video player, wherein, described list generation unit is also for the word of program information list and frame are highlighted to processing, and the white space of program information list made to transparence and process.
Described video player, wherein, described programme information comprises program sequence number, programm name, program initial time and program termination time.
Described video player, wherein, described playing module comprises:
Icon display unit for when the displaying video, shows described previewing programs icon in video display frame;
List display unit, for being triggered previewing programs icon being detected, ejects program information list; Described program information list is suspended in video clip;
Video display unit, when a video-see item is triggered in program information list, obtains with the corresponding video data of this video-see item and plays.
Compared to prior art, video locating method and the video player based on programme information provided by the invention, is loaded into the programme information of video file in described video file, generates corresponding previewing programs icon; When displaying video, if previewing programs icon detected, be triggered, eject program information list, so that user understands programme content and the reproduction time of current video; When a video-see item is triggered in detecting program information list, obtains with the corresponding video data of this video-see item and play; Its mode of operation is simple, has greatly saved searching the time of user, makes user can navigate to quickly and accurately the programme content of expectation.
Accompanying drawing explanation
Fig. 1 is the flow chart that the present invention is based on the video locating method of programme information.
Fig. 2 is the schematic diagram of previewing programs icon of the present invention.
Fig. 3 is the structured flowchart of video player of the present invention.
Embodiment
The invention provides a kind of video locating method and video player based on programme information, for making object of the present invention, technical scheme and effect clearer, clear and definite, referring to accompanying drawing, developing simultaneously, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, it is the flow chart that the present invention is based on the video locating method of programme information.The described video locating method based on programme information comprises:
S100, the programme information of video file is loaded in described video file, generates corresponding previewing programs icon.
S200, when displaying video, if previewing programs icon detected, be triggered, eject program information list.
When a video-see item is triggered in S300, detection program information list, obtains with the corresponding video data of this video-see item and play.
The present invention be take programme content as according to video file is divided into a plurality of video-see items, and lists programme content, the program start/end time of each video-see item correspondence; For user's video-see provides more clearly programme information, make user can navigate to quickly and accurately the programme content of expectation.Be that described step S100 specifically comprises:
The first step, the programme information of video file is divided into a plurality of video-see items, generates program information list storage.
Described programme information comprises program sequence number, programm name, program start time and program end time.The title (as brief introduction, performing artist) that video-see item has comprised a program, time started and the end time of this program.When video-see item is more, can be numbered to show differentiation to each video-see item.
The video of Spring Festival Party of take 2013 is example, and the program information list of its generation is as follows:
Wherein, program 1 is a video-see item.By above-mentioned program information list user, can understand clear, rapidly the programme content of each time period broadcasting.If video file is TV play or film, can divide programm name according to the content of TV play or film, the initial time of this content.Word content in this program information list is only example, herein not as limitation of the present invention.
It will be appreciated that, to the associated description of programme information, be that programm name, program start/end time are by person skilled editor.Text description of the prior art is also by person skilled editor (as the mode 3 in background technology).The improvements of the present embodiment are that content that technical staff is edited is loaded in the header file of video file with the form of list, are directly presented on video playback interface in the time of need to showing, its content is fixed, and has included all programme informations.And the text description of prior art is associated with process bar, the change of moving along with mouse position and changing.
Second step, each video-see item is corresponding with corresponding video data.When selecting certain video-see item, just can be directly switch to associated video data and play like this, facilitate user's F.F. and content location.
The 3rd step, described program information list be loaded in the header file of video file and generate previewing programs icon.
As shown in Figure 2, described previewing programs icon 10 can be arranged in video display frame, and the present invention is not construed as limiting the shape of previewing programs icon 10 and position, and the previewing programs icon 10 in Fig. 2 is only example.Because program information list takes up room greatlyr, the user who has during video playback may not need F.F. location.The present embodiment ejects program information list by clicking previewing programs icon 10, does not affect existing playing function, also can not take too much video playback interface, affect video playback.When user clicks arbitrary video-see item or again clicks previewing programs icon or click current broadcast interface, described program information list can exit automatically, recovers video-see state.
Further, for watching item at browsing video when, do not affect user and watch current video, after the described first step, also comprise the word of program information list and frame are highlighted to processing, and the white space of program information list is made to transparence and process.
Should be understood that, in above-described embodiment, the relevant treatment that step S100 relates to is all that the system that whole original video files is carried out is processed, and is equivalent to process early stage.In the video file after above-mentioned processing, load program information list, generated a previewing programs icon.And prior art is by the technical staff who plays the website of this video, video file and corresponding video image and text description (as the mode 2,3 of mentioning in background technology) to be linked.Whether that is to say, in prior art, the video of playing on a website may have text description, and on another website, playing this video may just not have text description, edit relevant with the technical staff of this website; Afterwards video file and the text description of storage are linked, when mouse moves on progress bar, correspondence links to corresponding text description.And the present invention carries out early stage by video player to this video file to process, program information list is loaded in the header file of video file to the content that makes this video file comprise program information list; Be that video and this video player are one, crucial in video, provide programme information, video player can show this programme information, no matter any website, as long as adopt video provided by the invention and video player, all can realize generation and the demonstration of program information list.
The present embodiment, when playing this type of video file, shows described previewing programs icon, position as shown in Figure 2 in video display frame.When user needs F.F., can click this previewing programs icon, eject program information list, now not affect the normal play of video.Described program information list is suspended in video clip, and user can see content and the reproduction time of each program like this, can not affect watching of current video again.When user selects certain video-see item, obtain with the corresponding video data of this video-see item and play, can be switched to fast related-program, greatly saved searching the time of user, make user can navigate to quickly and accurately the programme content of expectation.
The embodiment of the present invention is also corresponding provides a kind of video player, it is a video playback application, as shown in Figure 3, it comprises video pre-filtering module 100, detection module 200 and playing module 300, described video pre-filtering module 100 connects playing module 300, and detection module 200 connects video pre-filtering module 100 and playing module 300.Video pre-filtering module 100 is loaded into the programme information of video file in described video file, generates corresponding previewing programs icon.When displaying video, detection module 200 detects the click state of previewing programs icon and video-see item.When detection module 200 detects previewing programs icon, be triggered, control playing module 300 and eject program information list.When detection module 200 detects in program information list that a video-see item is triggered, control playing module 300 and obtain with the corresponding video data of this video-see item and plays.
Wherein, described video pre-filtering module 100 comprises list generation unit 101, data processing unit 102 and loading unit 103, and described list generation unit 101, data processing unit 102, loading unit 103 connect successively.List generation unit 101 is divided into a plurality of video-see items by the programme information of video file, generates program information list storage.Loading unit 103 is loaded into described program information list in the header file of video file and generates previewing programs icon.Data processing unit is corresponding with corresponding video data by each video-see item.Described programme information comprises program sequence number, programm name, program initial time and program termination time.
When making user browse program information list, can not affect watching of current video, described list generation unit 101 is also for the word of program information list and frame are highlighted to processing, and the white space of program information list made to transparence and process.
In the present embodiment, described playing module 300 comprises:
Icon display unit 301, it is connected with loading unit 103, for when the displaying video, shows described previewing programs icon in video display frame;
List display unit 302, it is connected with detection module 200 with list generation unit 101, for being triggered previewing programs icon being detected, ejects program information list; Described program information list is suspended in video clip;
Video display unit 303, it is connected with detection module 200 with data processing unit 102, when a video-see item is triggered in program information list, obtains with the corresponding video data of this video-see item and plays.
In sum, video locating method and video player based on programme information of the present invention, in the programme information of video file, take programme content as according to, video file is divided into a plurality of video-see items, and programme content, the program start/end time of listing each video-see item correspondence, be combined into program information list and be loaded in described video file, generate corresponding previewing programs icon; When displaying video, if previewing programs icon detected, be triggered, eject program information list, so that user understands programme content and reproduction time by video-see item; When a video-see item is triggered in detecting program information list, obtains with the corresponding video data of this video-see item and play; Its mode of operation is simple, has greatly saved searching the time of user, makes user can navigate to quickly and accurately the programme content of expectation, has enriched the function of video player, has promoted user's experience.
Be understandable that, for those of ordinary skills, can be equal to replacement or change according to technical scheme of the present invention and inventive concept thereof, and all these changes or replacement all should belong to the protection range of the appended claim of the present invention.