CN103761093A - Video aggregation method for clients - Google Patents

Video aggregation method for clients Download PDF

Info

Publication number
CN103761093A
CN103761093A CN201410025964.1A CN201410025964A CN103761093A CN 103761093 A CN103761093 A CN 103761093A CN 201410025964 A CN201410025964 A CN 201410025964A CN 103761093 A CN103761093 A CN 103761093A
Authority
CN
China
Prior art keywords
video
interface
interface function
information
main classification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410025964.1A
Other languages
Chinese (zh)
Other versions
CN103761093B (en
Inventor
涂睿
刘睿
黄幸
康同盟
刘乃新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Advanced Video Info-Tech Co Ltd
Original Assignee
Shenzhen Advanced Video Info-Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Advanced Video Info-Tech Co Ltd filed Critical Shenzhen Advanced Video Info-Tech Co Ltd
Priority to CN201410025964.1A priority Critical patent/CN103761093B/en
Priority claimed from CN201410025964.1A external-priority patent/CN103761093B/en
Publication of CN103761093A publication Critical patent/CN103761093A/en
Application granted granted Critical
Publication of CN103761093B publication Critical patent/CN103761093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a video aggregation method for clients. The method includes the steps: generating verification data and encoding the verification data into first encoding results according to set encoding rules; calling a library file under a set path , calling an authentication interface function of the library file, and allowing the authentication interface function to encode according to the verification data and returns second encoding results; if the first encoding results are the same with the second encoding results, determining that the library file belongs to a standard interface library file; calling a version information interface function, and allowing the version information interface function returns version information of the standard interface library file and a name of a corresponding video website, according to the information of a corresponding open video website information interface; selecting a latest-version standard interface library file of the corresponding video website, and displaying the name of the corresponding video website.

Description

A kind of method of client aggregate video
[technical field]
The present invention relates to a kind of method of client aggregate video.
[background technology]
Popularizing of network, everybody need not be gone out, and can use computer, by internet, watches freely or all kinds of colourful movie and video programs of program request.User mainly can watch Internet video online by two kinds of modes at present: one is directly to log in associated video website, with the form of webpage, watches; Another is watched by downloading and installing client software exactly.
Current domestic a lot of video website that has, on network, the video data volume is huge, and user will watch Internet video on the internet, often needs constantly to install a lot of players, therefore wishes can browse the video resource of each website on a client terminal.This just needs a video aggregation platform (video aggregated application program), completes above-mentioned functions.Video aggregation platform can be realized the polymerization of each large web video resource, and can smooth playing video.And can realize the functions such as each large web video " classification shows ", " point site search ", " video collection ", experience to the brand-new Internet video of user.The necessary basis that realizes video aggregation platform is that video website provides open application programming interface (Application Programming Interface, API).Open API is the common a kind of interface of video website, and it is open out that video website is packaged into a series of API by video content, for developer.The developer of video aggregation platform uses the video aggregation platform of these API exploitations oneself.
But, the video open interface of each video website issue varies, and version is often upgraded, even likely close, if use the Interface realization video aggregation platform of these original video websites, if application interface is changed in website, we must write a whole set of video aggregation platform software again, with the new application interface of adaptation, be not easy to the upgrading of video aggregation platform and safeguard.
At present, although the video polymerization client on market is a lot, but the larger video website of polymerization is less, user experiences and is bad, the very important point is if video aggregation platform nobody long-time maintenance, renewal, and c platform is easy to because the change of video website open interface, upgrade, close and lost efficacy.And search is as the most basic function of video aggregation platform, and these existing video aggregation platforms are also unrealized.And single videoconference client only can provide video information and content in the website based on self.
[summary of the invention]
For the deficiencies in the prior art, the invention provides a kind of method of client aggregate video, while making the interface variation when video website, do not need again to write the video polymerization software of client.
A method for client aggregate video, comprises the steps:
Library file authenticating step, generates verification msg, according to setting coding rule, described verification msg is encoded into the first coding result; Call the library file under set path, call the authentication interface function of described library file, described authentication interface function is encoded according to described verification msg and is returned to the second coding result, if the first coding result is identical with the second coding result, judges that described library file belongs to Standard Interface library file;
Wherein, a Standard Interface library file is corresponding with certain open video website information interface version of a video website, and described Standard Interface library file has encapsulated version information interface function;
Determine library file version step, call described version information interface function, described version information interface function returns to the version information of described Standard Interface library file and the title of corresponding video website according to the information of the open video website information interface of correspondence;
Step display, selects the Standard Interface library file of the latest edition of corresponding video website, and the title of described corresponding video website is shown.
In one embodiment,
Described Standard Interface library file has also encapsulated usable interface query interface function;
Further comprising the steps of after definite library file version step:
Usable interface query steps, calls usable interface query interface function, obtains interface function availability sign, and described usable interface query interface function returns to the sum of the interface function that described Standard Interface library file can use;
Judge whether available step of interface, according to described interface function availability sign, judge whether Main classification quantity interface function, Main classification title interface function, Main classification ID valid interface function, Main classification ID interface function, subclassification quantity interface function, subclassification title interface function and the subclassification ID interface function of described Standard Interface library file can be used.
In one embodiment,
Described, judge that interface is whether further comprising the steps of after available step:
Main classification quantity query steps, calls described Main classification quantity interface function, and described Main classification quantity interface function returns to Main classification quantity according to the information of the open video website information interface of correspondence;
Main classification name query step, calls described Main classification title interface function, and described Main classification title interface function returns to Main classification title according to the information of the open video website information interface of correspondence;
Whether effective query step of Main classification ID, calls described Main classification ID valid interface function, and described Main classification ID valid interface function returns to Main classification ID validity sign according to the information of the open video website information interface of correspondence;
Main classification ID query steps, calls described Main classification ID interface function, and described Main classification ID interface function returns to Main classification ID according to the information of the open video website information interface of correspondence;
Described step display also comprises, shows described Main classification title.
In one embodiment,
Described Standard Interface library file has also encapsulated subclassification quantity interface function, subclassification title interface function and subclassification ID interface function;
Further comprising the steps of after described Main classification quantity query steps, Main classification name query step and Main classification ID query steps:
Subclassification quantity query steps, calls described Main classification quantity interface function, and described Main classification quantity interface function returns to subclassification quantity according to the information of the open video website information interface of correspondence;
Subclassification name query step, calls described subclassification title interface function, and described subclassification title interface function returns to subclassification title according to the information of the open video website information interface of correspondence;
Subclassification ID query steps, calls described subclassification ID interface function, and described subclassification ID interface function returns to subclassification ID according to the information of the open video website information interface of correspondence;
Described step display also comprises, shows described subclassification title.
In one embodiment,
Described Standard Interface library file has also encapsulated the interface function of video content information under the interface function of video sum under search key and search key;
Described, judge that interface is whether further comprising the steps of after available step:
Video sum query steps under search key, call the interface function of video sum under described search key, under described search key, the interface function of video sum returns to video sum under search key according to the information of the open video website information interface of correspondence;
Video content information inquiry step under search key, call the interface function of video content information under described search key, under described search key, the interface function of video content information returns to video content information under search key according to the information of the open video website information interface of correspondence;
Described step display also comprises, shows under described search key video content information under video sum and search key.
In one embodiment,
Described Standard Interface library file has also encapsulated the interface function of the lower video sum of video seniority among brothers and sisters and the interface function of the lower video content information of video seniority among brothers and sisters;
Described, judge that interface is whether further comprising the steps of after available step:
Video is ranked lower video sum query steps, calls the interface function of the lower video sum of described video seniority among brothers and sisters, and the interface function that described video is ranked lower video sum returns to the lower video sum of video seniority among brothers and sisters according to the information of the open video website information interface of correspondence;
The lower video content information inquiry step of video seniority among brothers and sisters, call the interface function of the lower video content information of described video seniority among brothers and sisters, the interface function of the lower video content information of described video seniority among brothers and sisters returns to the lower video content information of video seniority among brothers and sisters according to the information of the open video website information interface of correspondence;
Described step display also comprises, shows the lower video sum of described video seniority among brothers and sisters and the lower video content information of video seniority among brothers and sisters.
The present invention has taken out the interface function of a set of video aggregated application program, this interface interface function can shield the open video information interface that different video website provides, make it to video aggregated application program layer, provide unified Standard Interface function, make the video polymerization procedure on upper strata depart from the specific implementation of open video information interface.
The Standard Interface library file of the present invention design, not only provides the categorised content of video content common in existing video aggregation platform to obtain interface function, also provides video contents search to obtain interface function and video seniority among brothers and sisters content obtaining interface function.Use the video aggregation platform function of this Standard Interface library file exploitation more comprehensive, user experiences better.
The Standard Interface library file of the present invention's design has unified Standard Interface function, video aggregation platform is adjusted accordingly without the interface according to different web sites on stream, only need to call unified interface video, simplified greatly the exploitation of video aggregation platform.
The video contents search of Standard Interface library file is obtained interface function, not only can realize easily a point website function of search, can also realize global search function.When video aggregation platform gets after search key, video aggregation platform calls the video contents search of the Standard Interface library file of all video website of polymerization simultaneously and obtains interface function, returned data is all represented to user, thereby user is experienced without searching one by one each website, only input search keyword information one time, can realize the own interested information of search in the website of all polymerizations, promote greatly user's experience.
[accompanying drawing explanation]
Fig. 1 be an embodiment of the present invention video aggregation platform realize block diagram;
Fig. 2 is the realization flow of the video aggregation platform of an embodiment of the present invention.
[embodiment]
The present embodiment computer run environment is WindowsXP.
The present embodiment has designed a set of video aggregated application routine interface, these interfaces can shield the open video information interface that different video website provides, make it to video aggregated application program layer, provide unified Standard Interface, make upper video polymerization procedure depart from the specific implementation of open video information interface.The open video information interface that can utilize each video website to provide, realize respectively the library file that each video website meets the present embodiment Standard Interface, in video aggregation platform, call again afterwards unified standard Interface realization various functions, reached the object of acquiring video information and video aggregation platform Development of Modular, simplify the realization of video aggregation platform, be convenient to later maintenance.
The library file of each Standard Interface has encapsulated version information interface function, authentication interface function, usable interface query interface function, Main classification quantity interface function, Main classification title interface function, Main classification ID valid interface function, Main classification ID interface function, subclassification quantity interface function, subclassification title interface function, subclassification ID interface function, video sum interface function under classification ID, content information interface function under classification ID, video sum function under search key, content information function under search key, video seniority among brothers and sisters video sum function and video seniority among brothers and sisters content information function.
The interface function of the library file encapsulation of Standard Interface is as follows:
1. module interactive interface function
A. version information interface function get_version
Video aggregation platform calls this version information interface function get_version, this version information interface function, according to the information of the open video website information interface corresponding with the library file of the Standard Interface of this version, obtains and returns version information ver_info, video website title web_name and the video website icon network address logo_addr of this Standard Interface library file.
Because consider that Standard Interface library file may often need to change along with the change of the open video information interface of video website, therefore need to distinguish the Standard Interface library file of different editions, therefore need to pass back the version information ver_info of Standard Interface library file.
B. authentication interface function verification
Owing to may there are other library files, prevent other library files of video aggregation platform error calls, in order to verify the validity of Standard Interface library file, Standard Interface library file provides verification authentication interface function.Verification process is as follows: video aggregation platform produces a verification msg in_data, and video aggregation platform obtains the first coding result according to certain coding rule to verification msg in_data coding; Video aggregation platform calls this authentication interface function verification, this authentication interface function verification encodes and obtains and return the second coding result encoded_data according to verification msg in_data, if the second coding result encoded_data is identical with the first coding result, prove that Standard Interface library file meets standard.
C. usable interface query interface function get_capability
Video aggregation platform calls this usable interface query interface function get_capability, whether can obtain concrete each interface function in the sum of the interface function that described Standard Interface library file can use and Standard Interface library file and can use, wherein the rreturn value of usable interface query interface function represents the sum of the interface function that Standard Interface library file can use.
Whether interface function availability sign capability characterizes interface function corresponding in Standard Interface library file and can use, and totally 32,4 bytes, each byte characterizes the availability of a certain class physical interface function, specific as follows:
As shown above, lowest byte represents whether classified information interface function can be used, whether the second byte representing video content interface function can be used, and the 3rd byte represents whether video search content interface function can be used, and highest byte represents whether video seniority among brothers and sisters content interface function can be used.
Classified information interface availability accounts for 1 byte, and wherein 7 bits represent respectively whether 7 physical interface functions can be used, and all the other bits are reserved place:
The mask macro definition of each interface function availability is as follows:
Main classification quantity interface function availability mask MAIN_CLS_CNT is 0x00000001,
Main classification title interface function availability mask MAIN_CLS_NAME is 0x00000002,
Main classification ID valid interface function availability mask MAIN_CLS_ID_AVAIL is 0x00000004,
Main classification ID interface function availability mask MAIN_CLS_ID is 0x00000008,
Subclassification quantity interface function availability mask SUB_CLS_CNT is 0x00000010,
The title interface function availability mask SUB_CLS_NAME of subclassification is 0x00000020,
Subclassification ID interface function availability mask SUB_CLS_ID is 0x00000040.
Video content interface availability accounts for 1 byte, and wherein two bits represent whether physical interface can be used, and all the other positions are reserved place:
Figure BDA0000459327350000081
Mask macro definition is as follows:
Under classification ID, video sum interface function availability mask CLS_VIDEO_CNT is 0x00000100,
Under classification ID, content information interface function availability mask CLS_VIDEO_CONTENT is 0x00000200.
Video search content interface availability accounts for 1 byte, and wherein two represent respectively whether two interfaces can be used, and all the other are reserved place:
Figure BDA0000459327350000082
Mask macro definition is as follows:
Under search key, video sum interface function availability mask SRCH_VIDEO_CNT is 0x00010000,
Under search key, content information interface function availability mask SRCH_VIDEO_CONTENT is 0x00020000.
Video seniority among brothers and sisters content interface availability accounts for 1 byte, and wherein two represent respectively whether two interfaces can be used, and all the other are reserved place:
7 6 5 4 3 2 1 0
Reserved Reserved Reserved Reserved Reserved Reserved The lower content of video seniority among brothers and sisters The lower video of video seniority among brothers and sisters
? ? ? ? ? ? Information interface function Sum interface function
Mask macro definition is as follows:
The lower video sum of video seniority among brothers and sisters interface function availability mask RANK_VIDEO_CNT is 0x01000000,
The lower content information interface function availability mask RANK_VIDEO_CONTENT of video seniority among brothers and sisters is 0x02000000.
If interface function availability sign capability and the mask of any one interface function availability are carried out the result that AND-operation obtains, be very, represent that this corresponding interface function can use.
2. classified information interface
A. Main classification quantity interface function get_main_class_cnt
After this Main classification quantity interface function get_main_class_cnt is called by video aggregation platform, according to the information of the open video website information interface of correspondence, can return to video aggregation platform the Main classification sum of video website.
B. Main classification title interface function get_main_class_name
After this Main classification title interface function get_main_class_name is called by video aggregation platform, according to the information of the open video website information interface of correspondence and obtain the index value main_idx of the Main classification of input, can return to the title main_class_name that obtains Main classification.
C. Main classification ID valid interface function is_main_class_id_avail
General in the open video information interface of website, in order to distinguish the difference classification of different video, can be corresponding one by one with this classification for unique No. ID of one of each classification setting.
Consider under the Main classification of some video website and also have subclassification, the ID of this Main classification may not exist.After this Main classification ID valid interface function is called by video aggregation platform, according to the information of the open video website information interface of correspondence and obtain the index value main_idx of the Main classification of input, can return to the validity sign that obtains Main classification ID, the value of this validity sign exists for very representing Main classification ID, if the value of validity sign is that vacation represents that Main classification ID does not exist.
D. Main classification ID interface function get_main_class_id
After this classification ID interface function get_main_class_id is called by video aggregation platform, according to the information of the open video website information interface of correspondence and obtain the index value main_idx of the Main classification of input, can return to the ID that obtains Main classification, Main classification ID can for just, can for negative may be also zero, according to the definition of different web sites, determine.
E. subclassification quantity interface function get_sub_class_cnt
After subclassification quantity interface function get_sub_class_cnt is called by video aggregation platform, according to the information of the open video website information interface of correspondence and obtain after the index value main_idx of any Main classification of input, can return to the subclassification quantity under this classification to video aggregation platform.
F. subclassification title interface function get_sub_class_name
After subclassification title interface function get_sub_class_name is called by video aggregation platform, according to the information of the open video website information interface of correspondence and obtain the index value main_idx of Main classification of input and this classification under the index value sub_idx of a certain subclassification, can be to the title sub_class_name of this subclassification of video aggregation platform.
G. subclassification ID interface function get_sub_class_id
The same with Main classification, subclassification ID is also the classification of difference in order to distinguish different video, under same Main classification, for each subclassification set one unique No. ID corresponding one by one with this subclassification.
After subclassification ID interface function get_sub_class_id is called by video aggregation platform, according to the information of the open video website information interface of correspondence and obtain after the index value sub_idx of a certain subclassification under the input index value main_idx of Main classification and this classification, can return to video aggregation platform the ID of this subclassification.The ID of subclassification can for just, can for negative may be also zero, according to the definition of different web sites, determine.
3. video content interface function
A. video sum interface function get_video_cnt_by_id under ID classifies
After under this classification ID, video sum interface function get_video_cnt_by_id is called by video aggregation platform, according to the information of the open video website information interface of correspondence and obtain the visual classification IDclass_id of input, function get_video_cnt_by_id can return to video sum under this classification to video aggregation platform.Wherein, visual classification IDclass_id, can be Main classification ID, or subclassification ID.
B. content information interface function get_video_content_by_id under ID classifies
In order to obtain video presentation information, first define the class DESC of video presentation information:
Figure BDA0000459327350000111
The class DESC of this video presentation information has comprised following variable: the particular content desc_content of the quantity desc_cnt of video presentation information, the title desc_name of video presentation information and video presentation information.Because a video may have multinomial descriptor, therefore need to pass back multiple descriptors herein, title and content are all to pass back with pointer form.The title of descriptor and content are one to one in order.
In order to obtain unified interface, we have defined a unified interface VideoContent that video information is described.
In the unified interface VideoContent class that video information is described, comprise following parameter: the actual storage network address imge_url of title title, video placard or the sectional drawing of video, the webpage broadcast address video_url of video.
Content information interface function get_video_content_by_id under classification ID:
Figure BDA0000459327350000122
After under classification ID, content information interface function get_video_content_by_id is called by video aggregation platform, according to the information of the open video website information interface of correspondence (comprising the video website information that the unified interface VideoContent by calling video information description obtains), and obtain the classification IDclass_id of input, after every page of number of videos pagesize and video page number pageno, can return to video aggregation platform the video content video_content of specific page, owing to passing number of videos back at every turn, by pagesize, determined, video_content is used pointer form, pass each video content in page back.
4. video search interface
In order to obtain information under search key, first enumerate several data types.
Video duration filters TTLEVEL:
Figure BDA0000459327350000131
Video duration filters in TTLEVEL, and short is short length video, and medium is middle length video, and long is long video, and all is for all returning.
Sound, video type are filtered MEDIA:
Sound, video type are filtered in MEDIA, and video is for only returning to video frequency program, and audio is for only returning to audio program, and all is for all returning.
Sort method SORT:
Figure BDA0000459327350000133
Figure BDA0000459327350000141
The sequence of sort method SORT(acquiescence matching degree) in, match is matching degree sequence, and time is issuing time sequence, and freq is broadcasting time sequence, and duration is the sequence of program duration.
A. video sum interface function get_video_cnt_by_srch under search key
After video sum interface function get_video_cnt_by_srch is called by video aggregation platform under search key, according to the information of the open video website information interface of correspondence and obtain after the information such as search key of input, can return to video sum under this search key to video aggregation platform.
Wherein, key_words represents searched key word, and can be English, Chinese can be also numeral; Srch_all_class represents whether search for all classification, for very searching for all classification, is that vacation represents not to be to search plain all classification.Class_id represents visual classification ID, can be Main classification ID, or subclassification ID, if srch_all_class is true, this is invalid; Days is search video time scope, and unit is sky, represents search all videos if negative; Ttlevel represents that duration filters; Media represents audio frequency and video selection.Rreturn value is video sum under this search key.
B. content information interface function get_video_content_by_srch under search key
Figure BDA0000459327350000151
After under search key, content information interface function get_video_content_by_srch is called, according to the information of the open video website information interface of correspondence, obtain the searched key word of input etc., can return to video aggregation platform the video content of specific page.
Wherein, key_words represents searched key word, and can be English, Chinese can be also numeral; Pagesize represents every page of number of videos; Pageno represents the video page number of specifying; Srch_all_class represents whether search for all classification, for very searching for all classification, otherwise is false.Class_id represents visual classification ID, can be Main classification ID, or subclassification ID, if srch_all_class is true, this is invalid; Days search video time scope, unit is sky, represents search all videos if negative; Ttlevel represents that duration filters; Media represents audio frequency and video selection; Sort represents sortord.Video_content is the video content of specific page, owing to passing number of videos back at every turn, by pagesize, is determined, video_content is used pointer form, passes each video content in page back.
5. video seniority among brothers and sisters interface
A. the lower video sum of video seniority among brothers and sisters interface function get_video_cnt_by_rank
unsignedintget_video_cnt_by_rank(intclass_id,
intdays,
SORTsort)
After the interface function get_video_cnt_by_rank of video seniority among brothers and sisters video sum is called by video aggregation platform, according to the information of the open video website information interface of correspondence and obtain input classification ID, specify search video time scope, sortord, can return to video sum under this seniority among brothers and sisters to video aggregation platform.
Wherein, class_id represents visual classification ID, can be Main classification ID, or subclassification ID; Days represents video time scope, and unit is sky, represents search all videos if negative; Sort represents sortord.Rreturn value is video sum under this seniority among brothers and sisters.
B. the lower content information interface function get_video_content_by_rank of video seniority among brothers and sisters
Figure BDA0000459327350000161
After the lower content information interface function get_video_content_by_rank of video seniority among brothers and sisters is called by video aggregation platform, according to the information of the open video website information interface of correspondence and the input classification ID obtaining, specify search video time scope, sortord etc., can return to video aggregation platform the video content of specific page.
Wherein, class_id represents visual classification ID, can be Main classification ID, or subclassification ID; Days represents video time scope, and unit is sky, represents search all videos if negative; Sort represents sortord.Pagesize represents every page of number of videos; Pageno represents the video page number of specifying; Video_content is the video content of specific page, owing to passing number of videos back at every turn, by pagesize, is determined, video_content is used pointer form, passes each video content in page back.
The idiographic flow that video aggregation platform is realized is as follows:
Step 1: the library file of authentication specifications interface obtains version information
One group of verification msg in_data of generation that video aggregation platform is random, video aggregation platform obtains the first coding result according to certain coding rule to verification msg in_data coding; Video aggregation platform calls this authentication interface function verification, this authentication interface function verification encodes and obtains and return the second coding result encoded_data according to verification msg in_data, if the second coding result encoded_data is identical with the first coding result, prove that Standard Interface library file meets standard.
Video aggregation platform is by calling version information interface function get_version, obtain the version information ver_info of Standard Interface library file, select the Standard Interface library file of latest edition, and obtain video website title web_name and the video website icon network address logo_addr of video website.Video aggregation platform obtains picture by the video website icon network address logo_addr returning, and shows in conjunction with video website title web_name.
Step 2: inquiry obtains the information of usable interface
Video aggregation platform is by calling usable interface query interface function get_capability, obtain this video website usable interface sum capability_cnt and all interface function availability sign capability, storage capability_cnt, is used in order to video aggregation platform.
The interface function availability sign capability mask macro definition corresponding with each interface carried out to AND-operation, and the result obtaining is that very corresponding interface can be used.Video aggregation platform needs to judge whether each interface can be used calling before each interface.
Step 3: obtain video classification information
First need to judge whether video classification information interface can be used.If interface function availability sign capability and sexadecimal number 0x000000377F carry out and operation, the result of acquisition is true, and all classification information interface can be used.Expect whether certain concrete interface can be used, with interface function availability sign capability, in corresponding mask macro definition, carry out and operation, the result of acquisition can be used for corresponding interface very, otherwise unavailable.
If in the situation that all classification information interface can be used, video aggregation platform obtains the Main classification sum main_class_cnt of video website by calling Main classification quantity interface function get_main_class_cnt.Then according to the Main classification sum of video website, by Main classification title interface function get_main_class_name traversal, obtain the title of each Main classification.Main classification title main_class_name is all presented on video aggregation platform.
Video aggregation platform is by calling subclassification quantity interface function get_sub_class_cnt, can input the index value main_idx of Main classification, obtain the subclassification sum sub_class_cnt of the video website under this Main classification, if subclassification sum sub_class_cnt is that zero expression does not have subclassification, otherwise represents to exist subclassification.Determine and exist after subclassification, video aggregation platform calls subclassification title interface function get_sub_class_name, obtains the title sub_class_name of each subclassification according to subclassification number traversal.All subclassification title sub_class_name are all presented in corresponding Main classification hurdle.
Step 4: obtain video content
Video content obtain manner is divided into three kinds, is respectively classification and obtains, searches for and obtain and rank and obtain.The classified information acquisition corresponding video content referring to according to video website is obtained in classification.Search is obtained information such as referring to search key that user provides and is obtained corresponding video content.Seniority among brothers and sisters is obtained and is referred to that the sortord providing according to the classified information of video website and user obtains corresponding video content.
No matter be any video content obtain manner, all need visual classification ID, can be Main classification ID, can be also subclassification ID.ID for Main classification obtains, first need to call Main classification ID valid interface function is_main_class_id_avail, whether effective to judge Main classification ID, if the value of validity sign is for very effective, otherwise cannot obtain Main classification ID, obtain its subclassification ID.Use Main classification ID interface get_main_class_id to obtain corresponding Main classification ID.ID for subclassification obtains, and need to call subclassification ID interface get_sub_class_id and obtain arbitrary subclassification ID under a certain Main classification.
1, classification acquiring video information
Judge whether video content interface can be used.If interface function availability sign capability and sexadecimal number 0x00000300 carry out and operation, if the result obtaining is true, all classification information interface can be used.Video aggregation platform can be realized classification and obtain function.
As described above, can obtain Main classification ID, or subclassification ID, video aggregation platform obtains the video sum under classification ID and is shown by calling get_video_cnt_by_id.
First the number of videos pagesize and the visual classification IDclass_id to display that determine every page of demonstration of video aggregation platform, can be effective Main classification ID, or subclassification ID.Video sum interface get_video_cnt_by_id under calling classification ID obtains video sum.The video sum that video aggregation platform is obtained, divided by the number of videos pagesize of every page, rounds and adds 1, is total page number page_cnt.
For store video content information, need the VideoContent object array of a pagesize size of instantiation.Video aggregation platform, by content information interface get_video_content_by_id under calling classification ID, is inputted number of videos pagesize, the page number pageno of classification ID, every page of demonstration, obtains the video content video_content of specific page.
According to pagesize, resolve VideoContent array, traversal array object, the title title of video in acquisition array, the actual storage network address imge_url of video placard or sectional drawing, the webpage broadcast address video_url of video, and DESC video presentation info class.Desc_cnt in the DESC class obtaining represents the quantity of video presentation information, according to quantity desc_cnt traversal desc_name array and the desc_content array of video presentation information, obtains title and the content of video presentation information.The title of descriptor and content are one to one in order.
2, search acquiring video information
Judge whether video search interface can be used.If interface function availability sign capability and sexadecimal number 0x00030000 carry out and operation, if obtain result, be true, all videos search interface can be used.Video aggregation platform can be realized search and obtain function.
Obtaining before search video sum and search video content information, should first determine the value of some parameters.
First determine the searched key word key_words of video aggregation platform, can be English, Chinese can be also numeral; Determine the classification range of search, if do not classify, all to put srch_all_class be true in search, otherwise to put srch_all_class be false to the information of searching for certain classification if want, determines visual classification IDclass_id; Determine search video time scope days, unit is sky, if search all videos is put days, is negative; Determine that duration filters ttlevel; Determine audio frequency and video selection media; Determine sortord sort.Design parameter arranges explanation and refers to video search interface in video interface definition.
Determine after design parameter, video aggregation platform obtains the video sum under searched key word and is shown by calling video sum interface get_video_cnt_by_srch under search key.
For store video content information, need the VideoContent object array of a pagesize size of instantiation.Video aggregation platform is by calling content information interface get_video_content_by_srch under search key, inputs the information such as number of videos pagesize, page number pageno of searched key word, every page of demonstration, obtains the video content of specific page.
According to pagesize, resolve VideoContent array, traversal array object, the title title of video in acquisition array, the actual storage network address imge_url of video placard or sectional drawing, the webpage broadcast address video_url of video, and DESC video presentation info class.Desc_cnt in the DESC class obtaining represents the quantity of video presentation information, according to quantity desc_cnt traversal desc_name array and the desc_content array of video presentation information, obtains title and the content of video presentation information.The title of descriptor and content are one to one in order.
3, seniority among brothers and sisters acquiring video information
Judge whether video seniority among brothers and sisters interface can be used.If interface function availability sign capability and sexadecimal number 0x03000000 carry out and operation, if the result obtaining is true, all videos seniority among brothers and sisters interface can be used.Video aggregation platform can be realized seniority among brothers and sisters and obtain function.
Obtaining before seniority among brothers and sisters video sum and seniority among brothers and sisters video content information, should first determine the value of some parameters.
First determine the scope of seniority among brothers and sisters, determine video seniority among brothers and sisters IDclass_id; Determine seniority among brothers and sisters video time scope days, unit is sky, if seniority among brothers and sisters all videos is put days, is negative; Determine sortord sort.Design parameter arranges explanation and refers to video seniority among brothers and sisters interface in video interface definition.
Determine after design parameter, video aggregation platform, by calling video seniority among brothers and sisters video sum interface get_video_cnt_by_rank, obtains this classification and formulates the lower video sum of seniority among brothers and sisters and shown.
For store video content information, need the VideoContent object array of a pagesize size of instantiation.By calling video seniority among brothers and sisters content information interface get_video_content_by_rank, the information such as number of videos pagesize, the page number pageno of input classification ID, sortord sort, every page of demonstration, the video content of acquisition specific page.
According to number of videos pagesize, resolve VideoContent array, traversal array object, the title title of video in acquisition array, the actual storage network address imge_url of video placard or sectional drawing, the webpage broadcast address video_url of video, and DESC video presentation info class.Desc_cnt in the DESC class obtaining represents the quantity of video presentation information, according to quantity desc_cnt traversal desc_name array and the desc_content array of video presentation information, obtains title and the content of video presentation information.The title of descriptor and content are one to one in order.
Step 5: video information gather demonstration
The video sum that video aggregation platform is obtained, divided by the number of videos pagesize of every page, rounds and adds 1, is total page number, is presented on platform.
By step 4, obtain after a specified quantity pagesize video content of specified page number pageno, utilize the actual storage network address imge_url of each video placard or sectional drawing to obtain placard or the sectional drawing of this video.In every one page on video aggregation platform, by the placard of pagesize video or sectional drawing, be equipped with more representational several video presentation names of the information (as " director ") and content (as " Zhang Yimou ") in video title and DESC class and show.When user's page turning, revise pageno value, all the other parameter constants, without again obtaining total page number, only need under calling classification ID content information interface get_video_content_by_srch under content information interface get_video_content_by_id(or search key, or video seniority among brothers and sisters content information interface get_video_content_by_rank), after acquisition content information, show.After the placard of click video or sectional drawing, video title, video aggregation platform can obtain by the webpage broadcast address video_url of video the actual address of video.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to the present invention by the definite scope of patent protection of submitted to claims.

Claims (6)

1. a method for client aggregate video, is characterized in that, comprises the steps:
Library file authenticating step, generates verification msg, according to setting coding rule, described verification msg is encoded into the first coding result; Call the library file under set path, call the authentication interface function of described library file, described authentication interface function is encoded according to described verification msg and is returned to the second coding result, if the first coding result is identical with the second coding result, judges that described library file belongs to Standard Interface library file;
Wherein, a Standard Interface library file is corresponding with certain open video website information interface version of a video website, and described Standard Interface library file has encapsulated version information interface function;
Determine library file version step, call described version information interface function, described version information interface function returns to the version information of described Standard Interface library file and the title of corresponding video website according to the information of the open video website information interface of correspondence;
Step display, selects the Standard Interface library file of the latest edition of corresponding video website, and the title of described corresponding video website is shown.
2. the method for client aggregate video as claimed in claim 1, is characterized in that:
Described Standard Interface library file has also encapsulated usable interface query interface function;
Further comprising the steps of after definite library file version step:
Usable interface query steps, calls usable interface query interface function, obtains interface function availability sign, and described usable interface query interface function returns to the sum of the interface function that described Standard Interface library file can use;
Judge whether available step of interface, according to described interface function availability sign, judge whether Main classification quantity interface function, Main classification title interface function, Main classification ID valid interface function, Main classification ID interface function, subclassification quantity interface function, subclassification title interface function and the subclassification ID interface function of described Standard Interface library file can be used.
3. the method for client aggregate video as claimed in claim 2, is characterized in that:
Described, judge that interface is whether further comprising the steps of after available step:
Main classification quantity query steps, calls described Main classification quantity interface function, and described Main classification quantity interface function returns to Main classification quantity according to the information of the open video website information interface of correspondence;
Main classification name query step, calls described Main classification title interface function, and described Main classification title interface function returns to Main classification title according to the information of the open video website information interface of correspondence;
Whether effective query step of Main classification ID, calls described Main classification ID valid interface function, and described Main classification ID valid interface function returns to Main classification ID validity sign according to the information of the open video website information interface of correspondence;
Main classification ID query steps, calls described Main classification ID interface function, and described Main classification ID interface function returns to Main classification ID according to the information of the open video website information interface of correspondence;
Described step display also comprises, shows described Main classification title.
4. the method for client aggregate video as claimed in claim 3, is characterized in that:
Described Standard Interface library file has also encapsulated subclassification quantity interface function, subclassification title interface function and subclassification ID interface function;
Further comprising the steps of after described Main classification quantity query steps, Main classification name query step and Main classification ID query steps:
Subclassification quantity query steps, calls described Main classification quantity interface function, and described Main classification quantity interface function returns to subclassification quantity according to the information of the open video website information interface of correspondence;
Subclassification name query step, calls described subclassification title interface function, and described subclassification title interface function returns to subclassification title according to the information of the open video website information interface of correspondence;
Subclassification ID query steps, calls described subclassification ID interface function, and described subclassification ID interface function returns to subclassification ID according to the information of the open video website information interface of correspondence;
Described step display also comprises, shows described subclassification title.
5. the method for client aggregate video as claimed in claim 2, is characterized in that:
Described Standard Interface library file has also encapsulated the interface function of video content information under the interface function of video sum under search key and search key;
Described, judge that interface is whether further comprising the steps of after available step:
Video sum query steps under search key, call the interface function of video sum under described search key, under described search key, the interface function of video sum returns to video sum under search key according to the information of the open video website information interface of correspondence;
Video content information inquiry step under search key, call the interface function of video content information under described search key, under described search key, the interface function of video content information returns to video content information under search key according to the information of the open video website information interface of correspondence;
Described step display also comprises, shows under described search key video content information under video sum and search key.
6. the method for client aggregate video as claimed in claim 2, is characterized in that:
Described Standard Interface library file has also encapsulated the interface function of the lower video sum of video seniority among brothers and sisters and the interface function of the lower video content information of video seniority among brothers and sisters;
Described, judge that interface is whether further comprising the steps of after available step:
Video is ranked lower video sum query steps, calls the interface function of the lower video sum of described video seniority among brothers and sisters, and the interface function that described video is ranked lower video sum returns to the lower video sum of video seniority among brothers and sisters according to the information of the open video website information interface of correspondence;
The lower video content information inquiry step of video seniority among brothers and sisters, call the interface function of the lower video content information of described video seniority among brothers and sisters, the interface function of the lower video content information of described video seniority among brothers and sisters returns to the lower video content information of video seniority among brothers and sisters according to the information of the open video website information interface of correspondence;
Described step display also comprises, shows the lower video sum of described video seniority among brothers and sisters and the lower video content information of video seniority among brothers and sisters.
CN201410025964.1A 2014-01-20 Method for client side to aggregate videos Active CN103761093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410025964.1A CN103761093B (en) 2014-01-20 Method for client side to aggregate videos

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410025964.1A CN103761093B (en) 2014-01-20 Method for client side to aggregate videos

Publications (2)

Publication Number Publication Date
CN103761093A true CN103761093A (en) 2014-04-30
CN103761093B CN103761093B (en) 2016-11-30

Family

ID=

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811772A (en) * 2015-03-17 2015-07-29 四川长虹电器股份有限公司 Third-party video content integration push method
CN105740014A (en) * 2016-01-27 2016-07-06 四川长虹电器股份有限公司 Method for integrating YouTube functions in mobile terminal application
CN106470349A (en) * 2015-08-21 2017-03-01 中国科学院声学研究所 The extraction of HTML5 video and manipulation optimization method in a kind of intelligent television
CN106776845A (en) * 2016-11-28 2017-05-31 努比亚技术有限公司 A kind of information flow adaptive management method and terminal
CN106792079A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 Video access device and method
CN106792018A (en) * 2016-12-12 2017-05-31 四川长虹电器股份有限公司 The low-end set top boxes system of integrated YouTube applications and the method for playing YouTube web videos
CN107205168A (en) * 2017-06-30 2017-09-26 环球智达科技(北京)有限公司 The polymerization of programme information
CN108111885A (en) * 2017-12-25 2018-06-01 北京奇艺世纪科技有限公司 A kind of cooperation data determination method, device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944170A (en) * 2010-09-20 2011-01-12 中兴通讯股份有限公司 Method, system and device for issuing software version
CN102143183A (en) * 2011-03-24 2011-08-03 镇江星浪科技产品有限公司 Document versioning method
CN102890627A (en) * 2011-07-19 2013-01-23 昆明伯尔瑞科技开发有限公司 Plug-in computer program design architecture
CN103297818A (en) * 2013-06-05 2013-09-11 常熟市广播电视总台 Multi-content aggregation video-on-demand system
US20130291006A1 (en) * 2011-04-27 2013-10-31 Morega Systems Inc. Streaming video server with virtual file system and methods for use therewith

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944170A (en) * 2010-09-20 2011-01-12 中兴通讯股份有限公司 Method, system and device for issuing software version
CN102143183A (en) * 2011-03-24 2011-08-03 镇江星浪科技产品有限公司 Document versioning method
US20130291006A1 (en) * 2011-04-27 2013-10-31 Morega Systems Inc. Streaming video server with virtual file system and methods for use therewith
CN102890627A (en) * 2011-07-19 2013-01-23 昆明伯尔瑞科技开发有限公司 Plug-in computer program design architecture
CN103297818A (en) * 2013-06-05 2013-09-11 常熟市广播电视总台 Multi-content aggregation video-on-demand system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
FARSA: "《http://blog.163.com/nothing_cj/blog/static/8256019620108136154737/ 》", 13 September 2010 *
HYUJ: "《http://blog.csdn.net/u011591662/article/details/9749671》", 4 August 2013 *
猛料滚滚: "《http://wenku.baidu.com/link?url=yWTqX_0dntJDNEOMR33y-24D1oPvPhcQm0skSaLHouIQC4Ueq》", 22 September 2013 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811772A (en) * 2015-03-17 2015-07-29 四川长虹电器股份有限公司 Third-party video content integration push method
CN106470349A (en) * 2015-08-21 2017-03-01 中国科学院声学研究所 The extraction of HTML5 video and manipulation optimization method in a kind of intelligent television
CN105740014A (en) * 2016-01-27 2016-07-06 四川长虹电器股份有限公司 Method for integrating YouTube functions in mobile terminal application
CN106776845A (en) * 2016-11-28 2017-05-31 努比亚技术有限公司 A kind of information flow adaptive management method and terminal
CN106776845B (en) * 2016-11-28 2021-05-21 努比亚技术有限公司 Information flow self-adaptive management method and terminal
CN106792079A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 Video access device and method
CN106792018A (en) * 2016-12-12 2017-05-31 四川长虹电器股份有限公司 The low-end set top boxes system of integrated YouTube applications and the method for playing YouTube web videos
CN107205168A (en) * 2017-06-30 2017-09-26 环球智达科技(北京)有限公司 The polymerization of programme information
CN108111885A (en) * 2017-12-25 2018-06-01 北京奇艺世纪科技有限公司 A kind of cooperation data determination method, device and electronic equipment

Similar Documents

Publication Publication Date Title
US10885093B2 (en) Global recommendation systems for overlapping media catalogs
CN109564571B (en) Query recommendation method and system utilizing search context
US11281620B2 (en) Method of and system for enhanced local-device content discovery
CN106415537B (en) Locally applied search result is inserted into WEB search result
US20160179816A1 (en) Near Real Time Auto-Suggest Search Results
RU2731335C2 (en) Method and system for generating recommendations of digital content
US10157232B2 (en) Personalizing deep search results using subscription data
US10448070B2 (en) Media device knowledge base
US10031738B2 (en) Providing application recommendations
US11734289B2 (en) Methods, systems, and media for providing a media search engine
CN102346778B (en) Method and equipment for providing searching result
US9608870B1 (en) Deep link verification for native applications
CN102150158A (en) Method, system, and apparatus for arranging content search results
JP2015513736A (en) Automatic content recommendation
CN111552884B (en) Method and apparatus for content recommendation
CN102761623A (en) Resource self-adaptive downloading method, system, data storage server and communication system
WO2017080167A1 (en) Video pushing method and system for third party
US20170193059A1 (en) Searching For Applications Based On Application Usage
US20150237056A1 (en) Media dissemination system
CN112868003A (en) Entity-based search system using user interactivity
CN104102733A (en) Search content providing method and search engine
KR102605598B1 (en) Content provider recommendations to improve targetting and other settings
CN104572707A (en) Preferable object information providing method and device
US10445326B2 (en) Searching based on application usage
US9946766B2 (en) Search result relevance based on content associated with software applications

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant