Summary of the invention
Technical problem to be solved by this invention is to provide a kind of mobile terminal adapting system of streaming media, can be set to the media content that the user provides coupling according to the capacity of equipment and the user of mobile device terminal.The mobile device terminal of different editions can compatibility be used on stream media system.
For solving the problems of the technologies described above, the invention provides a kind of mobile terminal adapting system of streaming media, comprise mobile device terminal, stream media system, equipment disposition server, described mobile device terminal comprise terminal ability information module and user preference information module, and described stream media system comprises information acquisition module, information collocation module, information analysis module, capabilities match module and information sending module, described equipment disposition server comprises the device capability information module, wherein:
The terminal ability information module is used for reporting to stream media system the terminal ability information of mobile device terminal;
The user preference information module is used for reporting to stream media system the user preference information of mobile device terminal;
The information acquisition module is used for obtaining terminal ability information and user preference information from mobile device terminal, and the information of will obtaining sends information collocation module;
Information collocation module, be used for obtaining terminal ability information and user preference information from the information acquisition module, obtain the corresponding apparatus ability information according to the terminal ability information and the user preference information that receive, and the device capability information after will obtaining sends the information analysis module;
The information analysis module is used for obtaining device capability information from information collocation module, the items of equipment ability information of obtaining is decomposed synthetic, generates final device capability information, and with final device capability information transmitting capacity matching module;
The capabilities match module is used to receive the final device capability information that the information analysis module sends, and carries out the media content coupling according to final device capability information, with the media content return information sending module after the coupling;
Information sending module is used for receiving media content after the coupling and the transmission of the media content after will mate mobile device terminal from the capabilities match module;
The device capability information module is used to receive terminal ability information and the user preference information that information collocation module sends, and returns the corresponding apparatus ability information to information collocation module.
In the described system,, then can return error code information to mobile device terminal by information sending module if the capabilities match module does not find the media content of coupling.
In the described system, terminal ability information and the user preference information corresponding equipment ability information of information analysis module after for each decomposition, can use user preference information corresponding equipment ability information to replace terminal ability information corresponding equipment ability information, and the synthetic final device capability information of the device capability information after will replacing.Be: if mobile device user is provided with corresponding user preference information, then corresponding user preference information is set to first-selection, and other information setting of same classification are alternative.
In the described system, information analysis module, capabilities match module, information sending module and device capability information module can comprise the device capability information of different editions.
In the described system, the capabilities match module is carried out media content when coupling, for the final device capability information of highest version, can ignore wherein can not identification field.
In the described system, the capabilities match module is carried out media content when coupling, for the final device capability information of lowest version, and field that can Returning equipment ability information respective version.
In the described system, the terminal ability information that the information acquisition module obtains can comprise: the mobile packet switch stream media services specification version information that the codec format that mobile device terminal display screen size information, mobile device terminal are supported, mobile device terminal are supported.
The application of the invention mobile terminal adapting system of streaming media, coded format, the display window size that can realize the streaming medium content that mobile device terminal receives are complementary with mobile device terminal, can also realize the mobile device terminal of different editions in the system and the compatibility of stream media system.
Embodiment
As shown in Figure 1, the structure chart for according to one embodiment of the invention mobile terminal adapting system of streaming media comprises:
Mobile device terminal 101, stream media system 102, equipment disposition server 103.
Mobile device terminal 101 comprises: the terminal ability information module is used for reporting to stream media system the terminal ability information of mobile device terminal; The user preference information module is used for reporting to stream media system the user preference information of mobile device terminal.
Stream media system 102 comprises: the information acquisition module be used for obtaining terminal ability information and user preference information from mobile device terminal, and the information of will obtaining sends information collocation module; Information collocation module, be used for obtaining terminal ability information and user preference information from the information acquisition module, obtain the corresponding apparatus ability information according to the terminal ability information and the user preference information that receive, and the device capability information after will obtaining sends the information analysis module; The information analysis module is used for obtaining device capability information from information collocation module, the items of equipment ability information of obtaining is decomposed synthetic, generates final device capability information, and with final device capability information transmitting capacity matching module; The capabilities match module is used to receive the final device capability information that the information analysis module sends, and carries out the media content coupling according to final device capability information, with the media content return information sending module after the coupling; Information sending module is used for receiving media content after the coupling and the transmission of the media content after will mate mobile device terminal from the capabilities match module
Equipment disposition server 103 comprises the device capability information module, is used to receive terminal ability information and the user preference information that the information acquisition module sends, and returns the corresponding apparatus ability information to the information acquisition module.
Embodiment of the invention mobile terminal adapting system of streaming media its working principles is: when mobile device terminal is carried out the stream protocol session, give stream media system with mobile device terminal information, after stream media system obtains the mobile device terminal ability, select the suitable media content of mobile device terminal to send to mobile device terminal.
As shown in Figure 2, be the signal transmission key diagram of embodiment of the invention mobile terminal adapting system of streaming media, step comprises:
1, mobile device terminal is to the information acquisition module reporting ability information of stream media system, and these information are carried in RTSP or HTTP request message.Be divided into two classes in this information, a class is the screen size that comprises mobile device terminal, mobile device information such as the codec format of support, and whether the PSS version of support information such as supports to the optional function in the version.Uaprof to the wap agreement supports situation, and this part information is preserved in the terminal ability information module, and this category information carries in " x-wap-profile " field; Another kind of is individual subscriber hobby configuration information, preserves in the user preference information module; This category information carries in " x-wap-profile-diff " field.For type I information, use url list to represent.
2, after stream media system obtains terminal ability information and user preference information by the information acquisition module from mobile device terminal, pass to information collocation module by the information acquisition module.
3, information collocation module is gone equipment disposition server fetch equipment ability information according to the URL information that comprises in the url list information, and the interaction protocol that obtains URL information is a http protocol.
4, the equipment disposition server information content of being located to the information collocation module Return URL of stream media system.
5, information collocation module passes to the information analysis module with the device capability information of configuration.
6, information analysis module is decomposed the information that each URL located, and ignores processing for unrecognizable field.The part of the repetition that each URL obtains after decomposing is changed according to the priority of URL, and the information among the high URL of priority is replaced the information among the low URL of priority.Device capability information and user preference information that integrated treatment obtains are synthesized, replace terminal ability information corresponding equipment ability information, generate final device capability information with user preference information corresponding equipment ability information.
7, information analysis module sends to the capabilities match module with final device capability information.
If 8, the capabilities match module is carried out the selection of media content coupling according to final device capability information and found only media content, then under placeholder record on the stream media system, carry out to select this media content when Media Stream transmits beginning.And matching result sent to information sending module.
9, information sending module is to mobile device terminal feedback terminal capabilities match result, the result of coupling carried with " x-wap-profile-warning " field of the response message of RTSP/HTTP return.
As shown in Figure 3, for adopting HTTP, the embodiment of the invention transmits the workflow diagram of the mobile terminal adapting system of streaming media of the adaptive mode work of terminal.
When mobile device terminal adopted the HTTP mode to obtain the SDP file of Streaming Media, mobile device terminal was carried to terminal ability information to stream media system in the HTTP message header.Stream media system is according to the URL address of mobile device terminal information and the selection of user preference, by the equipment disposition server, obtain the mobile device terminal ability, according to terminal capability, carry out the media content coupling, return the SDP information of appropriate media content and give mobile device terminal.It is adaptive to finish terminal capability.
Concrete steps comprise:
(step 301) user imports the media play mode of own preference by mobile device UI interface, and for example, the user selects to adopt AMR-WB form audio plays content.Mobile device terminal is supported more audio format, comprises the AMR-WB form.
(step 302) user adopts the SDP file of http protocol to stream media system request appropriate media content by mobile device terminal.Wherein in the HTTP message header, carry the URL address with one or more x-wap-profile field, in this example the supposition have three, priority with put in order identical.Carry user to set information with one or more x-wap-profile-diff field.Have only one in this example, adopt following form:
x-wap-profile-diff:audio/AMR-WB
The information acquisition module of (step 303) stream media system is according to the URL address information of carrying among the x-wap-profile, adopts http protocol to obtain information to the URL address three times respectively, obtains the unanimity of stipulating among the information format of returning such as the 3GPP PSS R6.
(step 304) stream media system is resolved return information according to the form of stipulating among the 3GPP PSS R6, for the part that attribute repeats, uses the content of the high URL appointment of priority to cover the content of the low URL appointment of priority.Find the audio format field at last, the audio format of all other is set to alternative, and the AMR-WB audio format is decided to be preferably.
The information acquisition module of (step 305) stream media system carries out the media formats coupling, after coupling is finished, returns in the response at HTTP, and x-wap-profile-warning carries matching result with field.Wherein 200 expression optimum Match successes.201 expression best match successes, 202 expressions are minimum, and the match is successful.203 expression couplings are unsuccessful.These mode fields with the ASCII character comma separately.If optimum Match is successfully returned:
x-wap-profile-warning:200,201,202
Wherein 201,202 can return as required.
Return if coupling is unsuccessful:
x-wap-profile-warning:203
If minimum the match is successful returns:
x-wap-profile-warning:202
Minimum coupling represents to mate the poorest situation of mobile device result of broadcast, selects the poorest medium of effect from the medium that satisfy the mobile device ability to play.For with a kind of media content, that can simply set the media content size minimum is the poorest coupling of result of broadcast.
Best match, result of broadcast matches some than minimum, if exist a plurality ofly, selects one at random by stream media system.Media play effect quality can be judged from media file size merely.
(step 306) for the content that optimum Match is arranged, stream media system returns the SDP content of optimum Match content.For the content that does not have optimum Match, stream media system returns the SDP file of best match content and minimum matching content.If there is not minimum coupling, then do not return the SDP content.
(step 307) for the SDP that does not have the optimum Match content, it still is that minimum coupling is carried out follow-up play that the user can select best match.
As shown in Figure 4, for adopting RTSP, the embodiment of the invention transmits the workflow diagram of the mobile terminal adapting system of streaming media of the adaptive mode work of terminal.
Mobile device terminal is when playing stream media, adopt the DISCRIBE message request of RTSP to obtain SDP file, in the RTSP message header, carry the mobile device terminal ability information, stream media system obtains terminal ability information according to URL slave unit configuration server, and carrying out the terminal ability information correction according to user preference, stream media system is according to the suitable media content of terminal ability information coupling.The SDP file of media content is returned to mobile device terminal, after mobile device terminal receives SDP file, continue follow-up RTSP flow process, can begin to carry out media play.
Concrete steps comprise:
(step 401) user imports the media play mode of own preference by mobile device UI interface, and for example, the user selects to adopt the content of bandwidth less than 100kbps.
(step 402) user adopts the SDP file of the DISCRIBE order of RTSP agreement to stream media system request appropriate media content by mobile device terminal.Wherein in the RTSP message header, carry the URL address with one or more x-wap-profile field, in this example the supposition have three, priority with put in order identical.Carry user to set information with one or more x-wap-profile-diff field.Have only one in this example, adopt following form:
x-wap-profile-diff:bitrate/100
The information acquisition module of (step 403) stream media system is according to the URL address information of carrying among the x-wap-profile, adopts http protocol to obtain information to the URL address three times respectively, obtains the unanimity of stipulating among the information format of returning such as the 3GPP PSS R6.
(step 404) stream media system is resolved return information according to the form of stipulating among the 3GPP PSS R6, for the part that attribute repeats, uses the content of the high URL appointment of priority to cover the content of the low URL appointment of priority.Find the bandwidth field at last, 100kbps is the highest as priority.Other bandwidth are as low priority.
The information acquisition module of (step 405) stream media system carries out the media formats coupling, after coupling is finished, returns in the response at the DISCRIBE of RTSP agreement, and x-wap-profile-warning carries matching result with field.Wherein 200 expression optimum Match successes.201 expression best match successes, 202 expressions are minimum, and the match is successful.203 expression couplings are unsuccessful.These mode fields with the ASCII character comma separately.If optimum Match is successfully returned:
x-wap-profile-warning:200,201,202
Wherein 201,202 can return as required.
Return if coupling is unsuccessful:
x-wap-profile-warning:203
If minimum the match is successful returns:
x-wap-profile-warning:202
Minimum coupling represents to mate the poorest situation of mobile device result of broadcast, selects the poorest medium of effect from the medium that satisfy the mobile device ability to play.For with a kind of media content, that can simply set the media content size minimum is the poorest coupling of result of broadcast.
(step 406) for the content that optimum Match is arranged, stream media system returns the SDP content of optimum Match content.For the content that does not have optimum Match, stream media system returns the SDP file of minimum matching content.If there is not minimum coupling, then do not return the SDP content.Because the RTSP protocols limit, the user can not independently select preferable media content to play.