Content of the invention
The embodiment of the present invention provides a kind of video file dynamic previewing method and apparatus of player so that user can be more
Content for easily preview to video file.
On the one hand, embodiments provide a kind of video file dynamic previewing method of player, the method includes:
Multiple images intercepting video file as multiple thumbnails of described video file and store the plurality of thumbnail;In video
It is that described video file increases by a thumbnail window and shows user in dynamic previewing pattern, display in described thumbnail window
A hypertonic sketch map in the plurality of thumbnail;If mouse falls in the range of described thumbnail window, by the plurality of contracting
Sketch map continuous samsara broadcasting at set time intervals in described thumbnail window.
Preferably, multiple breviaries as described video file for multiple images of video file are intercepted in the embodiment of the present invention
Figure includes:Play local video file or separately open one while local video file is added to playlist or media library
Thread interception sets the thumbnail of quantity N;Or, utilize while playing and be not downloaded to local network video file completely
The download progress playing thread with described network video file intercepts the thumbnail setting quantity N, and N is more than the integer waiting 2.
Preferably, the thumbnail intercepting setting quantity N in the embodiment of the present invention includes:To entirely be regarded using N number of time point
The progress of frequency file is bisected into N+1 lattice, finds the key frame nearest with described N number of time point as N number of thumbnail.
Preferably, the embodiment of the present invention also includes:If mouse removes the scope of described thumbnail window, stop wheel and playback
Put and show individual thumbnail.
Preferably, it is that described video file increases by a thumbnail window in video dynamic previewing pattern in the embodiment of the present invention
Mouth simultaneously shows user to include:If in player, user shows that broadcast window and playlist interface enter video dynamic previewing mould
Formula, then increase by a thumbnail window and show user for each list items of playlist;And, if user is in player exhibition
Show that media library window interface enters video dynamic previewing pattern, then increase by a breviary for each video file in media library window
Figure window simultaneously shows user.
On the other hand, the embodiment of the present invention additionally provides a kind of video file dynamic previewing device of player, including:Contracting
Sketch map interception unit, for intercepting multiple thumbnails as described video file for multiple images of video file;Thumbnail is deposited
Storage unit, for storing the thumbnail that described thumbnail interception unit is intercepted;Thumbnail display unit, for dynamic in video
It is that described video file increases by a thumbnail window and shows user in preview mode, in described thumbnail window, display is described
A hypertonic sketch map in multiple thumbnails;Thumbnail controls unit, for capturing mouse position and when mouse falls into described contracting
When in the range of sketch map window, the continuous samsara at set time intervals in described thumbnail window by the plurality of thumbnail
Play;Thumbnail shows control unit, for controlling thumbnail interception unit to intercept thumbnail, and described thumbnail is stored in institute
State thumbnail storage unit, and the storage location indicating described thumbnail for described thumbnail controls unit.
Preferably, in the embodiment of the present invention, thumbnail interception unit includes:Local video interception unit, for playing this
Ground video file or local video file is added to while playlist or media library is separately opened a thread interception and is set number
The thumbnail of amount N;Online Video interception unit, for profit while broadcasting is not downloaded to local network video file completely
Intercept the thumbnail setting quantity N with playing thread with the download progress of described network video file, N is whole more than grade 2
Number.
Preferably, in the embodiment of the present invention, local video interception unit and described Online Video interception unit intercept and set number
The thumbnail of amount N specifically includes:Using N number of time point, the progress of whole video file is bisected into N+1 lattice, finds and described N
The nearest key frame of individual time point is as N number of thumbnail.
Preferably, in the embodiment of the present invention, thumbnail controls unit is additionally operable to remove the model of described thumbnail window when mouse
When enclosing, stop samsara and play and show individual thumbnail.
Preferably, if in the embodiment of the present invention in player, user shows that broadcast window and playlist interface enter video
Dynamic previewing pattern, then each list items that described thumbnail display unit is used for as playlist increase by a thumbnail window simultaneously
Show user;If in player, user shows that media library window interface enters video dynamic previewing pattern, described thumbnail
Display unit is used for increasing by a thumbnail window and showing user for each video file in media library window.
On the other hand, the embodiment of the present invention additionally provides a kind of terminal, dynamic including video file as above
Pre-viewing device.
The embodiment of the present invention is passed through to intercept the sectional drawing in Each point in time for the video file, and by these sectional drawings with thumbnail wheel
The mode broadcast show user so that user be no longer necessary to commence play out video just can directly preview to the phase of this video file
Close content, facilitate user and understand that video content also improves Consumer's Experience.
Specific embodiment
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, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of protection of the invention.
The flow process being illustrated in figure 1 a kind of video file dynamic previewing method of player provided in an embodiment of the present invention is shown
It is intended to, the method comprises the steps:
S101:Intercept multiple thumbnails as this video file for multiple images of video file.In the present embodiment, should
Video file can be stored in local video file or the network video file not yet downloaded, for not yet
For the network video file downloaded, the present embodiment such as can intercept thumbnail with download progress.In the present embodiment
In the type of this video file is not limited.
As one embodiment of the present of invention, can be added in broadcasting local video file or by local video file
The thumbnail that a thread interception sets quantity N is separately opened while playlist or media library;Or, it is not downloaded to completely playing
Number is set using playing the download progress with described network video file for the thread and intercept while local network video file
The thumbnail of amount N, N is more than the integer waiting 2.
When intercepting local video file, the thumbnail intercepting setting quantity N here is specifically as follows:Using N number of time
The progress of whole video file is bisected into N+1 lattice by point, finds the key frame nearest with this N number of time point as N number of thumbnail.
When intercepting does not download the network video file finishing completely, the thumbnail intercepting setting quantity N here specifically may be used
Think:Using N number of time point, the progress of whole network video file is bisected into N+1 lattice, finds nearest with this N number of time point
Key frame, as N number of thumbnail, because network video file has not been downloaded completely, therefore can not stop to inquire using an intervalometer
The download progress of network video file, when intercepting the time point of thumbnail close to next, carries out the intercepting of key frame.
S102:Store multiple thumbnails of the video file of above-mentioned intercepting.
In the present embodiment, for example can by multiple thumbnail storage the file directory in player miniimage literary composition
In part.
S103:Increase by a thumbnail window for this video file in video dynamic previewing pattern and show user, should
The hypertonic sketch map in above-mentioned multiple thumbnails is shown in thumbnail window.
Video dynamic previewing pattern can enter according to the selection of user, and in this mode, each video file all can be right
Answer a thumbnail window, in this thumbnail window, one of multiple thumbnails of storage can be shown, such as, display is multiple
The first hypertonic sketch map in thumbnail, certainly, for being particularly shown which hypertonic sketch map embodiment of the present invention is not limited.
S104:Real-time capture mouse position.
S105:Judge whether mouse falls in the range of thumbnail window, if falling into, entering step S106, otherwise returning
Return step S104.
S106:The continuous samsara broadcasting at set time intervals in thumbnail window by above-mentioned multiple thumbnails.
In the present embodiment, player can catch the position of mouse, when mouse falls in thumbnail window ranges, broadcasts
Put device and can judge this video file corresponding to thumbnail window first, then basis goes to find in memory element and this video literary composition
The corresponding multiple thumbnails of part, the continuous samsara broadcasting at set time intervals in thumbnail window by the plurality of thumbnail.
In the present embodiment, such as corresponding thumbnail can be searched in miniimage file according to the ID of video file.
The embodiment of the present invention is passed through to intercept the sectional drawing in Each point in time for the video file, and by these sectional drawings with thumbnail wheel
The mode broadcast show user so that user be no longer necessary to commence play out video just can directly preview to the phase of this video file
Close content, facilitate user and understand that video content also improves Consumer's Experience.
The video file selection interface of existing player generally comprises the following two kinds:The first, in main window show
Broadcast window and playlist, provide the selection of video file with list mode in playlist wherein;Second, leading
Show media library window in window, provided in the way of list mode or single video file sectional drawing in media library window and regard
The selection of frequency file.Below the present invention is applied to above two video file selection interface be described respectively:
The video file dynamic previewing method flow being illustrated in figure 2 another kind player provided in an embodiment of the present invention shows
It is intended to, the method comprises the steps:
S201:Open player and enter displaying broadcast window and playlist interface.
S202:Judge whether user selects to enter video dynamic previewing pattern, if so, then enter step S204, otherwise enter
Enter step S203.
S203:In the play list video file is listed with list mode.
S204:Each list items for playlist increase by a thumbnail window and show user.
It is illustrated in figure 3 the boundary carrying out dynamic previewing in broadcast window and playlist interface provided in an embodiment of the present invention
Face schematic diagram, as seen from Figure 3, this interface includes title bar, broadcast window, playlist and control group.Wherein in title bar
Can there are media library select button and mode selecting button, user can enter media library and the application by above-mentioned button
In video dynamic previewing pattern, then increased and the thumbnail corresponding to this list items after each list items of playlist
Window.
S205:The position of real-time capture mouse.
S206:Judge whether mouse falls in the range of thumbnail window, if so, then enter step S207, otherwise return
Step S205.
S207:Determine No. ID of the corresponding video file of thumbnail window that mouse is fallen into.
S208:According to described video file No. ID obtains from memory element needs multiple thumbnails of carousel.
S209:In thumbnail window, above-mentioned multiple thumbnails are play in continuous samsara at set time intervals.
S210:Judge whether mouse leaves current thumbnail figure window, if so, then enter step S211, otherwise return to step
S209.
S211:Stop samsara playing and show individual thumbnail.
The embodiment of the present invention is passed through to intercept the sectional drawing in Each point in time for the video file, and by these sectional drawings with thumbnail wheel
The mode broadcast show user so that user be no longer necessary to commence play out video just can directly preview to the phase of this video file
Close content, facilitate user and understand that video content also improves Consumer's Experience.
The video file dynamic previewing method flow being illustrated in figure 4 another kind player provided in an embodiment of the present invention shows
It is intended to, the method comprises the steps:
S401:Open player and enter displaying media library window interface.
S402:Judge whether user selects to enter video dynamic previewing pattern, if so, then enter step S404, otherwise enter
Enter step S403.
S403:With list mode or single sectional drawing pattern exposure video file.
S404:Increase by a thumbnail window and show user for each video file in media library window.
It is illustrated in figure 5 the interface carrying out dynamic previewing in media library window interface provided in an embodiment of the present invention to illustrate
Figure, as seen from Figure 5, this interface includes title bar, media library classification column, the broadcast window reducing, media library content display field
And control group, the thumbnail window that the wherein M1-M6 in media library content display field is increased by the application.
S405:The position of real-time capture mouse.
S406:Judge whether mouse falls in the range of thumbnail window, if so, then enter step S407, otherwise return
Step S405.
S407:Determine No. ID of the corresponding video file of thumbnail window that mouse is fallen into.
S408:According to described video file No. ID obtains from memory element needs multiple thumbnails of carousel.
S409:In thumbnail window, above-mentioned multiple thumbnails are play in continuous samsara at set time intervals.
S410:Judge whether mouse leaves current thumbnail figure window, if so, then enter step S411, otherwise return to step
S409.
S411:Stop samsara playing and show individual thumbnail.
The embodiment of the present invention is passed through to intercept the sectional drawing in Each point in time for the video file, and by these sectional drawings with thumbnail wheel
The mode broadcast show user so that user be no longer necessary to commence play out video just can directly preview to the phase of this video file
Close content, facilitate user and understand that video content also improves Consumer's Experience.
The structure being illustrated in figure 6 a kind of video file dynamic previewing device of player provided in an embodiment of the present invention is shown
It is intended to, this device includes:Thumbnail interception unit 610, thumbnail storage unit 620, thumbnail display unit 630, thumbnail
Control element 640 and thumbnail show control unit 650.
Thumbnail interception unit 610 is used for intercepting multiple breviaries as this video file for multiple images of video file
Figure.
As one embodiment of the present of invention, as shown in fig. 7, this thumbnail interception unit 610 can include:Local video
Interception unit 611 and Online Video interception unit 612.Local video interception unit 611 be used for play local video file or
Local video file is added to the thumbnail separately opening a thread interception setting quantity N while playlist or media library by person,
Online Video interception unit 612 is used for utilizing while playing and be not downloaded to local network video file completely plays thread
Download progress with described network video file intercepts the thumbnail setting quantity N, and N is more than the integer waiting 2.
When intercepting local video file, the thumbnail intercepting setting quantity N here is specifically as follows:Using N number of time
The progress of whole video file is bisected into N+1 lattice by point, finds the key frame nearest with this N number of time point as N number of thumbnail.
When intercepting does not download the network video file finishing completely, the thumbnail intercepting setting quantity N here specifically may be used
Think:Using N number of time point, the progress of whole network video file is bisected into N+1 lattice, finds nearest with this N number of time point
Key frame, as N number of thumbnail, because network video file has not been downloaded completely, therefore can not stop to inquire using an intervalometer
The download progress of network video file, when intercepting the time point of thumbnail close to next, carries out the intercepting of key frame.
Thumbnail storage unit 620 is used for storing the thumbnail that thumbnail interception unit 610 is intercepted.
Thumbnail display unit 630 is used for increasing by a thumbnail window simultaneously for video file in video dynamic previewing pattern
Show user, in this thumbnail window, show the hypertonic sketch map in multiple thumbnails.
As one embodiment of the present of invention, if in player, user shows that broadcast window and playlist interface enter and regard
Frequency dynamic previewing pattern, then each list items that thumbnail display unit 630 is used for as playlist increase by a thumbnail window
And show user;
As one embodiment of the present of invention, if in player, user shows that media library window interface entrance video is dynamically pre-
Look at pattern, then thumbnail display unit 630 is used for increasing by a thumbnail window simultaneously for each video file in media library window
Show user.
Thumbnail controls unit 640 is used for capturing mouse position and when mouse falls in the range of thumbnail window,
The continuous samsara broadcasting at set time intervals in thumbnail window by multiple thumbnails.
As one embodiment of the present of invention, thumbnail controls unit 640 is additionally operable to remove described thumbnail window when mouse
During the scope of mouth, stop samsara and play and show individual thumbnail.
Thumbnail shows that control unit 650 is used for controlling thumbnail interception unit 610 to intercept thumbnail, and thumbnail is deposited
Enter thumbnail storage unit 620, and the storage location indicating described thumbnail for thumbnail controls unit 640.
The embodiment of the present invention is passed through to intercept the sectional drawing in Each point in time for the video file, and by these sectional drawings with thumbnail wheel
The mode broadcast show user so that user be no longer necessary to commence play out video just can directly preview to the phase of this video file
Close content, facilitate user and understand that video content also improves Consumer's Experience.
It is illustrated in figure 8 a kind of structural representation of terminal provided in an embodiment of the present invention, this terminal 800 wraps
Include video file dynamic previewing device 801, this video file dynamic previewing device 801 can be the video literary composition as corresponding to Fig. 6
Part dynamic previewing device, will not be described here.
In one or more exemplary designs, above-mentioned functions described by the embodiment of the present invention can be in hardware, soft
The combination in any of part, firmware or this three is realizing.If realized in software, these functions can store and computer-readable
On medium, or it is transmitted on the medium of computer-readable with one or more instructions or code form.Computer readable medium includes electricity
Brain stores medium and is easy to so that allowing computer program transfer to the telecommunication media in other places from a place.Storage medium is permissible
It is any general or special computer can be with the useable medium of access.For example, such computer readable media can include but
It is not limited to RAM, ROM, EEPROM, CD-ROM or other optical disc storage, disk storage or other magnetic storage device, or other
What can be used for carrying or storing to instruct or data structure and other can be by general or special computer or general or special handlings
Device reads the medium of the program code of form.Additionally, any connection can be properly termed computer readable medium, example
As if software is to pass through a coaxial cable, optical fiber computer, double from a web-site, server or other remote resource
Twisted wire, Digital Subscriber Line (DSL) or with the wireless way for transmittings such as example infrared, wireless and microwave be also contained in defined
In computer readable medium.Described video disc (disk) and disk (disc) include Zip disk, radium-shine disk, CD, DVD, floppy disk
And Blu-ray Disc, disk is generally with magnetic duplication data, and video disc generally carries out optical reproduction data with laser.Combinations of the above
Can also be included in computer readable medium.
Above-described specific embodiment, has been carried out to the purpose of the present invention, technical scheme and beneficial effect further
Describe in detail, be should be understood that the specific embodiment that the foregoing is only the present invention, be not intended to limit the present invention
Protection domain, all any modification, equivalent substitution and improvement within the spirit and principles in the present invention, done etc., all should comprise
Within protection scope of the present invention.