A kind of method and apparatus that list of videos is set
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and apparatus for arranging list of videos.
Background technology
With computer technology, the developing rapidly of the network communications technology, Internet video gradually obtained popularization and
Fast-developing.User can carry out net by terminal (fixed terminal such as such as mobile terminal such as mobile phone, panel computer, or desktop computer)
The broadcasting of network video.Internet video can be divided into live video and playback video, and live video refers to synchronously broadcast with TV programme
The Internet video that puts, plays back the recording TV program or straight that video refers to preserve in video library after TV programme are finished
Broadcast the video that video is obtained.
General live video and playback video are needed respectively by different application programs, or the difference of same application domain
Interface plays out.List of videos is provided with the application program (or interface) for playing playback video, the list of videos is
The list of videos of video library, is provided with the list item of the Internet video (playback video) that store in video library in list of videos, can
Corresponding Internet video is played to click on list item.In the application program (or interface) for playing live video, can select live
Channel is to play the direct broadcast band just in live Internet video (live video).
During the present invention is realized, inventor has found that above-mentioned technology at least has problems with:
The list item of the Internet video stored in video library is only included in the list of videos of video library, and user is regarded in broadcasting playback
During frequency, the relevant information if necessary to obtain live video (is such as checked related to current playback video just live
Or will be live Internet video), then need the application program (or interface) from playback video to be switched to the application of live video
Program (or interface), can carry out acquisition of information.For example, user play video library in certain video group (video group is by same
Series video constitutes, for example, video one video group of composition of each collection of certain TV play, or each phase in certain variety show season
Video constitutes a video group, etc., in the list of videos of video library, the list item of video group being provided with, the list item can be opened up
Open, including in video library store each video for belonging to the video group list item, this for video group sublist item) in return
Video is put, if the partial video in video group is also without live or just live, the video group stored in video library
Playback video is the partial video of the video group, and user needs the application program (or interface) for being switched to live video just look into
See other videos of the video group whether just live or will be live.Using above-mentioned technology, cause to obtain live video correlation
The efficiency of information is more low.
Content of the invention
In order to above-mentioned technology is solved the problems, such as, a kind of method that list of videos is set and dress is embodiments provided
Put, to improve the efficiency for obtaining live video relevant information.The technical scheme is as follows:
On the one hand, there is provided a kind of method for arranging list of videos, methods described include:
Obtain the mark just in live or will be live Internet video;
If according to the mark of the Internet video, determine in video library and the Internet video is not stored, then described
Add the list item of the Internet video in the list of videos of video library, the video library is used for storing playback video;
Wherein, the list item of the Internet video is added in the video group belonging to the Internet video, the video group
It is made up of associated video.
On the other hand, there is provided a kind of device for arranging list of videos, described device include:
Acquisition module, for obtaining the mark just in live or will be live Internet video;
Add module, if for the mark according to the Internet video, determines in video library and does not store the network
Video, then add the list item of the Internet video in the list of videos of the video library, and the video library is used for storing playback
Video;
Wherein, the list item of the Internet video is added in the video group belonging to the Internet video, the video group
It is made up of associated video.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
In the embodiment of the present invention, the mark just in live or will be live Internet video is obtained, if according to the net
The mark of network video, determines in video library and does not store the Internet video, then add the network in the list of videos of video library
The list item of video, so, user can obtain the relevant information of live video in the list of videos of video library, and need not carry out should
With the switching at program or interface, it is thus possible to improve the efficiency for obtaining live video relevant information.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to making needed for embodiment description
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the method flow diagram for arranging list of videos provided in an embodiment of the present invention;
Fig. 2 is the apparatus structure schematic diagram for arranging list of videos provided in an embodiment of the present invention.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment one
A kind of method that list of videos is set is embodiments provided, as shown in figure 1, the handling process of the method can
To include the steps:
Step 101, obtains the mark just in live or will be live Internet video.
Step 102, if according to the mark of the Internet video for obtaining, determining in video library and not storing the Internet video,
In the list of videos of video library, then add the list item of the Internet video.
In the embodiment of the present invention, the mark just in live or will be live Internet video is obtained, if according to the net
The mark of network video, determines in video library and does not store the Internet video, then add the network in the list of videos of video library
The list item of video, so, user can obtain the relevant information of live video in the list of videos of video library, and need not carry out should
With the switching at program or interface, it is thus possible to improve the efficiency for obtaining live video relevant information.
Embodiment two
A kind of method that list of videos is set is embodiments provided, the executive agent of the method can be service
Device, preferably plays the background server of the application program of Internet video, and wherein, the application program can be used for playing back video
Play, in application program, be provided with the list of videos of video library.
Below in conjunction with implementation procedure, the handling process shown in Fig. 1 is described in detail, particular content can be as
Under:
Step 101, obtains the mark just in live or will be live Internet video.Wherein, just in live network video
Frequency can be that certain direct broadcast band current (such as central authorities 1, central 2 etc.) is carrying out live Internet video, network that will be live
Video can be that certain direct broadcast band has been predefined in certain period in future and carries out live Internet video.
In force, the mark just in live or will be live Internet video can be obtained in live video information table
Know.Live video information table is the information table for recording the live Internet video of each direct broadcast band, can wherein record each live frequency
Road can record the mark of live each Internet video, direct broadcast band, live period, directly in the live Internet video of day part
It can be EPG (Electronic Program Guide, electric program menu) to broadcast video information table.The mark of Internet video can
To be the title of Internet video, such as TV play struggle the 5th integrates, I is the 3rd phase of singer's first season etc., or in advance as network
The identification code that video is arranged.The live period is that Internet video carries out the live time period, can be by live time started and straight
Broadcast the end time to record the live period.
Live video information table can be by carrying out integrating the live video information for being obtained from each TV station's server
Arrive, it is also possible to obtained by the live video information for being obtained from information site is carried out integration, can also be straight by manual mode
Connect typing and store server and obtain.
According to each Internet video corresponding live period in current time and live video information table, it may be determined that go out
Live or will be live Internet video, the live period contain the Internet video of current time be just in live network video
Frequently, the Internet video that the live period starts after current time is Internet video that will be live.
In force, trigger condition can be set for the execution of step 101, for example, trigger condition can be detected directly
Broadcasting video information table has renewal.Or, it is preferred that the trigger condition can reach the default cycle (such as 10 minutes, 15 points
Clock, 30 minutes etc.), the process of corresponding step 101 can be:According to the default cycle, obtain just live or will be live
Internet video mark.As such, it is possible to according to the cycle for pre-setting, execute the handling process of the embodiment of the present invention, to regarding
Frequency list is configured.
Step 102, if according to the mark of the Internet video for obtaining, determining in video library and not storing the Internet video,
In the list of videos of video library, then add the list item of the Internet video.
Video library can be used for storing Internet video (playback video), it is possible to arrange list of videos, in video
The Internet video of video library storage is recorded in list.The list item of each Internet video is set in list of videos, can be remembered in list item
The record mark of Internet video and the chained address (chained address can be the address that Internet video is stored in video library) of list item.
List of videos can be sent to terminal by server, show list of videos, the table of each Internet video in the application for terminal
The mark (as title) of the Internet video in is used for the display of the title of list item, the chained address in the list item of each Internet video
It is read out for the data to chained address after list item is clicked.
In force, server can with the mark of each Internet video in pre-recorded video library, in execution step 102,
Server can inquire about the mark of each Internet video of its pre-recorded video library storage according to the mark of the Internet video for obtaining
Whether the mark of Internet video that obtain is included in knowledge, if inquired, live mistake before the Internet video is described, depending on
Stored corresponding playback video in frequency storehouse, in list of videos, there is the list item of the Internet video, then need not be right
List of videos is modified, i.e., the process of the list item for not carrying out adding the Internet video in the list of videos of video library.
If server does not inquire acquisition in the mark of each Internet video of its pre-recorded video library storage
Internet video mark, then can add the list item of the Internet video in the list of videos of video library.
When preferably, belonging to certain video group for the Internet video, if not storing the video in video library
Other Internet videos in group, can not add the list item of the Internet video in list of videos.The process of corresponding step 102
Can be:
First, determine the video group belonging to the Internet video.
By constituting with a series of associated videos, for example, the video of each collection of certain TV play constitutes one and regards video group
Frequency group, or video one video group of composition of each phase in certain variety show season, etc..In the list of videos of video library, can
To be provided with the list item of video group, the list item of video group can launch, and belong to the video including stored in video library after expansion
The list item of each Internet video of group, this are the sublist item of video group.
Determine that the method for the video group belonging to Internet video has many kinds, include several method below.Method one, straight
Broadcasting record in video information table has the corresponding video group of each Internet video, and server can be obtained from live video information table
State the video group belonging to Internet video.Method two, the mark of Internet video include two parts, and a part is belonging to Internet video
Video group mark, another part is the issue of Internet video, so, according to the mark of Internet video, it may be determined that network
Video group belonging to video, for example, being designated of Internet video " TV play struggle the 5th collects ", the video group belonging to which is TV
Acute struggle video group.Method three, the corresponding relation of each Internet video that server can be included with which with pre-recorded video group, root
According to the corresponding relation, it may be determined that the video group belonging to above-mentioned Internet video.
Then, if the mark of the Internet video according to acquisition, determines in video library and does not store the Internet video, and regard
The list of videos in frequency storehouse includes the list item of the video group belonging to the Internet video, then adding in the list of videos of video library should
The list item of Internet video.
By such process, include the list item of the video group belonging to the Internet video in the list of videos of video library
When, namely be stored with video library in the video group belonging to the Internet video other Internet videos when, just in video library
Add the list item of the Internet video in list of videos.The processing procedure for adding the list item of the Internet video can be:In the video
In the list item of group, add the list item of the Internet video, as the sublist item of the video group.
In force, the process of the above-mentioned list item for adding the Internet video in the list of videos of video library, Ke Yiyou
Multiple processing modes, for example, it is possible to simple corresponding according to the mark of the Internet video and the direct broadcast band of the Internet video
Address generates the list item of the Internet video, and the mark of the Internet video could be arranged to the title of list item, and the direct broadcast band is corresponded to
Address could be arranged to the chained address of list item.Preferably, can be processed as follows:
First, the corresponding address of direct broadcast band of the Internet video and the live period of the Internet video are obtained.
The corresponding address of direct broadcast band is the address of the stream medium data server of direct broadcast band, that is, play the direct broadcast band
Live video when the address that connects.
Preferably, the direct broadcast band of Internet video and live period can be obtained from live video information table.In service
In device, can then be can determine with the corresponding address of pre-recorded each direct broadcast band, the direct broadcast band according to the Internet video for obtaining
The corresponding address of the direct broadcast band of the Internet video.
Then, add the list item of Internet video in the list of videos of video library, the chain of the list item of the Internet video is set
Ground connection location is the corresponding address of the direct broadcast band, and arranges the list item of the Internet video in the live period in clickthrough state
And the period outside the live period is in click state.
Wherein, for clickthrough state, list item refers to that list item can be clicked and be connected corresponding in the list of videos of terminal
Chained address receiving stream media data, for click state, list item refers to that list item cannot be by point in the list of videos of terminal
Hit.
The chained address for arranging the list item of the Internet video is the corresponding address of the direct broadcast band, that is, working as list of videos
After being sent to terminal, when user clicks on the list item of the Internet video in the list of videos, terminal then connects the direct broadcast band
Corresponding address receiving stream media data.
The list item of the Internet video is set in the live period in clickthrough state, that is, when list of videos is sent to
After terminal, in the time range of live period, in the list of videos, the list item of the Internet video can be clicked, Yong Hu
Click in the list of videos Internet video list item when, terminal then connects the corresponding address receiving stream media number of the direct broadcast band
According to.
Be set in click state, that is, when video is arranged period of the list item of the Internet video outside the live period
After table is sent to terminal, outside the time range of live period, in the list of videos, the list item of the Internet video cannot
Clicked.
In the embodiment of the present invention, in order to simplify the number of list item in list of videos, after step 102, can also be one
Under fixed trigger condition, the list item to adding in above-mentioned flow process is deleted, and shown below is two kinds of preferred processing modes:
Processing mode one, when above-mentioned Internet video is stored in video library, deletes above-mentioned list item.
After the live end of the Internet video sometime, the Internet video may be stored in video library, this
When the Internet video be changed into playback video via live video.According to normal process, video is stored in the Internet video
During storehouse, server can add the list item of the Internet video in the list of videos of video library, and the list item is made for the Internet video
For playing back the list item (chained address of the list item is storage address of the Internet video in video library) of video.
The list item of the Internet video that adds in above-mentioned steps 102 is list item (this of the Internet video as live video
The chained address of list item is the corresponding address of direct broadcast band of the Internet video).Add the net in the list of videos of video library
Network video as playback video list item when, can using the Internet video as live video list item delete.
In terminal, when showing to list of videos, in above-mentioned steps 102 add Internet video list item, such as
The list item can be hidden, not shown by the really Internet video live end.
Processing mode two, after the live end of above-mentioned Internet video, deletes above-mentioned list item.
Preferably, can the Internet video live at the end of, delete above-mentioned list item.Can be according to the straight of Internet video
Sowing time section, determines the time of live end.
In the embodiment of the present invention, the mark just in live or will be live Internet video is obtained, if according to the net
The mark of network video, determines in video library and does not store the Internet video, then add the network in the list of videos of video library
The list item of video, so, user can obtain the relevant information of live video in the list of videos of video library, and need not carry out should
With the switching at program or interface, it is thus possible to improve the efficiency for obtaining live video relevant information.
Embodiment three
The embodiment of the present invention additionally provides a kind of device for arranging list of videos, as shown in Fig. 2 described device includes:
Acquisition module 210, for obtaining the mark just in live or will be live Internet video;
Add module 220, if for the mark according to the Internet video, determines in video library and does not store the net
Network video, then add the list item of the Internet video in the list of videos of the video library.
Preferably, the acquisition module 210, is used for:
In live video information table, the mark just in live or will be live Internet video is obtained.
Preferably, the acquisition module 210, is used for:
According to the default cycle, the mark just in live or will be live Internet video is obtained.
Preferably, the add module 220, is used for:
Determine the video group belonging to the Internet video;
If according to the mark of the Internet video, determine in video library and the Internet video is not stored, and described regard
The list of videos in frequency storehouse includes the list item of the video group, then add the network video in the list of videos of the video library
The list item of frequency.
Preferably, the add module 220, is used for:
In the list item of the video group, add the list item of the Internet video, as the sublist item of the video group.
Preferably, the add module 220, is used for:
Obtain the corresponding address of direct broadcast band of the Internet video and the live period of the Internet video;
Add the list item of the Internet video in the list of videos of the video library, the list item of the Internet video is set
Chained address be the corresponding address of the direct broadcast band, and the list item of the Internet video be set be in the live period
The clickthrough state and period outside the live period is in click state.
Preferably, also include removing module, be used for:
When the Internet video is stored in the video library, the list item is deleted;Or,
After the live end of the Internet video, the list item is deleted.
In the embodiment of the present invention, the mark just in live or will be live Internet video is obtained, if according to the net
The mark of network video, determines in video library and does not store the Internet video, then add the network in the list of videos of video library
The list item of video, so, user can obtain the relevant information of live video in the list of videos of video library, and need not carry out should
With the switching at program or interface, it is thus possible to improve the efficiency for obtaining live video relevant information.
Example IV
The present embodiment additionally provides a kind of device for arranging list of videos, and the device of the setting list of videos includes:
One or more processors;
Memory;With
One or more module (programs), one or more modules are stored in the memory and are configured to
By one or more of computing devices, wherein, one or more of modules have following function:
Acquisition module, for obtaining the mark just in live or will be live Internet video;
Add module, if for the mark according to the Internet video, determines in video library and does not store the network
Video, then add the list item of the Internet video in the list of videos of the video library.
Preferably, the acquisition module, is used for:
In live video information table, the mark just in live or will be live Internet video is obtained.
Preferably, the acquisition module, is used for:
According to the default cycle, the mark just in live or will be live Internet video is obtained.
Preferably, the add module, is used for:
Determine the video group belonging to the Internet video;
If according to the mark of the Internet video, determine in video library and the Internet video is not stored, and described regard
The list of videos in frequency storehouse includes the list item of the video group, then add the network video in the list of videos of the video library
The list item of frequency.
Preferably, the add module, is used for:
In the list item of the video group, add the list item of the Internet video, as the sublist item of the video group.
Preferably, the add module, is used for:
Obtain the corresponding address of direct broadcast band of the Internet video and the live period of the Internet video;
Add the list item of the Internet video in the list of videos of the video library, the list item of the Internet video is set
Chained address be the corresponding address of the direct broadcast band, and the list item of the Internet video be set be in the live period
The clickthrough state and period outside the live period is in click state.
Preferably, also include removing module, be used for:
When the Internet video is stored in the video library, the list item is deleted;Or,
After the live end of the Internet video, the list item is deleted.
In the embodiment of the present invention, the mark just in live or will be live Internet video is obtained, if according to the net
The mark of network video, determines in video library and does not store the Internet video, then add the network in the list of videos of video library
The list item of video, so, user can obtain the relevant information of live video in the list of videos of video library, and need not carry out should
With the switching at program or interface, it is thus possible to improve the efficiency for obtaining live video relevant information.
It should be noted that:Above-described embodiment provide settings list of videos device setting list of videos when, only with
The division of above-mentioned each functional module is illustrated, and in practical application, can distribute above-mentioned functions by not as desired
With functional module complete, will the internal structure of device be divided into different functional modules, with complete described above all
Or partial function.In addition, the device of setting list of videos that above-described embodiment is provided is implemented with the method for setting list of videos
Example belongs to same design, and which implements process and refers to embodiment of the method, repeats no more here.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step for realizing above-described embodiment can pass through hardware
To complete, it is also possible to which the hardware for being instructed correlation by program is completed, and described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and
Within principle, any modification, equivalent substitution and improvement that is made etc., should be included within the scope of the present invention.