Background technology
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 media 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, media 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 media service system is provided, and the application of the invention system 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 media service system, comprising:
Recto represents module, and being used for provides portal page to the user, and returns media content download description document information according to media content selected by user;
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 is used for returning the related media content according to user's selection;
The state receiver module is used to receive and handle the error condition report that mobile device terminal is returned when media content is not suitable for downloading or can not normally represents, or the success state report returned of mobile device terminal;
The ticket generation module is used for the status report result that the accepting state receiver module sends, and produces ticket information according to the described success state report that receives.
Described download describing module can generate media content download description document information according to media content, when the user need download this media content, at first downloads description document information.
Meet the state report information of downloading the description document information requirements if described downloading service module receives the media content of preparing to download, then can return the related media content.
If described downloading service module receives the media content of preparing to download and do not meet the state report information of downloading the description document information requirements, then can be used as the error condition report information and handle.
If what described state receiver module received is the error condition report information, then can not produce ticket information by the ticket generation module.
Described state receiver module can be used as wrong state report information and handles for the overtime situation of state report information that receives.
Using media service system of the present invention 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.
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, be the modular structure figure according to the described media service system of the embodiment of the invention, wherein media service system 101 comprises:
Recto represents module 301, links to each other with mobile device terminal, is used for providing to mobile device terminal the portal page of media service system, and returns media content download description document information according to media content selected by user to mobile device terminal;
Download describing module 302, 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 301 according to media content selected by user;
Downloading service module 303 links to each other with mobile device terminal, is used for returning the related media content according to user's selection to mobile device terminal;
Ticket generation module 304 is used for the status report result that accepting state receiver module 305 sends, and generates ticket information according to the status report result;
State receiver module 305 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.
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 media service system status report information.Media service system produces ticket information according to this state report information.
Concrete implementation step is as follows:
1, mobile device terminal login media service system portal page is browsed content of interest.
2, mobile device terminal obtains the download description document information of media content interested from media 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 media service system.If the state that step is in the past returned success then returns success status report.
7, media service system produces ticket information according to state report information.For the overtime situation of status report, think wrong status report.