A kind of Streaming Media download system and method for down loading thereof
Technical field
The present invention relates to a kind of network system applied technical field, the system and method that particularly a kind of Streaming Media is downloaded.
Background technology
Streaming Media is meant that data such as video, sound carry with RTP, and transmits to destination from the source end with the form of continuous stream, receives the multimedia application that certain data cached back just can play back at destination.
Streaming Media is the address to the time base continuous media that can transmit as a stream.Continuous media itself has the advantages that partial data just can be play.3GPP standard " 3GPP TS 26.244 " all has clearly definition to the file format and the coded format of Streaming Media, and files in stream media can be play in this locality.
The Streaming Media basic service can be divided into following three kinds of typical traffic pattern:
1, streaming media on demand (VOD)
Streaming media on demand is that the content of multimedia encoding compression that content supplier will prerecord becomes corresponding format, leave on the content server and and be placed in the portal website of Streaming Media the descriptor of content and link, find interested content by the terminal use, play selectively.
2, live streaming media
Live streaming media is that the Streaming Media encoder server becomes corresponding form with the live signal encoding compression, and is distributed to user's terminal player via streaming media server.According to the difference of real time content signal source, can be divided into live telecast, remote monitoring etc. again.
3, downloading and playing
Downloading and playing is that the user downloads streaming medium content and store in the local terminal, can be chosen in random time then and play.For the local file playback, main restriction index is the disposal ability of terminal and the storage capacity of terminal, content supplier can produce the video content (high bandwidth, high frame rate) of better quality, but will consider the download time of content and the memory space of terminal.
Download is that complete media content is sent to mobile device terminal from the download service system.Compare with stream mode, could play owing to media content need be downloaded to mobile device terminal fully, the user need wait for the long period.Stream mode is higher to requirements for transmission, if the encoded bandwidth of media content is higher than transmission bandwidth, and then can not normal play.
Downloading mode is less demanding to bandwidth.If transmission bandwidth is lower, period of reservation of number is long slightly.Usually provide the download load mode to the higher medium of encoded bandwidth, therefore download the effect of the result of broadcast comparison type broadcast of back medium and will get well.And after downloading, media content has been kept at mobile device terminal, and the time place that the user can select arbitrarily oneself to like is watched, and can not be subjected to the influence of network environment.
May be in the downloading process owing to mobile device terminal, medium can not download to mobile device terminal fully, and perhaps medium can not be play after downloading.If relate to charging problem, the download service system might occur and think that success downloads, mobile device terminal is then thought and the situation that not have download to finish for above problem, is adopted method and system provided by the invention to solve.
Summary of the invention
Technical problem to be solved by this invention is, a kind of Streaming Media download system and method for down loading thereof are provided, and the application of the invention system and method thereof can solve and can not play after files in stream media is downloaded, and the charge dispute problem of bringing thus.
For solving the problems of the technologies described above, the invention provides a kind of Streaming Media download system and method for down loading thereof, download system comprises mobile device terminal and download service system, mobile device terminal comprises:
The user browses module, links to each other with described download service system, is used for the portal page of browsing and download service system, selects to prepare the media content downloaded, and obtains the download description document information of related media content from the download service system;
Capabilities check module is used for browsing the media content download description document information that module sends according to the user and checks adaptive to the ability of mobile device terminal;
The content download module links to each other with described download service system, is used for the inspection Adapted information that sends according to capabilities check module and media content download description document information from download service system downloads related media content;
The content preloading module is used for whether the media content that downloads to mobile device terminal be adapted at representing on the mobile device terminal carrying out the preliminary treatment inspection;
The status report module links to each other with described download service system, is used for browsing the result of module, capabilities check module, content download module and content preloading module to downloading service system return state report information according to the user;
The download service system comprises:
Recto represents module, links to each other with described mobile device terminal, is used for providing to mobile device terminal the portal page of download service system, and returns media content download description document information according to media content selected by user to mobile device terminal;
Download describing module, be used for generating media content download description document information, and the media content download description document information transmission recto that generates is represented module according to media content selected by user;
Downloading service module links to each other with described mobile device terminal, is used for returning the related media content according to user's selection to mobile device terminal;
The state receiver module links to each other with described mobile device terminal, is used to receive and handle the state report information that mobile device terminal is returned;
Described download service system may further include the ticket generation module, is used for the status report result that the accepting state receiver module sends, and generates ticket information according to the status report result.
Described download describing module can generate media content download description document information according to media content, when mobile device terminal need be downloaded this media content, at first download description document information, mobile device terminal is according to described description document information, check whether media content can be kept at mobile device terminal, and whether the media formats mobile device terminal is supported.
If described mobile device terminal meets the requirement of media content download description document information, then can carry out media content download by the content download module.
After described content download module is finished media content download, can carry out preliminary treatment to media content, check whether media content can normally represent on mobile device terminal by the content preloading module.
Described status report module can be to downloading service system status report information after the media content of downloading normally represents, and the download service system produces ticket information according to the state report information that receives.
If described capabilities check module finds that media content can not normally represent in mobile device terminal, then can return the error condition report information to downloading service system.
Described state receiver module can be used as wrong state report information and handles for the overtime situation of state report information that receives.
Method for down loading may further comprise the steps:
A. the media content to pre-download generates the download descriptor;
B. mobile device terminal media content download descriptor at first, and check according to described descriptor whether media content can be kept at mobile device terminal, and whether the media formats mobile device terminal is supported;
C. download and meet the media content that descriptor requires;
D. after download was finished, mobile device terminal was carried out preliminary treatment to media content, checked whether media content can normally represent on mobile device terminal, if can normally represent, then to downloading service system return state report information.
Described method may further include following steps:
E. the download service system produces ticket information according to described state report information.
Described steps d may further include: if media content can not normally represent in mobile device terminal, then return the error condition report information to downloading service system.
Among the described step e, the download service system can be used as the error condition report information and handles for the state report information of receive time-out.
Using Streaming Media download system of the present invention and method for down loading thereof can solve files in stream media can not correctly download, can not correctly play after the download, and the problems of bringing thus such as charge dispute.
Description of drawings
Fig. 1 downloads flow chart according to the described streaming media service of the embodiment of the invention;
Fig. 2 is according to the described Streaming Media download system of embodiment of the invention structure chart.
Embodiment
As shown in Figure 1, for downloading flow chart according to the described streaming media service of the embodiment of the invention, wherein mobile device terminal is passed through browser, adopt the WAP2 mode to find streaming medium content, when the user activated the HTTP download link of interested content, mobile device terminal started the downloading process of Streaming Media.After downloading successfully, the user can play downloaded files in this locality.The download flow process of streaming media service combines the WAP download and OMA downloads two kinds of mechanism.Its concrete steps are as follows:
(step 201) user browsing media door enters contents list, and these contents lisies have been listed the information (as content name, brief introduction, information such as copyright) and the expenses standard of each content.
(step 202) if the user is interested in certain content, and can accept its expenses standard, can ask to download given content.
(step 203) this moment, the Streaming Media door obtained user Session information, as mobile device terminal number, access time etc., and gave user's return authorization result.
(step 204) Streaming Media door uses information architecture OMADownload Descriptor URL such as user data, Authorization result, and this URL comprises user's mobile device terminal number, Transaction Identification Number, service provider ID, information such as price strategy.
(step 205) Streaming Media door sends to user side with the HTTP Download Descriptor URL that produces, and this URL comprises the token name, information such as link survival duration.
(step 206) clicks this URL, the request that Download Descriptor XML file is obtained in the terminal initiation.
(step 207) Download Server verifies URL, as checking by then the Download Descriptor XML file of file in download correspondence being sent to terminal.
(step 208) terminal obtains Download Descriptor XML file, and the relevant regulations in the OMA1.0 download standard is followed in this XML file strictness.
(step 209) terminal is resolved Download Descriptor file, initiates the file download request according to analysis result to Download Server.
(step 210) Download Server is further verified download URL.
After (step 211) checking was passed through, Download Server sent to terminal with content.During download, the mime type that terminal need be supported is as follows:
Mime type is application/mp4, and file extent is called mp4;
Mime type is application/3gp, and file extent is called 3gp;
Mime type is application/3g2, and file extent is called 3g2;
Mime type is application/mp3, and file extent is called mp3.
After (step 212) downloaded and finished, the URL that terminal is stipulated in Download DescriptorXML file according to the actual download situation sent and downloads successfully report, and the download standard among the OMA1.0 is followed in the strictness of download reporting format.
After (step 213) downloaded and finished, whether terminal notifying needs was play.
In embodiment of the invention implementation process, if the user cancels download, terminal to server sends cancellation message, and the download standard among the OMA1.0 is followed in concrete form strictness.
As shown in Figure 2, for according to the described Streaming Media download system of embodiment of the invention structure chart, wherein the Streaming Media download system comprises mobile device terminal 101 and download service system 102, and mobile device terminal 101 comprises:
Content preloading module 301 is used for whether the media content that downloads to mobile device terminal 101 be adapted at representing on the mobile device terminal 101 carrying out the preliminary treatment inspection;
Content download module 302 links to each other with described download service system 102, and the inspection Adapted information and the media content download description document information that are used for sending according to capabilities check module 303 are downloaded the related media contents from download service system 102;
Capabilities check module 303 is used for browsing the media content download description document information that module 304 sends according to the user and checks adaptive to the ability of mobile device terminal 101;
The user browses module 304, links to each other with described download service system 102, is used for the portal page of browsing and download service system 102, selects to prepare the media content downloaded, and obtains the download description document information of related media contents from download service system 102;
Status report module 305, link to each other with described download service system 102, be used for browsing the result of module 304, capabilities check module 303, content download module 302 and content preloading module 301 to downloading service system 102 return state report informations according to the user;
Described download service system 102 comprises:
Recto represents module 306, link to each other with described mobile device terminal 101, be used for providing the portal page of download service system, and return media content download description document information to mobile device terminal 101 according to media content selected by user to mobile device terminal 101;
Download describing module 307, be used for generating media content download description document information, and the media content download description document information transmission recto that generates is represented module 306 according to media content selected by user;
Downloading service module 308 links to each other with described mobile device terminal 101, is used for returning the related media content according to user's selection to mobile device terminal 101;
Ticket generation module 309 is used for the status report result that accepting state receiver module 310 sends, and generates ticket information according to the status report result;
State receiver module 310 links to each other with described mobile device terminal 101, is used to receive and handle the state report information that mobile device terminal 101 is returned.
Basic principle of the present invention is: provide the download descriptor to media content, when mobile device terminal need be downloaded this media content, downloads of media descriptor at first, mobile device terminal is according to this descriptor, check whether medium can be kept at mobile device terminal, whether the media formats mobile device terminal is supported etc.If mobile device terminal satisfies the requirement in the media description.Then carry out media content download, after media content download was finished, mobile device terminal was carried out preliminary treatment to media content again, checked whether media content can normally represent on terminal.If can normally represent, then to downloading service system status report information.The download service system produces ticket information according to this state report information.
Concrete implementation step is as follows:
1, mobile device terminal login download service system portal page is browsed content of interest.
2, mobile device terminal obtains the download description document information of media content interested from the download service system.
3, mobile device terminal is checked the mobile device terminal ability according to content download description document, if media content is not suitable for downloading to mobile device terminal, then arrives step 6, otherwise continues subsequent step.
4, the download service address set from download description document of mobile device terminal obtains media content.
5, after media content was sent to mobile device terminal fully, mobile device terminal was carried out preliminary treatment to media content, checked whether media content can normally represent in mobile device terminal.
6, according to the information of return state as a result of former step,, then return the error condition report if be not suitable for downloading to mobile device terminal for step 3 media content.For step 5,, then return the error condition report if find that media content can not normally represent in mobile device terminal.For above-mentioned steps occur any unusual, mobile device terminal is returned the error condition report to downloading service system.If the state that step is in the past returned success then returns success status report.
7, download service system produces ticket information according to state report information.For the overtime situation of status report, think wrong status report.