Summary of the invention
Technical problem to be solved by this invention is to provide a kind of mobile terminal device with streaming media terminal adapting function, can pass through its built-in terminal ability information module and user preference information module terminal ability information and the user preference information to stream media system transmission mobile terminal device, the media content that stream media system is returned matches.And can compatible use on the stream media system of different editions.
For solving the problems of the technologies described above, the invention provides a kind of mobile terminal device with streaming media terminal adapting function, comprising:
The terminal ability information module is used for reporting to stream media system the terminal ability information of mobile terminal device;
The user preference information module is used for reporting to stream media system the user preference information of mobile terminal device.
In the described mobile terminal device, when the terminal ability information module sends terminal ability information, can ignore in the stream media system communication with highest version can not identification field.
In the described mobile terminal device, when the user preference information module sends user preference information, can ignore in the stream media system communication with highest version can not identification field.
In the described mobile terminal device, when the terminal ability information module sends terminal ability information, can return the field of respective version in the stream media system communication with lowest version.
In the described mobile terminal device, when the user preference information module sends user preference information, can return the field of respective version in the stream media system communication with lowest version.
In the described mobile terminal device, the terminal ability information that the terminal ability information module sends can comprise: the mobile packet switch stream media services specification version information that the codec format that mobile terminal device display screen size information, mobile terminal device are supported, mobile terminal device are supported.
In the described mobile terminal device, the user preference information that the user preference information module sends can comprise: the file format information that the codec format that the display screen size information that the user selects, user select, user select.
The application of the invention has the mobile terminal device of streaming media terminal adapting function, coded format, the display window size that can realize the streaming medium content that mobile terminal device receives are complementary with mobile terminal device, can also realize the compatibility of the stream media system of mobile terminal device and different editions.
Embodiment
As shown in Figure 1, for have the structure chart of the mobile terminal device of streaming media terminal adapting function according to one embodiment of the invention, wherein mobile terminal device 201 comprises: terminal ability information module 101 and user preference information module 102.
Terminal ability information module 101 is used for reporting to stream media system the terminal ability information of mobile terminal device; User preference information module 102 is used for reporting to stream media system the user preference information of mobile terminal device.
The mobile terminal device its working principles that the embodiment of the invention has streaming media terminal adapting function is: when mobile terminal device carries out the stream protocol session, give stream media system with mobile terminal device information, stream media system selects the suitable media content of mobile terminal device to send to mobile terminal device.
As shown in Figure 2, the signal that has the mobile terminal device of streaming media terminal adapting function for the present invention transmits key diagram, and 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 with user preference information corresponding equipment ability information, the device capability information that integrated treatment obtains generates final device capability 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 device with streaming media terminal adapting function of the adaptive mode work of terminal.
When mobile terminal device adopted the HTTP mode to obtain the SDP file of Streaming Media, mobile terminal device 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 terminal device information and the selection of user preference, by the equipment disposition server, obtain the mobile terminal device ability, according to terminal capability, carry out the media content coupling, return the SDP information of appropriate media content and give mobile terminal device.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 terminal device 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 terminal device.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 device with streaming media terminal adapting function of the adaptive mode work of terminal.
Mobile terminal device is when playing stream media, adopt the DISCRIBE message request of RTSP to obtain SDP file, in the RTSP message header, carry the mobile terminal device 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 terminal device, after mobile terminal device 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 terminal device.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.