Summary of the invention
The invention provides a kind of file adaptation method, system and corresponding file management system, for the user provides file automatic adaption function, receiving terminal for digital television model according to the user, the selection adequate resources issues, save user time, give the better experience of user, and conserve system resources, unnecessary download stoped.
For reaching above-mentioned technique effect, file adaptation method provided by the invention comprises:
File management system receives the file download request, comprises in the described file download request: the type information of the receiving terminal for digital television of request file in download, the code of this receiving terminal for digital television request downloaded files;
File management system is inquired about the file type that this type figure television receive terminal support is play according to the type information of described receiving terminal for digital television; According to the code of described file, inquire about the file type of described file;
File management system judges according to the result of described inquiry whether described receiving terminal for digital television supports the broadcast of described file;
If be judged as is then to issue the download path of described file to described receiving terminal for digital television;
If be judged as not, then search alternative file, and issue the download path of described alternative file to described receiving terminal for digital television.
Corresponding, file adaption system provided by the invention comprises:
Headend equipment is used for providing electric program menu to receiving terminal for digital television, receives the file download request that described receiving terminal for digital television sends, and transmits described file download request to file management system;
Database is used for storage for the receiving terminal for digital television downloaded files;
File management system, the information that is used for storing various receiving terminal for digital television information and database All Files, and after receiving the file download request that headend equipment is transmitted, judge whether receiving terminal for digital television supports to play its request downloaded files; If support the download path of then issuing the documents; If do not support, then search alternative file, and issue the download path of alternative file to receiving terminal for digital television;
Receiving terminal for digital television is used to receive electric program menu, operates sending the file download request according to the user, and according to the download path that file management system issues, downloads corresponding file from database.
Simultaneously, the present invention also provides a kind of file management system, and this system comprises:
Interactive module is used to receive the file download request, comprises in the described file download request: the type information of the receiving terminal for digital television of request file in download, the code of this receiving terminal for digital television request downloaded files;
Enquiry module according to the type information of described receiving terminal for digital television, is inquired about the file type that this type figure television receive terminal support is play; According to the code of described file, inquire about the file type of described file; And notify judge module with Query Result;
Judge module is used for the Query Result according to described enquiry module feedback, judges whether described receiving terminal for digital television supports the broadcast of described file, and with the judged result notification handler module;
Processing module is used for issuing the download path of described file to receiving terminal for digital television when judge module judges that receiving terminal for digital television is supported the broadcast of described file; When judge module judges that receiving terminal for digital television is not supported the broadcast of described file, search alternative file, and issue the download path of described alternative file to described receiving terminal for digital television.
Implement file adaptation method provided by the invention, system and corresponding file management system, can provide file automatic adaption function for the user, receiving terminal for digital television model according to the user, the selection adequate resources issues, save user time, give the better experience of user, and conserve system resources, unnecessary download stoped.
Embodiment
The invention provides a kind of file adaptation method, system and corresponding file management system, for the user provides file automatic adaption function, receiving terminal for digital television model according to the user, the selection adequate resources issues, save user time, give the better experience of user, and conserve system resources, unnecessary download stoped.
Referring to Fig. 1, be the file adaptation method first embodiment schematic flow sheet provided by the invention.As shown in Figure 1:
In step 100, file management system receives the file download request, comprises in the described file download request: the type information of the receiving terminal for digital television of request file in download, the code of this receiving terminal for digital television request downloaded files.
In step 101, file management system is inquired about the file type that this type figure television receive terminal support is play according to the type information of described receiving terminal for digital television; According to the code of described file, inquire about the file type of described file.
In step 102, file management system judges according to the result of described inquiry whether described receiving terminal for digital television supports the broadcast of described file; If be judged as is that then execution in step 103; If be judged as not, then execution in step 104.
In step 103, file management system issues the download path of described file to described receiving terminal for digital television.
In step 104, file management system is searched alternative file.
In step 105, file management system issues the download path of described alternative file to described receiving terminal for digital television.
Implement the file adaptation method that the embodiment of the invention provides, can provide file automatic adaption function for the user, receiving terminal for digital television model according to the user, the selection adequate resources issues, save user time, give the better experience of user, and conserve system resources, unnecessary download stoped.
Referring to Fig. 2, be the file adaptation method second embodiment schematic flow sheet provided by the invention.In the present embodiment, will add the interaction flow of headend equipment and receiving terminal for digital television, and focus on method and the flow process that the description document management system is searched alternative file.
In embodiments of the present invention, the hardware device that relates to comprises local side and network equipment, and local side apparatus is a receiving terminal for digital television, and network equipment comprises: headend equipment, file management system and database.Wherein headend equipment is the interface of network equipment and receiving terminal for digital television, can provide electric program menu to receiving terminal for digital television, and download request receives and transmit a document.Storage can supply the receiving terminal for digital television downloaded files in the database.Preset the information of All Files in various receiving terminal for digital television information and the database in the file management system, and after receiving the file download request that headend equipment is transmitted, the download path of issuing the documents to receiving terminal for digital television.The file adaptation method idiographic flow that present embodiment provides is as shown in Figure 2:
In step 200, headend equipment provides EPG to receiving terminal for digital television.More specifically, provide among this EPG store in the database, can be for receiving terminal for digital television downloaded files tabulation.Need to prove, store in the database, can comprise for downloaded files: all kinds video file, audio file, picture file and other possible audio/video files.
In step 201, receiving terminal for digital television is presented at EPG on the television set and selects its file that needs for the user, and determines its needs downloaded files according to user's operation, and forward end equipment sends the file download request.
Further, comprise in this document download request: the code of the type information of receiving terminal for digital television, this receiving terminal for digital television request downloaded files.
In step 202, the file download request that headend equipment receiving digital television receiving terminal sends.
Preferably, after the file download request that headend equipment receiving digital television receiving terminal sends, carry out the receiving terminal for digital television that sends the file download request is carried out AAA authentication (Authentication, Authorization, Accounting), after authentication is passed through, execution in step 203; If failed authentication is then to receiving terminal for digital television feedback failed authentication notice.
In step 203, headend equipment is to the file management system download request that transmits a document.
In step 204, file management system receives the file download request.
In step 205, file management system is inquired about the file type that this type figure television receive terminal support is play according to the type information of receiving terminal for digital television; According to the code of described file, inquire about the file type of described file.More specifically, in file management system, preset information table, this information table comprises: the type information of various receiving terminal for digital television, the file type that each model receiving terminal for digital television is supported, and the information of All Files in the database, the information of described file comprises: the title of file, code, file type, download path.File management system is obtained the type information of its receiving terminal for digital television that carries and the code of file after receiving the file download request.File management system is inquired about the file type that this type figure television receive terminal support is play according to the type information of receiving terminal for digital television in the information table that presets; According to the code of file, the file type of inquiry this document in the information table that presets.
In step 206, file management system judges according to the result of described inquiry whether described receiving terminal for digital television supports the broadcast of described file.Whether more specifically, file management system is judged the file type of receiving terminal for digital television request downloaded files, be a kind of in the file type play of described receiving terminal for digital television support; If be judged as and be, judge that then described receiving terminal for digital television support plays its request downloaded files, execution in step 207; If be not judged as not, judge that then described receiving terminal for digital television do not support to play its request downloaded files, execution in step 208.
For example, the receiving terminal for digital television model that sends the file download request is CDVB5110JA, file management system inquires in the information table that presets, the file type that the receiving terminal for digital television support of this model is play comprises: AMV, MPV, DMV, MPX, ASF, 3GP, MPEG1, file management system is again according to the code of file, the file type of inquiry this document in the information table that presets, a kind of in the file type that if the file type of this document is the receiving terminal for digital television support to be play, MPX for example, then its request downloaded files, execution in step 207 are play in the support of file management system judgement receiving terminal for digital television; A kind of in the file type that if the file type of this document is not the receiving terminal for digital television support to be play, for example this document is the audio/video file of MVX type, then file management system judgement receiving terminal for digital television does not support to play its request downloaded files, execution in step 208.
In step 207, the download path of file management system enquiring digital television receive terminal request downloaded files in information table, and issue this download path to receiving terminal for digital television.Further, file management system comprises to the mode that receiving terminal for digital television issues download path: file management system directly issues download path to receiving terminal for digital television, issue download path with file management system forward end equipment, this download path is transmitted to receiving terminal for digital television by headend equipment.
In step 208, when judging that as if file management system receiving terminal for digital television is not supported broadcast of its request downloaded files, obtain the keyword of this receiving terminal for digital television request downloaded files.In the present embodiment, described keyword mainly comprises: the phrase of the title of file or composing document title.For example, in the file download request, the movie file that request is downloaded " very perfect " by name, its keyword is " very perfect " or " very ", " perfection ".
Further, for audio file, its keyword can also comprise singer's name except the phrase of the title of file or composing document title; For video file, can also comprise the protagonist name; Certainly, to have write down above-mentioned information in these prerequisites information table that is file management systems as keyword.The keyword that file management system is obtained is many more, and it is just accurate more to search alternative file subsequently.
In step 209, file management system is according to the keyword that obtains, in the information table that presets, search and whether have alternative file, described alternative file is identical with the content of described receiving terminal for digital television request downloaded files, and the file type of alternative file is that described receiving terminal for digital television support is play.If there is described alternative file, then execution in step 210, if there is not described alternative file, then execution in step 211.
More specifically, suppose that receiving terminal for digital television is in the file download request, the movie file that request is downloaded " very perfect " by name, but file management system judges that its request downloaded files type is that this receiving terminal for digital television can not be supported, so file management system is searched the file that whether exists file name to comprise " very perfect " four words according to the keyword " very perfect " of file in information table.For example, file management system finds the file that a " very perfect (clear version) " by name arranged in the database in its information table, whether the file type of then further judging this document is the file type that the receiving terminal for digital television support is play, if, then this document is alternative file, execution in step 210; If do not exist file name to comprise the file of " very perfect " four words, or file type to remain receiving terminal for digital television unsupported, then explanation does not exist alternative file, execution in step 211.
In step 210, file management system is inquired about the download path of alternative file in information table, and issues the download path of this alternative file to receiving terminal for digital television.Further, file management system comprises to the mode that receiving terminal for digital television issues alternative file download path: file management system directly issues alternative file download path to receiving terminal for digital television, issue the download path of alternative file with file management system forward end equipment, this download path is transmitted to receiving terminal for digital television by headend equipment.
In step 211, its model of file management system notice receiving terminal for digital television does not support to play its request downloaded files.
In step 212, receiving terminal for digital television receives file management system and issues, or the download path of headend equipment forwarding, according to this download path, downloads corresponding file from database.
Implement the file adaptation method that the embodiment of the invention provides, before the receiving terminal for digital television file in download,, judge whether it supports to play its request downloaded files according to user's receiving terminal for digital television model, if do not support, file management system provides file automatic adaption function for the user, according to user's receiving terminal for digital television model, selects adequate resources to issue, save user time, give the better experience of user, and conserve system resources, unnecessary download stoped.
Referring to Fig. 3, be file adaption system example structure schematic diagram provided by the invention, as shown in Figure 3, this system comprises:
Headend equipment 1 is used for providing electric program menu to receiving terminal for digital television 4, the file download request that receiving digital television receiving terminal 4 sends, and to the described file download request of file management system 3 forwardings.
Database 2 is used for storage for receiving terminal for digital television 4 downloaded files.
File management system 3, be used for storing the information of various receiving terminal for digital television information and database 2 All Fileses, and after receiving the file download request that headend equipment 1 is transmitted, judge whether receiving terminal for digital television 4 supports to play its request downloaded files; If support the download path of then issuing the documents; If do not support, then search alternative file, and issue the download path of alternative file to receiving terminal for digital television 4.
Receiving terminal for digital television 4 is used to receive electric program menu, operates sending the file download request according to the user, and according to the download path that file management system 3 issues, downloads corresponding file from database 2.
The file adaption system that the embodiment of the invention provides is for the user provides file automatic adaption function, according to user's receiving terminal for digital television model, the selection adequate resources issues, and saves user time, gives the better experience of user, and conserve system resources, stop unnecessary download.
Referring to Fig. 4, be the file management system first example structure schematic diagram provided by the invention, as shown in Figure 4, this document management system comprises:
Interactive module 31 is used to receive the file download request, comprises in this document download request: the type information of the receiving terminal for digital television of request file in download, the code of this receiving terminal for digital television request downloaded files.
Enquiry module 32 according to the type information of receiving terminal for digital television, is searched the file type that this type figure television receive terminal support is play; According to the code of file, the file type of inquiry this document; And notify judge module 33 with Query Result.
Judge module 33 is used for the Query Result according to enquiry module 32 feedbacks, judges whether receiving terminal for digital television supports the broadcast of its request downloaded files, and with judged result notification handler module 34.
Processing module 34 is used for issuing the download path of this document to receiving terminal for digital television when judge module 33 judges that receiving terminal for digital television is supported the broadcast of described file; When judge module 33 judges that receiving terminal for digital television is not supported the broadcast of described file, search alternative file, and issue the download path of this alternative file to described receiving terminal for digital television.
Further, in embodiments of the present invention, alternative file is the file that this receiving terminal for digital television support is play for and its file type identical with the content of receiving terminal for digital television request downloaded files.
Implement the file management system that the embodiment of the invention provides, can the user provide file automatic adaption function, native system is according to user's receiving terminal for digital television model, the selection adequate resources issues, save user time, give the better experience of user, and conserve system resources, unnecessary download stoped.
Referring to Fig. 5, be the file management system second example structure schematic diagram provided by the invention, as shown in Figure 5, this document management system comprises:
Interactive module 31 is used to receive the file download request, comprises in this document download request: the type information of the receiving terminal for digital television of request file in download, the code of this receiving terminal for digital television request downloaded files.
Enquiry module 32 according to the type information of receiving terminal for digital television, is searched the file type that this type figure television receive terminal support is play; According to the code of file, the file type of inquiry this document; And notify judge module 33 with Query Result.
Judge module 33 is used for the Query Result according to enquiry module 32 feedbacks, judges whether receiving terminal for digital television supports the broadcast of its request downloaded files, and with judged result notification handler module 34.
Processing module 34 is used for issuing the download path of this document to receiving terminal for digital television when judge module 33 judges that receiving terminal for digital television is supported the broadcast of described file; When judge module 33 judges that receiving terminal for digital television is not supported the broadcast of described file, search alternative file, and issue the download path of this alternative file to described receiving terminal for digital television; In embodiments of the present invention, alternative file is the file that this receiving terminal for digital television support is play for and its file type identical with the content of receiving terminal for digital television request downloaded files.
Further, the file management system that provides of the embodiment of the invention also comprises:
Memory module 35, this module are used to preset and information table memory, and described information table comprises: the type information of various receiving terminal for digital television, the file type that each model receiving terminal for digital television is supported, and the information of All Files in the database; The information of described file comprises: the title of file, code, file type, download path.
After interactive module 31 received the file download request, enquiry module 32 obtained the type information of the receiving terminal for digital television that carries in the file download request and the code of file.Enquiry module 32 is inquired about the file type that this type figure television receive terminal support is play according to the type information of receiving terminal for digital television in the information table that memory module 35 presets; According to the code of file, the file type of inquiry this document in the information table that memory module 35 presets.
More specifically, in embodiments of the present invention, judge module 33 specifically comprises:
Query unit 331 is used for the file type in described receiving terminal for digital television support broadcast, and whether inquiry comprises the file type of described receiving terminal for digital television request downloaded files, and Query Result is fed back to identifying unit 332.Further, the file type of the query unit 331 receiving terminal for digital television request downloaded files that 32 inquiries obtain according to enquiry module, in the file type of the receiving terminal for digital television support that enquiry module 32 inquiries obtain, inquire about, whether the file type of receiving terminal for digital television request downloaded files is a kind of in the file type play of described receiving terminal for digital television support; And Query Result fed back identifying unit 332.
Identifying unit 332 is used for the Query Result according to described query unit 331, judges whether receiving terminal for digital television supports to play its request downloaded files, please with result of determination notification handler module 34.
For example, the receiving terminal for digital television model that sends the file download request is CDVB5110JA, enquiry module 32 inquires in the information table that memory module 35 presets, the file type that the receiving terminal for digital television support of this model is play comprises: AMV, MPV, DMV, MPX, ASF, 3GP, MPEG1, enquiry module 32 is again according to the code of file, the file type of inquiry this document for example is MPX in the information table that presets.Query unit 331 is by inquiry, find that this document type is the unanimity in the file type play of receiving terminal for digital television support, then the result is fed back identifying unit 332, identifying unit 332 is made the judgement that its request downloaded files is play in the receiving terminal for digital television support, and with result of determination notification handler module 34; Enquiry module 32 is according to the code of file, the file type of inquiry this document in the information table that presets, for example be MVX, query unit 331 is by inquiry, find that this file type is not a kind of in the file type play of receiving terminal for digital television support, then the result is fed back identifying unit 332, identifying unit 332 is made the judgement that receiving terminal for digital television does not support to play its request downloaded files, and with result of determination notification handler module 34.
Further, in embodiments of the present invention, processing module 34 specifically comprises:
Acquiring unit 341 is used for obtaining the keyword of this receiving terminal for digital television request downloaded files when judge module 33 judges that described receiving terminal for digital television does not support to play its request downloaded files.In the present embodiment, described keyword mainly comprises: the phrase of the title of file or composing document title.For example, in the file download request, the movie file that request is downloaded " very perfect " by name, the keyword that acquiring unit 341 obtains should be " very perfect " or " very ", " perfection ".
Further, for audio file, its keyword can also comprise singer's name except the phrase of the title of file or composing document title; For video file, can also comprise the protagonist name; Certainly, to have write down above-mentioned information in these prerequisites information table that is memory modules 35 as keyword.The keyword that acquiring unit 341 obtains is many more, and it is just accurate more to search alternative file subsequently.
Search unit 342, be used for the keyword that obtains according to described acquiring unit, in memory module, search whether there is alternative file; Described alternative file is identical with the content of described receiving terminal for digital television request downloaded files, and the file type of alternative file is that described receiving terminal for digital television support is play.
More specifically, suppose that receiving terminal for digital television is in the file download request, the movie file that request is downloaded " very perfect " by name, but judge module 34 judges that its request downloaded files type is that this receiving terminal for digital television can not be supported, so search the keyword " very perfect " that unit 342 obtains according to acquiring unit 341, in the information table of memory module 35, search the file that whether exists file name to comprise " very perfect " four words.For example, search unit 342 finds a " very perfect (clear version) " by name in the database file in memory module 35 information tables, whether the file type of then further judging this document is the file type that the receiving terminal for digital television support is play, if memory module 35 is with lookup result notifier processes unit 343; Do not find file name to comprise the file of " very perfect " four words if search unit 342, or file type to remain receiving terminal for digital television unsupported, then there is not alternative file in notifier processes unit 343.
Processing unit 343 is used for judge module 33 and judges when its request downloaded files is play in the receiving terminal for digital television support, issues the download path of described file to described receiving terminal for digital television; When receiving terminal for digital television does not support to play its request downloaded files,, then issue the download path of described alternative file to receiving terminal for digital television if searching unit 342 finds alternative file; If searching unit 342 does not find alternative file, then notify its model of receiving terminal for digital television not support to ask downloaded files.
Implement the file management system that the embodiment of the invention provides, before the receiving terminal for digital television file in download,, judge whether it supports to play its request downloaded files according to user's receiving terminal for digital television model, if do not support, the presents management system provides file automatic adaption function for the user, according to user's receiving terminal for digital television model, selects adequate resources to issue, save user time, give the better experience of user, and conserve system resources, unnecessary download stoped.
Above disclosed is a kind of preferred embodiment of the present invention only, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement by hardware.Based on such understanding, all or part of can the embodying that technical scheme of the present invention contributes to background technology with the form of software product, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.