Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated, for convenience of explanation, only show the part relevant with the embodiment of the invention.Should be appreciated that the specific embodiment that this place is described, only be used to explain the present invention, not in order to restriction the present invention.
The present invention by presetting the streaming media resource file the medium essential information and preset Session Description Protocol according to mobile terminal playing device type and generate template, generate the session attribute title that presets the decoding capability collection of player types in the template at described Session Description Protocol, the session attribute value of described session attribute title correspondence and the selection mode of described session attribute value thereof, generate template generation content choice control sequence by resolving Session Description Protocol, by described content choice control sequence and the medium essential information that presets are resolved merging, generate the Session Description Protocol that described mobile terminal playing device type is suitable for, product development and efficiency for issuing have been improved, reduced and revised and upgrading streaming media server end probability, convenient at different mobile terminal playing device types, fast, carry out the adaptive of Session Description Protocol accurately.
Embodiment one
The flow chart of a kind of mobile terminal playing device of Fig. 1 embodiment of the invention Session Description Protocol adaptation method.Described method may further comprise the steps:
S101 presets the medium essential information of streaming media resource file, presets Session Description Protocol according to mobile terminal playing device type and generates template; Preset the streaming media resource file;
Described medium essential information comprises the basic session information that the streaming media resource file session is required, and described basic session information comprises the session attribute value of session attribute title and described session attribute title correspondence;
Session attribute title in the described basic session information comprises protocol version, session initiator, session name, link information, Session Time description, session bandwidth, medium NPT (Network Time Protocal, NTP (Network Time Protocol)) time range;
But it is the text of manual edit that described Session Description Protocol generates template, comprise XML file, TXT file, be used to preset session attribute title, the session attribute value of described session attribute title correspondence and the selection mode of described session attribute value thereof of the decoding capability collection of player types, the selection mode of described session attribute value comprises fixing the description and two types of sources that indicated described session attribute value of default description;
For ease of understanding, illustrate with the Session Description Protocol of xml formal definition and generate template, the Session Description Protocol that has preset the decoding capability collection of mobile terminal playing device type generates session attribute title, the session attribute value of described session attribute title correspondence and the selection mode of described session attribute value thereof in the template:
Wherein, Session Description Protocol generation template is described and is described as follows:
From the above, the selection mode of the session attribute value of session attribute title o is described for fixing, with " " (space) is decollator, its corresponding property value is specially: o=TMBSS 579,093,768 18 IN IP40.0.0.0, and described fixedly description represents that the session attribute value of session attribute title o is changeless;
The selection mode of the property value of session attribute title b:AS is default description, is decollator with " " (space), and its corresponding property value is specially: b=AS:20, and described default description represents that the property value of Property Name b:AS can change;
S102, reception comprises the files in stream media request of obtaining of mobile terminal playing device type, reading flow media resource file extracts the medium essential information of described streaming media resource file, searches and reads corresponding Session Description Protocol according to mobile terminal playing device type and generate template;
Be linked into streaming media server during mobile terminal playing device reading flow media resource file, streaming media server is handled RTSP (Real Time Streaming Protocol, real time streaming transport protocol) the medium essential information of described streaming media resource file is extracted in the request of mobile terminal playing device in the signalling interactive process, streaming media server obtains mobile terminal playing device information by analysis request, carrying out player types simultaneously judges, the RealMedia_Player that carries as the Nokia portable terminal, the StreamingPlayer2.0 of LG KT878 series etc., when mobile terminal playing device type is RealMedia_Player, it is RealMedia_Player.xml that the corresponding Session Description Protocol that presets generates template;
S103 generates template according to described Session Description Protocol and generates the content choice control sequence, is specially:
Session attribute value to each session attribute title and described session attribute title correspondence in the described Session Description Protocol generation template is resolved, promptly parse the described session attribute title in the Session Description Protocol generation template, the session attribute value of described session attribute title correspondence and the selection mode of described session attribute value thereof (const is fixing to be described or the default description of default), the session attribute value that generates session attribute title correspondence described in the template when described Session Description Protocol has when a plurality of, the splitter separator that generates appointment in the template by Session Description Protocol does to separate processing, and the selection mode of definite each session attribute value (for example the const of session attribute value is fixing describes or the default description of default), then with described session attribute title, the session attribute value of described session attribute title correspondence and the selection mode of described session attribute value thereof are generated as the content choice control sequence;
S104 resolves merging to described content choice control sequence and the medium essential information that presets, and generates the Session Description Protocol that described mobile terminal playing device type is suitable for, and is specially:
The selection mode of session attribute value in described content choice control sequence and the medium essential information that presets is resolved merging, generate the basic session information of the Session Description Protocol that described mobile terminal playing device type is suitable for;
The detailed process that described selection mode with session attribute value in described content choice control sequence and the medium essential information that presets is resolved merging is:
When generating in the template with in the medium essential information, Session Description Protocol all has identical session attribute title, and the selection mode that Session Description Protocol generates the session attribute value of the described session attribute title correspondence in the template is to fix when describing, and then selects Session Description Protocol to generate the session attribute value of the described session attribute title correspondence in the template; For ease of understanding, illustrate, Session Description Protocol generates in the template and exists Session Time to describe Property Name " t ", its corresponding session attribute value is " 00 ", the selection mode of described session attribute value is const (promptly fixing the description), also there is session attribute title " t " in the medium essential information, its corresponding session attribute value is " 08 ", then selects Session Description Protocol to generate the session attribute value t=00 of described Property Name " t " correspondence in the template in the final Session Description Protocol that generates;
When generating in the template with in the medium essential information, Session Description Protocol all has identical session attribute title, and when the selection mode that Session Description Protocol generates the session attribute value of the described session attribute title correspondence in the template is default description, then select the session attribute value of the described session attribute title correspondence in the medium essential information; For ease of understanding, illustrate, Session Description Protocol generates in the template and has session attribute title " t ", its corresponding session attribute value is " 00 ", the selection mode of described session attribute value correspondence is default (being default description), also have session attribute title " t " in the medium essential information, its corresponding session attribute value is " 08 ", then at the final corresponding session attribute value t=08 of session attribute title " t " that selects in the Session Description Protocol in the medium essential information that generates;
In Session Description Protocol generates template, have the session attribute title, and described session attribute title is not when existing in the medium essential information, then selects Session Description Protocol to generate session attribute title and corresponding session attribute value thereof in the template; For ease of understanding, illustrate, Session Description Protocol generates in the template and has session attribute title " b:AS ", its corresponding session attribute value is " 65 ", no matter the selection mode of described session attribute value correspondence is default or const, when not having session attribute title " b:AS " in the medium essential information, then in the final Session Description Protocol that generates, select Session Description Protocol to generate the session attribute value b=AS:65 of session attribute title " b:AS " correspondence in the template;
In the medium essential information, there is the session attribute title, and when described session attribute title does not exist in Session Description Protocol generation template, then when generating Session Description Protocol, abandon described session attribute title and corresponding session attribute value thereof, for ease of understanding, illustrate, there is session attribute title " b:AS " in the medium essential information, its corresponding session attribute value is " 65 ", and do not have described session attribute title " b:AS " in the Session Description Protocol generation template, then in the final Session Description Protocol that generates, discard the corresponding session attribute value b=AS:65 of described session attribute title " b:AS ";
Finally in RTSP signaling conversation procedure, reply to described mobile terminal playing device according to the Session Description Protocol (being the Session Description Protocol that described mobile terminal playing device type is suitable for) that the form of 3GPP standard will finally generate by streaming media server;
The further optimization of such scheme is described step " presets the medium essential information of streaming media resource file, presets Session Description Protocol according to mobile terminal playing device type and generate template; Preset the streaming media resource file " comprise also that afterwards step " presets the Session Description Protocol generation template of acquiescence ";
Described step " reception comprises the files in stream media request of obtaining of mobile terminal playing device type; reading flow media resource file; extract the medium essential information of described streaming media resource file; search and read corresponding Session Description Protocol according to mobile terminal playing device type and generate template " also comprises step " when the Session Description Protocol generation template of described mobile terminal playing device type correspondence did not exist, the Session Description Protocol that then reads acquiescence generated template " afterwards;
Such as being RealMedia_Player, if the current Session Description Protocol template file that does not have RealMedia_Player.xml by name then reads the Session Description Protocol template file defaultPlayer.xml of the acquiescence that presets when player types;
The further optimization of such scheme is that described medium essential information comprises the media description information that the streaming media resource file session is required, and described media description information comprises the medium property value of medium property title and described medium property title correspondence;
Described Session Description Protocol generates template and has preset the medium property value of the medium property title of the decoding capability collection of player types, described medium property title correspondence and the selection mode of described medium property value thereof, and the selection mode of described medium property value has indicated the source of described medium property value;
Medium property title in the described media description information comprises code/decode format, resolution, code check, frame per second, decoding parametric collection, package pattern, media track, the quiet lotus type of video file; The code/decode format, sample rate, code check, media track, quiet lotus type, the channel number that also comprise audio file, having preset the medium property title in the media description information of medium essential informations and the medium property value of described medium property title correspondence such as a video file is a=rtpmap:96H264/90000, wherein rtpmap is the medium property title, the medium property value of medium property title rtpmap correspondence is: quiet lotus style number 96, coded format H264, sample rate is 90000;
Described step " generates template according to described Session Description Protocol and generates the content choice control sequence ", is specially:
Medium property value to each medium property title and described medium property title correspondence in the described Session Description Protocol generation template is resolved, described medium property title, the medium property value of described medium property title correspondence and the selection mode of described medium property value thereof generate the content choice control sequence, promptly work as the medium property value of each medium property title and described medium property title correspondence in the described Session Description Protocol generation template is resolved, and with described medium property title, the medium property value of described medium property title correspondence and the selection mode of described medium property value thereof generate the content choice control sequence of Session Description Protocol;
Described step " is resolved merging to described content choice control sequence and the medium essential information that presets, is generated the Session Description Protocol that described mobile terminal playing device type is suitable for " and is specially:
Each medium property title in described content choice control sequence and the medium essential information that presets, the medium property value of described medium property title correspondence are contrasted one by one, and resolve merging according to the selection mode of medium property value in described content choice control sequence and the medium essential information that presets, generate the media description information of the Session Description Protocol that described mobile terminal playing device type is suitable for;
Described and be according to the detailed process that the selection mode of medium property value in described content choice control sequence and the medium essential information that presets is resolved merging:
When Session Description Protocol generates in the template and all have identical medium property title in the medium essential information, select the medium property value of the described medium property title correspondence in the Session Description Protocol generation template;
In Session Description Protocol generates template, have the medium property title, and described medium property title is not when existing in the medium essential information, then selects Session Description Protocol to generate medium property title and corresponding medium property value thereof in the template;
In the medium essential information, have the medium property title, and described medium property title then abandons described medium property title and corresponding medium property value thereof when not existing in Session Description Protocol generates template when generating Session Description Protocol;
Finally in RTSP signaling conversation procedure, reply to described mobile terminal playing device according to the Session Description Protocol (being the Session Description Protocol that described mobile terminal playing device type is suitable for) that the form of 3GPP standard will finally generate by streaming media server;
The further optimization of such scheme is, described medium essential information comprises basic session information and the media description information that the streaming media resource file session is required, described basic session information comprises the session attribute value of session attribute title and described session attribute title correspondence, and described media description information comprises the medium property value of medium property title and described medium property title correspondence; Described Session Description Protocol generates session attribute title, the session attribute value of described session attribute title correspondence and the selection mode of described session attribute value thereof that template is used to preset the decoding capability collection of player types, and the selection mode of described session attribute value comprises fixing describe and default description indicates the source of described session attribute value; Also be used to preset medium property title, the medium property value of described medium property title correspondence and the selection mode of described medium property value thereof of the decoding capability collection of player types, the selection mode of described medium property value has indicated the source of described medium property value;
Described step " generates template according to described Session Description Protocol and generates the content choice control sequence " and is specially:
Session attribute value to each session attribute title and described session attribute title correspondence in the described Session Description Protocol generation template is resolved, simultaneously the medium property value of each medium property title and described medium property title correspondence in the described Session Description Protocol generation template is resolved, and with described session attribute title, the session attribute value of described session attribute title correspondence, the selection mode of described medium property value, described medium property title, the medium property value of described medium property title correspondence and the selection mode of described medium property value thereof generate the content choice control sequence;
Described step " is resolved merging to described content choice control sequence and the medium essential information that presets, is generated the Session Description Protocol that described mobile terminal playing device type is suitable for " and is specially:
The selection mode of session attribute value in described content choice control sequence and the medium essential information that presets is resolved merging, generate the basic session information of the Session Description Protocol that described mobile terminal playing device type is suitable for; And the selection mode of medium property value in described content choice control sequence and the medium essential information that presets resolved merging, generate the media description information of the Session Description Protocol that described mobile terminal playing device type is suitable for;
Described selection mode with session attribute value in described content choice control sequence and the medium essential information that presets resolve merge and and with the detailed process that the selection mode of medium property value in described content choice control sequence and the medium essential information that presets is resolved merging be:
When Session Description Protocol generates in the template and all have identical medium property title in the medium essential information, select the medium property value of the described medium property title correspondence in the Session Description Protocol generation template;
When generating in the template with in the medium essential information, Session Description Protocol all has identical session attribute title, and the selection mode that Session Description Protocol generates the session attribute value of the described session attribute title correspondence in the template is to fix when describing, and then selects Session Description Protocol to generate the session attribute value of the described session attribute title correspondence in the template;
When generating in the template with in the medium essential information, Session Description Protocol all has identical session attribute title, and when the selection mode that Session Description Protocol generates the session attribute value of the described session attribute title correspondence in the template is default description, then select the session attribute value of the described session attribute title correspondence in the medium essential information;
When generating in the template, Session Description Protocol has session attribute title or medium property title, and when described session attribute title or medium property title do not exist, then select session attribute title or medium property title and corresponding session attribute value or medium property value thereof in the Session Description Protocol generation template in the medium essential information;
In the medium essential information, there are session attribute title or medium property title, and when described session attribute title or medium property title do not exist, then when generating Session Description Protocol, abandon described session attribute title or medium property title and corresponding session attribute value or medium property value thereof in Session Description Protocol generation template;
Medium essential information by presetting the streaming media resource file in the embodiment of the invention and preset Session Description Protocol according to mobile terminal playing device type and generate template, generate the session attribute title that presets the decoding capability collection of player types in the template at described Session Description Protocol, the session attribute value of described session attribute title correspondence and the selection mode of described session attribute value thereof, generate template generation content choice control sequence by resolving Session Description Protocol, by described content choice control sequence and the medium essential information that presets are resolved merging, generate the Session Description Protocol that described mobile terminal playing device type is suitable for, product development and efficiency for issuing have been improved, reduced and revised and upgrading streaming media server end probability, convenient at different mobile terminal playing device types, fast, carry out the adaptive of Session Description Protocol accurately; Generate template by the Session Description Protocol that presets acquiescence, further reduced and revised and upgrading streaming media server end probability; Medium property title, the medium property value of described medium property title correspondence and the selection mode of described medium property value thereof of the decoding capability collection by presetting player types, product development and efficiency for issuing have further been improved, reduced and revised and upgrading streaming media server end probability, convenient, carry out the adaptive of Session Description Protocol fast, accurately; By multiple described content choice control sequence and the medium essential information that presets are resolved the mode of merging, further carry out the adaptive of Session Description Protocol accurately.
Embodiment two
Fig. 2 is the structural representation of the adaptive system of a kind of mobile terminal playing device of embodiment of the invention Session Description Protocol.
Described system comprises initial module, read module, generation module and adaptation module;
Initial module links to each other with read module, is used to preset the medium essential information of streaming media resource file, presets Session Description Protocol according to mobile terminal playing device type and generates template; Preset the streaming media resource file;
Described medium essential information comprises the basic session information that the streaming media resource file session is required, and described basic session information comprises the session attribute value of session attribute title and described session attribute title correspondence;
Session attribute title in the described basic session information comprises protocol version, session initiator, session name, link information, Session Time description, session bandwidth, medium NPT (Network Time Protocal, NTP (Network Time Protocol)) time range;
But it is the text of manual edit that described Session Description Protocol generates template, comprise XML file, TXT file, be used to preset session attribute title, the session attribute value of described session attribute title correspondence and the selection mode of described session attribute value thereof of the decoding capability collection of player types, the selection mode of described session attribute value comprises fixing the description and two types of sources that indicate described session attribute value of default description;
What Session Description Protocol generated template sees embodiment one for example for details, repeats no more herein;
Read module, link to each other with initial module, generation module and adaptation module, be used to receive the files in stream media request of obtaining that comprises mobile terminal playing device type, reading flow media resource file, extract the medium essential information of described streaming media resource file, search and read corresponding Session Description Protocol according to mobile terminal playing device type and generate template;
Be linked into streaming media server during mobile terminal playing device reading flow media resource file, streaming media server is handled RTSP (Real Time Streaming Protocol, real time streaming transport protocol) the medium essential information of described streaming media resource file is extracted in the request of mobile terminal playing device in the signalling interactive process, streaming media server obtains mobile terminal playing device information by analysis request, carrying out player types simultaneously judges, the RealMedia_Player that carries as the Nokia portable terminal, the StreamingPlayer2.0 of LG KT878 series etc., when mobile terminal playing device type is RealMedia_Player, it is RealMedia_Player.xml that the corresponding Session Description Protocol that presets generates template;
Generation module links to each other with adaptation module with read module, is used for generating template according to described Session Description Protocol and generates the content choice control sequence, is specially:
Session attribute value to each session attribute title and described session attribute title correspondence in the described Session Description Protocol generation template is resolved, promptly parse the described session attribute title in the Session Description Protocol generation template, the session attribute value of described session attribute title correspondence and the selection mode of described session attribute value thereof (const is fixing to be described or the default description of default), the session attribute value that generates session attribute title correspondence described in the template when described Session Description Protocol has when a plurality of, the splitter separator that generates appointment in the template by Session Description Protocol does to separate processing, and the selection mode of definite each session attribute value (for example the const of session attribute value is fixing describes or the default description of default), then with described session attribute title, the session attribute value of described session attribute title correspondence and the selection mode of described session attribute value thereof are generated as the content choice control sequence;
Adaptation module links to each other with generation module with read module, is used for described content choice control sequence and the medium essential information that presets are resolved merging, generates the Session Description Protocol that described mobile terminal playing device type is suitable for, and specifically is used for:
The selection mode of session attribute value in described content choice control sequence and the medium essential information that presets is resolved merging, generate the basic session information of the Session Description Protocol that described mobile terminal playing device type is suitable for;
The detailed process that the selection mode with session attribute value in described content choice control sequence and the medium essential information that presets described in the described adaptation module is resolved merging is:
When generating in the template with in the medium essential information, Session Description Protocol all has identical session attribute title, and the selection mode that Session Description Protocol generates the session attribute value of the described session attribute title correspondence in the template is to fix when describing, and then selects Session Description Protocol to generate the session attribute value of the described session attribute title correspondence in the template; For ease of understanding, illustrate, Session Description Protocol generates in the template and exists Session Time to describe Property Name " t ", its corresponding session attribute value is " 00 ", the selection mode of described session attribute value is const (promptly fixing the description), also there is session attribute title " t " in the medium essential information, its corresponding session attribute value is " 08 ", then selects Session Description Protocol to generate the session attribute value t=00 of described Property Name " t " correspondence in the template in the final Session Description Protocol that generates;
When generating in the template with in the medium essential information, Session Description Protocol all has identical session attribute title, and when the selection mode that Session Description Protocol generates the session attribute value of the described session attribute title correspondence in the template is default description, then select the session attribute value of the described session attribute title correspondence in the medium essential information; For ease of understanding, illustrate, Session Description Protocol generates in the template and has session attribute title " t ", its corresponding session attribute value is " 00 ", the selection mode of described session attribute value correspondence is default (being default description), also have session attribute title " t " in the medium essential information, its corresponding session attribute value is " 08 ", then at the final corresponding session attribute value t=08 of session attribute title " t " that selects in the Session Description Protocol in the medium essential information that generates;
In Session Description Protocol generates template, have the session attribute title, and described session attribute title is not when existing in the medium essential information, then selects Session Description Protocol to generate session attribute title and corresponding session attribute value thereof in the template; For ease of understanding, illustrate, Session Description Protocol generates in the template and has session attribute title " b:AS ", its corresponding session attribute value is " 65 ", no matter the selection mode of described session attribute value correspondence is default or const, when not having session attribute title " b:AS " in the medium essential information, then in the final Session Description Protocol that generates, select Session Description Protocol to generate the session attribute value b=AS:65 of session attribute title " b:AS " correspondence in the template;
In the medium essential information, there is the session attribute title, and when described session attribute title does not exist in Session Description Protocol generation template, then when generating Session Description Protocol, abandon described session attribute title and corresponding session attribute value thereof, for ease of understanding, illustrate, there is session attribute title " b:AS " in the medium essential information, its corresponding session attribute value is " 65 ", and do not have described session attribute title " b:AS " in the Session Description Protocol generation template, then in the final Session Description Protocol that generates, discard the corresponding session attribute value b=AS:65 of described session attribute title " b:AS ";
Finally in RTSP signaling conversation procedure, reply to described mobile terminal playing device according to the Session Description Protocol (being the Session Description Protocol that described mobile terminal playing device type is suitable for) that the form of 3GPP standard will finally generate by streaming media server;
The further optimization of such scheme is described initial module also is used to preset the Session Description Protocol generation template of acquiescence;
Described read module also is used for when the Session Description Protocol generation template of described mobile terminal playing device type correspondence does not exist, and the Session Description Protocol that then reads acquiescence generates template;
Such as being RealMedia_Player, if the current Session Description Protocol template file that does not have RealMedia_Player.xml by name then reads the Session Description Protocol template file defaultPlayer.xml of the acquiescence that presets when player types;
The further optimization of such scheme is, medium essential information described in the described initial module comprises the media description information that the streaming media resource file session is required, and described media description information comprises the medium property value of medium property title and described medium property title correspondence; Described Session Description Protocol generates template and has preset the medium property value of the medium property title of the decoding capability collection of player types, described medium property title correspondence and the selection mode of described medium property value thereof, and the selection mode of described medium property value has indicated the source of described medium property value;
Medium property title in the described media description information comprises code/decode format, resolution, code check, frame per second, decoding parametric collection, package pattern, media track, the quiet lotus type of video file; The code/decode format, sample rate, code check, media track, quiet lotus type, the channel number that also comprise audio file, having preset the medium property title in the media description information of medium essential informations and the medium property value of described medium property title correspondence such as a video file is a=rtpmap:96H264/90000, wherein rtpmap is the medium property title, the medium property value of medium property title rtpmap correspondence is: quiet lotus style number 96, coded format H264, sample rate is 90000;
Described generation module specifically is used for:
Medium property value to each medium property title and described medium property title correspondence in the described Session Description Protocol generation template is resolved, described medium property title, the medium property value of described medium property title correspondence and the selection mode of described medium property value thereof generate the content choice control sequence, promptly work as the medium property value of each medium property title and described medium property title correspondence in the described Session Description Protocol generation template is resolved, and with described medium property title, the medium property value of described medium property title correspondence and the selection mode of described medium property value thereof generate the content choice control sequence of Session Description Protocol;
Described adaptation module specifically is used for:
The selection mode of medium property value in described content choice control sequence and the medium essential information that presets is resolved merging, generate the media description information of the Session Description Protocol that described mobile terminal playing device type is suitable for;
The detailed process that described selection mode with medium property value in described content choice control sequence and the medium essential information that presets is resolved merging is:
When Session Description Protocol generates in the template and all have identical medium property title in the medium essential information, select the medium property value of the described medium property title correspondence in the Session Description Protocol generation template;
In Session Description Protocol generates template, have the medium property title, and described medium property title is not when existing in the medium essential information, then selects Session Description Protocol to generate medium property title and corresponding medium property value thereof in the template;
In the medium essential information, have the medium property title, and described medium property title then abandons described medium property title and corresponding medium property value thereof when not existing in Session Description Protocol generates template when generating Session Description Protocol;
Finally in RTSP signaling conversation procedure, reply to described mobile terminal playing device according to the Session Description Protocol (being the Session Description Protocol that described mobile terminal playing device type is suitable for) that the form of 3GPP standard will finally generate by streaming media server;
The further optimization of such scheme is, medium essential information described in the described initial module comprises basic session information and the media description information that the streaming media resource file session is required, described basic session information comprises the session attribute value of session attribute title and described session attribute title correspondence, and described media description information comprises the medium property value of medium property title and described medium property title correspondence; Described Session Description Protocol generates session attribute title, the session attribute value of described session attribute title correspondence and the selection mode of described session attribute value thereof that template is used to preset the decoding capability collection of player types, and the selection mode of described session attribute value comprises fixing describe and default description indicates the source of described session attribute value; Also be used to preset medium property title, the medium property value of described medium property title correspondence and the selection mode of described medium property value thereof of the decoding capability collection of player types, the selection mode of described medium property value indicates the source of described medium property value;
Described generation module specifically is used for:
The selection mode of session attribute value in described content choice control sequence and the medium essential information that presets is resolved merging, generate the basic session information of the Session Description Protocol that described mobile terminal playing device type is suitable for; And the selection mode of medium property value in described content choice control sequence and the medium essential information that presets resolved merging, generate the media description information of the Session Description Protocol that described mobile terminal playing device type is suitable for;
Described selection mode with session attribute value in described content choice control sequence and the medium essential information that presets resolve merge and and with the detailed process that the selection mode of medium property value in described content choice control sequence and the medium essential information that presets is resolved merging be:
When Session Description Protocol generates in the template and all have identical medium property title in the medium essential information, select the medium property value of the described medium property title correspondence in the Session Description Protocol generation template;
When generating in the template with in the medium essential information, Session Description Protocol all has identical session attribute title, and the selection mode that Session Description Protocol generates the session attribute value of the described session attribute title correspondence in the template is to fix when describing, and then selects Session Description Protocol to generate the session attribute value of the described session attribute title correspondence in the template;
When generating in the template with in the medium essential information, Session Description Protocol all has identical session attribute title, and when the selection mode that Session Description Protocol generates the session attribute value of the described session attribute title correspondence in the template is default description, then select the session attribute value of the described session attribute title correspondence in the medium essential information;
When generating in the template, Session Description Protocol has session attribute title or medium property title, and when described session attribute title or medium property title do not exist, then select session attribute title or medium property title and corresponding session attribute value or medium property value thereof in the Session Description Protocol generation template in the medium essential information;
In the medium essential information, there are session attribute title or medium property title, and when described session attribute title or medium property title do not exist, then when generating Session Description Protocol, abandon described session attribute title or medium property title and corresponding session attribute value or medium property value thereof in Session Description Protocol generation template;
Preset the medium essential information of streaming media resource file and preset different Session Description Protocol generation templates according to different mobile terminal playing device types by initial module in the embodiment of the invention, generate the session attribute title that presets the decoding capability collection of player types in the template at described Session Description Protocol, the session attribute value of described session attribute title correspondence and the selection mode of described session attribute value thereof, preset the medium property title of the decoding capability collection of player types simultaneously, the medium property value of described medium property title correspondence and the selection mode of described medium property value thereof, read medium essential information and the Session Description Protocol generation template that preset module presets by read module, generate template generation content choice control sequence by generation module by resolving Session Description Protocol, content choice control sequence content choice control sequence has been stored the session attribute title in the Session Description Protocol generation template, the session attribute value of described session attribute title correspondence and the selection mode of described session attribute value thereof, medium property title in the agreement generation template simultaneously can also store session be described, the medium property value of described medium property title correspondence and the selection mode of described medium property value thereof, by adaptation module described content choice control sequence and the medium essential information that presets are resolved merging at last, generate the Session Description Protocol that described mobile terminal playing device type is suitable for, product development and efficiency for issuing have been improved, reduced and revised and upgrading streaming media server end probability, convenient at different mobile terminal playing device types, fast, carry out the adaptive of Session Description Protocol accurately; The Session Description Protocol that further presets acquiescence by initial module generates template, has further reduced and has revised and upgrading streaming media server end probability; By multiple in the adaptation module described content choice control sequence and the medium essential information that presets are resolved the mode of merging, further carry out the adaptive of Session Description Protocol accurately.