Summary of the invention
The embodiment of the invention provides a kind of method, apparatus and network media system for playing multiple media contents, with reality
Existing fair broadcasting, improves user experience.
In a first aspect, a kind of method for playing multiple adaptive code streaming medium contents, including:
The broadcasting code of the adaptive code streaming medium content of each media renderer plays in N number of media player is obtained respectively
Rate, N >=2;
If the broadcasting code rate of the M1 adaptive code streaming medium contents is lower than corresponding first code rate threshold value, and
M1 < N then adjusts the broadcasting code rate of the adaptive code streaming medium content of K media renderer plays, M1≤K≤N;Wherein, often
First code rate threshold value corresponding to the adaptive code streaming medium content of a media renderer plays is according to each media play
What the description information of the device capability information of device and the adaptive code streaming medium content of each media renderer plays obtained.
In the first possible implementation of the first aspect, if the M1 adaptive code streaming medium content
It plays code rate and is lower than corresponding first code rate threshold value, and M1 < N, then adjust the adaptive of K media renderer plays
The broadcasting code rate of code stream media content, including:
If the broadcasting code rate of the M1 adaptive code streaming medium contents is lower than corresponding first code rate threshold value, and
M1 < N, then according to the total bandwidth and each adaptive code streaming medium content for being used to play N number of adaptive code streaming medium content
Description information, be the corresponding broadcasting code rate of adaptive code streaming medium content distribution of the K media renderer plays;
According to the broadcasting code rate of the adaptive code streaming medium content distribution for the K media renderer plays, to media
Server sends code rate adjustment order, so that it is assigned that the media server, which sends code rate to the K media player,
Transmission code rate adaptive code streaming medium content.
The possible implementation of with reference to first aspect the first, in the second possible implementation, the basis
For playing the total bandwidth of N number of adaptive code streaming medium content and the description information of each adaptive code streaming medium content,
When distributing corresponding broadcasting code rate for the adaptive code streaming medium content of the K media renderer plays, according to following rule
Distribution plays code rate:
The sum of the transmission code rate of the adaptive code streaming medium content of N number of media renderer plays after distribution is less than or equal to
The total bandwidth for being used to play N number of adaptive code streaming medium content;
If the sum of first code rate threshold value of the adaptive code streaming medium content of N number of media renderer plays be less than or
Equal to described for playing the total bandwidth of adaptive code streaming medium content, then N number of media renderer plays after distributing
The broadcasting code rate of adaptive code streaming medium content is respectively greater than or is equal to corresponding first code rate threshold value;If N number of matchmaker
The sum of first code rate threshold value of the adaptive code streaming medium content of body player plays be greater than it is described for play it is described it is N number of from
The total bandwidth of code stream media content is adapted to, then the adaptive code streaming medium content of N number of media renderer plays after distributing
Broadcasting code rate be respectively greater than or be equal to corresponding second code rate threshold value;
Second code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is according to every
What the description information of the device capability information of a media player and each adaptive code streaming medium content obtained;Each media are broadcast
It puts the first code rate threshold value corresponding to the adaptive code streaming medium content of device broadcasting and is greater than the second code rate threshold value.
With reference to first aspect, in a third possible implementation of the first aspect, if the M1 described adaptive
The broadcasting code rate of code stream media content is lower than corresponding first code rate threshold value, and M1 < N, then adjusts K media play
The broadcasting code rate for the adaptive code streaming medium content that device plays, including:
If the broadcasting code rate of the M1 adaptive code streaming medium contents is lower than corresponding first code rate threshold value, and
M1 < N then requests media server to improve the service quality of the corresponding data message of the M1 adaptive code streaming medium content
Grade, so that the M1 broadcasting code rate is corresponding lower than the adaptive code streaming medium content of corresponding first code rate threshold value
Data message is preferentially sent in corresponding media player, and makes the broadcasting of the K adaptive code streaming medium content
Code rate is adjusted;Wherein, N=2, K=2.
The third possible implementation with reference to first aspect, in the 4th kind of possible implementation of first aspect
In, the request media server improves described M1 and plays the adaptive code stream that code rate is lower than corresponding first code rate threshold value
After the service quality rating of the corresponding data message of media content, the method also includes:
If the broadcasting code rate of each adaptive code streaming medium content is greater than or equal to corresponding first code rate door
Limit value then requests the media server to restore the corresponding data of adaptive code streaming medium content for being enhanced service quality rating
The service quality rating of message;Or
If the sum of corresponding first code rate threshold value of the N number of adaptive code streaming medium content is greater than described for playing institute
The total bandwidth of N number of adaptive code streaming medium content is stated, then in the adaptive code streaming medium content for not being enhanced service quality rating
The adjustment of broadcasting code rate to equal than when corresponding first code rate threshold value, request the media server recovery to be enhanced Service Quality
Measure the service quality rating of the corresponding data message of adaptive code streaming medium content of grade.
With reference to first aspect, in the fifth possible implementation of the first aspect, the method also includes:
If the broadcasting code rate of N number of adaptive code streaming medium content is below corresponding first code rate threshold value,
Then judge whether the broadcasting code rate of each adaptive code streaming medium content is lower than corresponding second code rate threshold value;Often
Second code rate threshold value corresponding to the adaptive code streaming medium content of a media renderer plays is according to each media play
What the description information of the device capability information of device and each adaptive code streaming medium content obtained;Each media renderer plays
First code rate threshold value corresponding to adaptive code streaming medium content is greater than the second code rate threshold value;
If the broadcasting code rate of the M2 adaptive code streaming medium contents is lower than corresponding second code rate threshold value, and
M2 < N then requests media server to improve described M2 and plays the adaptive code that code rate is lower than corresponding second code rate threshold value
The service quality rating of the corresponding data message of streaming medium content, so that the broadcasting code rate is lower than corresponding second code rate door
The corresponding data message of adaptive code streaming medium content of limit value is preferentially sent in corresponding media player, and makes institute
The broadcasting code rate for stating N number of adaptive code streaming medium content is adjusted;Wherein, N=2.
The 5th kind of possible implementation with reference to first aspect, in the 6th kind of possible implementation of first aspect
In, the request media server improves described M2 and plays the adaptive code stream that code rate is lower than corresponding second code rate threshold value
After the service quality rating of the corresponding data message of media content, the method also includes:
If the broadcasting code rate of each adaptive code streaming medium content is greater than or equal to corresponding second code rate door
Limit value then requests the media server to restore the corresponding data of adaptive code streaming medium content for being enhanced service quality rating
The service quality rating of message;Or
If the sum of corresponding second code rate threshold value of the N number of adaptive code streaming medium content is greater than described for playing institute
The total bandwidth of N number of adaptive code streaming medium content is stated, then in the adaptive code streaming medium content for not being enhanced service quality rating
The adjustment of broadcasting code rate to equal than when corresponding second code rate threshold value, request the media server recovery to be enhanced Service Quality
Measure the service quality rating of the corresponding data message of adaptive code streaming medium content of grade.
Second aspect, a kind of media controller, including:
Information acquisition unit, for obtaining the adaptive code of each media renderer plays in N number of media player respectively
The broadcasting code rate of streaming medium content, N >=2;
Adjustment unit, if the broadcasting code rate for the M1 adaptive code streaming medium contents is lower than corresponding first
Code rate threshold value, and M1 < N, then adjust the broadcasting code rate of the adaptive code streaming medium content of K media renderer plays, and M1≤
K≤N;Wherein, the first code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is basis
The description of the device capability information of each media player and the adaptive code streaming medium content of each media renderer plays is believed
What breath obtained.
In the first possible implementation of the second aspect, the adjustment unit includes:Data Rate Distribution module and tune
Whole trigger module, and/or, the first request module;
The Data Rate Distribution module, if the broadcasting code rate for the M1 adaptive code streaming medium contents is right lower than respectively
The the first code rate threshold value answered, and M1 < N, then according to for play N number of adaptive code streaming medium content total bandwidth and
The description information of each adaptive code streaming medium content is the adaptive code streaming medium content of the K media renderer plays
Distribute corresponding broadcasting code rate;
The adjustment trigger module, for according to the Data Rate Distribution module be the K media renderer plays oneself
The broadcasting code rate for adapting to the distribution of code stream media content sends code rate adjustment order to media server, so that the media services
Device sends the adaptive code streaming medium content that code rate is assigned transmission code rate to the K media player;
First request module, if the broadcasting code rate for the M1 adaptive code streaming medium contents is right lower than respectively
The the first code rate threshold value answered, and M1 < N then request media server to improve the M1 adaptive code streaming medium content corresponding
Data message service quality rating so that described M1 to play code rate adaptive lower than corresponding first code rate threshold value
It answers the corresponding data message of code stream media content to be preferentially sent in corresponding media player, and makes the K a adaptive
The broadcasting code rate of code stream media content is answered to be adjusted;Wherein, N=2, K=2.
In conjunction with the first possible implementation of second aspect, in the second possible implementation, the code rate
Distribution module is according to the total bandwidth and each adaptive code streaming medium content for playing N number of adaptive code streaming medium content
Description information, when being that the adaptive code streaming medium content of the K media renderer plays distributes corresponding broadcasting code rate, according to
Following rule distribution plays code rate:
The sum of the transmission code rate of the adaptive code streaming medium content of N number of media renderer plays after distribution is less than or equal to
The total bandwidth for being used to play N number of adaptive code streaming medium content;
If the sum of first code rate threshold value of the adaptive code streaming medium content of N number of media renderer plays be less than or
Equal to described for playing the total bandwidth of adaptive code streaming medium content, then N number of media renderer plays after distributing
The broadcasting code rate of adaptive code streaming medium content is respectively greater than or is equal to corresponding first code rate threshold value;If N number of matchmaker
The sum of first code rate threshold value of the adaptive code streaming medium content of body player plays be greater than it is described for play it is described it is N number of from
The total bandwidth of code stream media content is adapted to, then the adaptive code streaming medium content of N number of media renderer plays after distributing
Broadcasting code rate be respectively greater than or be equal to corresponding second code rate threshold value;
Second code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is according to every
What the description information of the device capability information of a media player and each adaptive code streaming medium content obtained;Each media are broadcast
It puts the first code rate threshold value corresponding to the adaptive code streaming medium content of device broadcasting and is greater than the second code rate threshold value.
In conjunction with second aspect, in the third possible implementation of the second aspect, the media controller further includes:
Judgment module and the second request module;
The judgment module, if the broadcasting code rate for N number of adaptive code streaming medium content is below respective correspondence
The first code rate threshold value, then it is corresponding to judge whether the broadcasting code rate of each adaptive code streaming medium content is lower than
Second code rate threshold value;Second code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is
It is obtained according to the description information of the device capability information of each media player and each adaptive code streaming medium content;Each
First code rate threshold value corresponding to the adaptive code streaming medium content of media renderer plays is greater than the second code rate threshold value;
Second request module, if judging broadcasting for the M2 adaptive code streaming medium contents for the judgment module
It puts code rate and is lower than corresponding second code rate threshold value, and M2 < N, then media server is requested to improve the M2 broadcasting code
Rate is lower than the service quality rating of the corresponding data message of adaptive code streaming medium content of corresponding second code rate threshold value, with
So that the corresponding data message quilt of adaptive code streaming medium content for playing code rate and being lower than corresponding second code rate threshold value
It is preferentially sent in corresponding media player, and the broadcasting code rate of N number of adaptive code streaming medium content is adjusted;
Wherein, N=2.
In conjunction with the first possible implementation of second aspect or the third possible implementation of second aspect,
In 4th kind of possible implementation of second aspect, the media controller further includes:Grade recovery unit;The grade is extensive
Multiple unit is used for:
The M1 broadcasting code rate, which is improved, in first request module request media server is lower than corresponding first yard
After the service quality rating of the corresponding data message of adaptive code streaming medium content of rate threshold value, if each described adaptive
The broadcasting code rate of code stream media content is greater than or equal to corresponding first code rate threshold value, then requests the media server
Restore the service quality rating for being enhanced the corresponding data message of adaptive code streaming medium content of service quality rating;Or
The M1 broadcasting code rate, which is improved, in first request module request media server is lower than corresponding first yard
After the service quality rating of the corresponding data message of adaptive code streaming medium content of rate threshold value, if N number of described adaptive
The sum of corresponding first code rate threshold value of code stream media content is greater than described for playing N number of adaptive code streaming medium content
Total bandwidth, then in the broadcasting code rate adjustment for the adaptive code streaming medium content for not being enhanced service quality rating to equal than corresponding
The first code rate threshold value when, request media server recovery to be enhanced in the adaptive code Streaming Media of service quality rating
Hold the service quality rating of corresponding data message;Or
The M2 broadcasting code rate, which is improved, in second request module request media server is lower than corresponding second code
After the service quality rating of the corresponding data message of adaptive code streaming medium content of rate threshold value, if each described adaptive
The broadcasting code rate of code stream media content is greater than or equal to corresponding second code rate threshold value, then requests the media server
Restore the service quality rating for being enhanced the corresponding data message of adaptive code streaming medium content of service quality rating;Or
The M2 broadcasting code rate, which is improved, in second request module request media server is lower than corresponding second code
After the service quality rating of the corresponding data message of adaptive code streaming medium content of rate threshold value, if N number of described adaptive
The sum of corresponding second code rate threshold value of code stream media content is greater than described for playing N number of adaptive code streaming medium content
Total bandwidth, then in the broadcasting code rate adjustment for the adaptive code streaming medium content for not being enhanced service quality rating to equal than corresponding
The second code rate threshold value when, request media server recovery to be enhanced in the adaptive code Streaming Media of service quality rating
Hold the service quality rating of corresponding data message.
The third aspect, a kind of network media system, including:Media server, media controller and N number of media player, N
≥2;
The media player for obtaining adaptive code stream media content from the media server, and plays acquisition
Adaptive code streaming medium content;
The media server, for storing adaptive code streaming medium content, and it is adaptive to media player offer
Answer the description information of code stream media content and adaptive code streaming medium content;
The media controller, for obtaining the adaptive of each media renderer plays in N number of media player respectively
The broadcasting code rate of code stream media content;If the broadcasting code rate of the M1 adaptive code streaming medium content is lower than corresponding the
One code rate threshold value, and M1 < N, then adjust the broadcasting code rate of the adaptive code streaming medium content of K media renderer plays, M1
≤K≤N;
The media player, be also used to according to the device capability information of media player and media renderer plays from
The description information for adapting to code stream media content, obtains first corresponding to the adaptive code streaming medium content of media renderer plays
Code rate threshold value.
In the first possible implementation of the third aspect, the media controller is adjusting K media player
When the broadcasting code rate of the adaptive code streaming medium content of broadcasting, it is specifically used for:
The media controller is according to for playing the total bandwidth of N number of adaptive code streaming medium content and each adaptive
The description information of code stream media content is answered, is that the adaptive code streaming medium content of the K media renderer plays distributes correspondence
Broadcasting code rate;
According to the broadcasting code rate of the adaptive code streaming medium content distribution for the K media renderer plays, to described
Media server sends code rate adjustment order, so that it is quilt that the media server, which sends code rate to the K media player,
The adaptive code streaming medium content of the transmission code rate of distribution.
In conjunction with the first possible implementation of the third aspect, in second of possible implementation of the third aspect
In,
The media controller is according to for playing the total bandwidth of N number of adaptive code streaming medium content and each adaptive
The description information of code stream media content is answered, is that the adaptive code streaming medium content of the K media renderer plays distributes correspondence
Broadcasting code rate when, according to it is following rule distribution play code rate:
The sum of the transmission code rate of the adaptive code streaming medium content of N number of media renderer plays after distribution is less than or equal to
The total bandwidth for being used to play N number of adaptive code streaming medium content;
If the sum of first code rate threshold value of the adaptive code streaming medium content of N number of media renderer plays be less than or
Equal to described for playing the total bandwidth of adaptive code streaming medium content, then N number of media renderer plays after distributing
The broadcasting code rate of adaptive code streaming medium content is respectively greater than or is equal to corresponding first code rate threshold value;If N number of matchmaker
The sum of first code rate threshold value of the adaptive code streaming medium content of body player plays be greater than it is described for play it is described it is N number of from
The total bandwidth of code stream media content is adapted to, then the adaptive code streaming medium content of N number of media renderer plays after distributing
Broadcasting code rate be respectively greater than or be equal to corresponding second code rate threshold value;
The media player is also used to device capability information and each adaptive code Streaming Media according to media player
The description information of content obtains the second code rate threshold value corresponding to the adaptive code streaming medium content of media renderer plays;Often
First code rate threshold value corresponding to the adaptive code streaming medium content of a media renderer plays is greater than the second code rate threshold value.
In conjunction with the third aspect, in the third possible implementation of the third aspect, the media controller is in adjustment K
When the broadcasting code rate of the adaptive code streaming medium content of a media renderer plays, it is specifically used for:
If M1 < N, the media controller requests the media server to improve the M1 broadcasting code rate to be lower than pair
The service quality rating of the corresponding data message of adaptive code streaming medium content for the first code rate threshold value answered, so that described
M1 broadcasting code rate is preferential lower than the corresponding data message of adaptive code streaming medium content of corresponding first code rate threshold value
It is sent in corresponding media player, and the broadcasting code rate of the K adaptive code streaming medium content is adjusted;Its
In, N=2, K=2;
If M1=N, the media controller judge each adaptive code streaming medium content broadcasting code rate whether
Lower than corresponding second code rate threshold value;If the broadcasting code rate of the M2 adaptive code streaming medium contents is right lower than respectively
The the second code rate threshold value answered, and M2 < N then request the media server to improve the M2 broadcasting code rate lower than corresponding
The service quality rating of the corresponding data message of adaptive code streaming medium content of second code rate threshold value, so that the broadcasting
Code rate is preferentially sent to pair lower than the corresponding data message of adaptive code streaming medium content of corresponding second code rate threshold value
In the media player answered, and the broadcasting code rate of N number of adaptive code streaming medium content is adjusted;Wherein, N=2;
Second code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is according to every
What the description information of the device capability information of a media player and each adaptive code streaming medium content obtained;Each media are broadcast
It puts the first code rate threshold value corresponding to the adaptive code streaming medium content of device broadcasting and is greater than the second code rate threshold value.
In conjunction with the third possible implementation of the third aspect, in the 4th kind of possible implementation of the third aspect
In,
The media controller improves the M1 broadcasting code rate in the request media server and is lower than corresponding first
After the service quality rating of the corresponding data message of adaptive code streaming medium content of code rate threshold value, it is also used to:
If the broadcasting code rate of each adaptive code streaming medium content is greater than or equal to corresponding first code rate door
Limit value, then the media controller requests the media server to restore the adaptive code Streaming Media for being enhanced service quality rating
The service quality rating of the corresponding data message of content;Alternatively, if N number of adaptive code streaming medium content is first yard corresponding
The sum of rate threshold value is greater than the total bandwidth for being used to play N number of adaptive code streaming medium content, then be not enhanced clothes
When the broadcasting code rate adjustment of the adaptive code streaming medium content for credit rating of being engaged in equal than corresponding first code rate threshold value, request
The media server restores the service for being enhanced the corresponding data message of adaptive code streaming medium content of service quality rating
Credit rating;
The media controller improves the M2 broadcasting code rate in the request media server and is lower than corresponding second
After the service quality rating of the corresponding data message of adaptive code streaming medium content of code rate threshold value, it is also used to:
If the broadcasting code rate of each adaptive code streaming medium content is greater than or equal to corresponding second code rate door
Limit value then requests the media server to restore the corresponding data of adaptive code streaming medium content for being enhanced service quality rating
The service quality rating of message;Alternatively, if the sum of corresponding second code rate threshold value of N number of adaptive code streaming medium content is big
In described for playing the total bandwidth of N number of adaptive code streaming medium content, then be not enhanced service quality rating from
When adapting to the adjustment of broadcasting code rate to equal than corresponding second code rate threshold value of code stream media content, the media server is requested
Restore the service quality rating for being enhanced the corresponding data message of adaptive code streaming medium content of service quality rating.
Fourth aspect, a kind of media controller, including:
One or more processors;
Memory;
One or more programs, wherein one or more of programs are stored in the memory and are configured as by institute
One or more processors execution is stated, one or more of programs include:
The broadcasting code of the adaptive code streaming medium content of each media renderer plays in N number of media player is obtained respectively
The instruction of rate, N >=2;
If the broadcasting code rate of the M1 adaptive code streaming medium contents is lower than corresponding first code rate threshold value, and
M1 < N then adjusts the instruction of the broadcasting code rate of the adaptive code streaming medium content of K media renderer plays, M1≤K≤N;Its
In, the first code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is according to each media
What the description information of the device capability information of player and the adaptive code streaming medium content of each media renderer plays obtained.
In the first possible implementation of the fourth aspect, if the M1 adaptive code streaming medium content
It plays code rate and is lower than corresponding first code rate threshold value, and M1 < N, then adjust the adaptive of K media renderer plays
The instruction of the broadcasting code rate of code stream media content, including:
If the broadcasting code rate of the M1 adaptive code streaming medium contents is lower than corresponding first code rate threshold value, and
M1 < N, then according to the total bandwidth and each adaptive code streaming medium content for being used to play N number of adaptive code streaming medium content
Description information, for the K media renderer plays adaptive code streaming medium content distribute it is corresponding broadcasting code rate finger
It enables;
According to the broadcasting code rate of the adaptive code streaming medium content distribution for the K media renderer plays, to media
Server sends code rate adjustment order, so that it is assigned that the media server, which sends code rate to the K media player,
Transmission code rate adaptive code streaming medium content instruction.
In conjunction with the first possible implementation of fourth aspect, in the second possible implementation, the basis
For playing the total bandwidth of N number of adaptive code streaming medium content and the description information of each adaptive code streaming medium content,
When distributing corresponding broadcasting code rate for the adaptive code streaming medium content of the K media renderer plays, according to following rule
Distribution plays code rate:
The sum of the transmission code rate of the adaptive code streaming medium content of N number of media renderer plays after distribution is less than or equal to
The total bandwidth for being used to play N number of adaptive code streaming medium content;
If the sum of first code rate threshold value of the adaptive code streaming medium content of N number of media renderer plays be less than or
Equal to described for playing the total bandwidth of adaptive code streaming medium content, then N number of media renderer plays after distributing
The broadcasting code rate of adaptive code streaming medium content is respectively greater than or is equal to corresponding first code rate threshold value;If N number of matchmaker
The sum of first code rate threshold value of the adaptive code streaming medium content of body player plays be greater than it is described for play it is described it is N number of from
The total bandwidth of code stream media content is adapted to, then the adaptive code streaming medium content of N number of media renderer plays after distributing
Broadcasting code rate be respectively greater than or be equal to corresponding second code rate threshold value;
Second code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is according to every
What the description information of the device capability information of a media player and each adaptive code streaming medium content obtained;Each media are broadcast
It puts the first code rate threshold value corresponding to the adaptive code streaming medium content of device broadcasting and is greater than the second code rate threshold value.
In conjunction with fourth aspect, in the third possible implementation of the fourth aspect, if the M1 described adaptive
The broadcasting code rate of code stream media content is lower than corresponding first code rate threshold value, and M1 < N, then adjusts K media play
The instruction of the broadcasting code rate for the adaptive code streaming medium content that device plays, including:
If the broadcasting code rate of the M1 adaptive code streaming medium contents is lower than corresponding first code rate threshold value, and
M1 < N then requests media server to improve the service quality of the corresponding data message of the M1 adaptive code streaming medium content
Grade, so that the M1 broadcasting code rate is corresponding lower than the adaptive code streaming medium content of corresponding first code rate threshold value
Data message is preferentially sent in corresponding media player, and makes the broadcasting of the K adaptive code streaming medium content
The instruction that code rate is adjusted;Wherein, N=2, K=2.
In conjunction with the third possible implementation of fourth aspect, in the 4th kind of possible implementation of fourth aspect
In, one or more of programs further include:
It is adaptive lower than corresponding first code rate threshold value that the M1 broadcasting code rate is improved in request media server
After the service quality rating of the corresponding data message of code stream media content, if each adaptive code streaming medium content is broadcast
Code rate is put more than or equal to corresponding first code rate threshold value, then the media server recovery is requested to be enhanced Service Quality
Measure the quality of the service quality rating of the corresponding data message of adaptive code streaming medium content of grade;Or
It is adaptive lower than corresponding first code rate threshold value that the M1 broadcasting code rate is improved in request media server
After the service quality rating of the corresponding data message of code stream media content, if N number of adaptive code streaming medium content is corresponding
The sum of the first code rate threshold value be greater than it is described for playing the total bandwidth of N number of adaptive code streaming medium content, then not
The broadcasting code rate for being enhanced the adaptive code streaming medium content of service quality rating adjusts to equal than corresponding first code rate thresholding
When value, the media server is requested to restore the corresponding datagram of adaptive code streaming medium content for being enhanced service quality rating
The instruction of the service quality rating of text.
In conjunction with fourth aspect, in the 5th kind of possible implementation of fourth aspect, one or more of programs are also
Including:
If the broadcasting code rate of N number of adaptive code streaming medium content is below corresponding first code rate threshold value,
Then judge whether the broadcasting code rate of each adaptive code streaming medium content is lower than corresponding second code rate threshold value
Instruction;Second code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is according to each matchmaker
What the description information of the device capability information of body player and each adaptive code streaming medium content obtained;Each media player
First code rate threshold value corresponding to the adaptive code streaming medium content of broadcasting is greater than the second code rate threshold value;
If the broadcasting code rate of the M2 adaptive code streaming medium contents is lower than corresponding second code rate threshold value, and
M2 < N then requests media server to improve described M2 and plays the adaptive code that code rate is lower than corresponding second code rate threshold value
The service quality rating of the corresponding data message of streaming medium content, so that the broadcasting code rate is lower than corresponding second code rate door
The corresponding data message of adaptive code streaming medium content of limit value is preferentially sent in corresponding media player, and makes institute
State the instruction that the broadcasting code rate of N number of adaptive code streaming medium content is adjusted;Wherein, N=2.
In conjunction with the 5th kind of possible implementation of fourth aspect, in the 6th kind of possible implementation of fourth aspect
In, one or more of programs further include:
It is adaptive lower than corresponding second code rate threshold value that the M2 broadcasting code rate is improved in request media server
After the service quality rating of the corresponding data message of code stream media content, if each adaptive code streaming medium content is broadcast
Code rate is put more than or equal to corresponding second code rate threshold value, then the media server recovery is requested to be enhanced Service Quality
Measure the instruction of the service quality rating of the corresponding data message of adaptive code streaming medium content of grade;Or
It is adaptive lower than corresponding second code rate threshold value that the M2 broadcasting code rate is improved in request media server
After the service quality rating of the corresponding data message of code stream media content, if N number of adaptive code streaming medium content is corresponding
The sum of the second code rate threshold value be greater than it is described for playing the total bandwidth of N number of adaptive code streaming medium content, then not
The broadcasting code rate for being enhanced the adaptive code streaming medium content of service quality rating adjusts to equal than corresponding second code rate thresholding
When value, the media server is requested to restore the corresponding datagram of adaptive code streaming medium content for being enhanced service quality rating
The instruction of the service quality rating of text.
The embodiment of the present invention, the adaptive code streaming medium content of the available each media renderer plays of media controller
Broadcasting code rate, when the adaptive code streaming medium content for having part of media player plays broadcasting code rate be lower than corresponding code rate
When threshold value, the broadcasting code rate of the adaptive code streaming medium content of the adjustable multiple media renderer plays of media controller,
So as to realize fair broadcasting, user experience is improved.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
When the embodiment of the present invention refers to the ordinal numbers such as " first ", " second ", unless based on context its express really it is suitable
The meaning of sequence, it should be understood that only play differentiation and be used.
Fig. 1 is a kind of flow chart of method for playing multiple adaptive code streaming medium contents of the embodiment of the present invention, such as Fig. 1
Shown, this method includes:
Step 101, media controller obtain the adaptive code of each media renderer plays in N number of media player respectively
The broadcasting code rate of streaming medium content, N >=2.
The present embodiment can be applied in a network media system, may include media services in the network media system
Device, media controller and multiple media players.
Media server is provided for storing media file, such as adaptive code streaming medium content, and to media player
The description information of adaptive code streaming medium content and adaptive code streaming medium content.Common media server can for mobile phone,
Personal computer, digital camera, tablet computer etc. can generate, store the network equipment of the media files such as photo, video.When
When the media content of media renderer plays is DASH media content, media server has storage DASH media content institute right
Answer the fragment data of media file collection and the function of corresponding MPD file.
Media player can be decoded to image file and show or play image, such as obtain from media server
Adaptive code stream media content is taken, and plays the adaptive code streaming medium content of acquisition.Media play in the embodiment of the present invention
Device can be for example TV, personal computer, mobile phone, tablet computer etc..Media player can real time monitoring network bandwidth, should
The indexs such as the CPU processing capacity of media player, and asked according to the MPD file of the result and acquisition that monitor to media server
Seek the media slicing for being suitble to broadcasting.
Media controller can call the concerned control command on media server and media player to media content
Transmission and displaying are controlled.Media controller can also obtain the status information of media player and media player is played
Media content status information.It should be noted that media controller, which can be one, is different from media server and media
The physical equipment of player can also collectively constitute a physical equipment with media server or media player.
The adaptive media content of each media renderer plays has certain code rate.Media controller is available to be arrived
The code rate of the adaptive media content of each media renderer plays.
If the broadcasting code rate of step 102, M1 adaptive code streaming medium content is lower than corresponding first code rate thresholding
Value, and M1 < N, then media controller adjusts the broadcasting code rate of the adaptive code streaming medium content of K media renderer plays, M1
≤K≤N。
Wherein, the first code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays can be with
It is the adaptive code streaming medium content of the device capability information according to each media player and each media renderer plays
What description information obtained.First code rate threshold value can be media player and be obtained according to device capability information and description information
's.
The device capability information of media player may include the screen size of the media player, resolution sizes, can
Audio/video encoding/decoding format of support etc..It may include that the media content is corresponding in the description information of adaptive code streaming medium content
Multiple code rate informations.The file of multiple and different code rates of the same media content is stored on media server, in media
It include the information of these code rates in the description information of appearance.When the same media content plays in different media players, by
It is different in the capacity of equipment of each media player, so in order to reach identical effect, required code rate may be different;Example
Such as:The same film can reach preferable result of broadcast when playing on mobile phone, using relatively low code rate, and in electricity
When playing depending on, need to can be only achieved preferable result of broadcast using relatively high code rate.That is, in the same media
When appearance plays in different media players, in order to reach identical effect, required code rate may be different.
It can be according to the device capability information of each media player and the adaptive code stream of each media renderer plays
The description information of media content obtains the first code rate corresponding to the adaptive code streaming medium content of each media renderer plays
Threshold value.Such as:Player A1 plays adaptive code streaming medium content a1, according to the device capability information of player A1 and adaptive
The description information for answering code stream media content a1 obtains the first code rate door when player A1 plays adaptive code streaming medium content a1
Limit value.First code rate threshold value of the different adaptive code streaming medium content of the same media renderer plays can be different;Example
Such as:Multiple code rate informations that adaptive code streaming medium content a1 and a2 has are different, the code rate of media content a1 have 2.2Mbps,
1.6Mbps, 1.2Mbps, 800Kbps, 400Kbps, 200Kbps, the code rate of media content a2 have 1.1Mbps, 800Kbps,
500Kbps,200Kbps;If needing the code rate of media content to be greater than or wait to reach preferable effect on player A1
In 1.2Mbps, then, when player A1 plays media content a1, the first code rate threshold value is 1.2Mbps, but for matchmaker
Holding a2 in vivo, maximum code rate only has 1.1Mbps, so when player A1 plays media content a2, the first code rate threshold value
For 1.1Mbps.First code rate threshold value of the same adaptive code streaming medium content of different media renderer plays can also be with
It is different;Such as:Since the screen size of mobile phone and TV, resolution sizes are different, so the same adaptive code Streaming Media
Respectively when playing on mobile phone and TV, the first code rate threshold value is different content.
When the adaptive code streaming medium content that media controller gets part of media player plays is corresponding lower than respectively
The first code rate threshold value when, the adaptive code streaming medium content of media controller adjustment member or total medium player plays
Broadcasting code rate.
The mode that media controller adjusts the broadcasting code rate of the adaptive code streaming medium content of media renderer plays can be with
Including:(1) media controller is according to the total bandwidth and each adaptive code stream matchmaker for being used to play N number of adaptive code streaming medium content
The description information held in vivo is that the adaptive code streaming medium content of each media renderer plays distributes corresponding broadcasting code rate,
And code rate adjustment order is sent to media server, so that it is assigned that media server, which sends code rate to each media player,
Transmission code rate adaptive code streaming medium content;Alternatively, the adjustable played adaptive code stream matchmaker of (2) media controller
The service quality rating held in vivo, after the service quality rating of some adaptive code streaming medium content is raised, according to adaptive
The characteristic of code stream itself is answered, the code rate of the adaptive code streaming medium content can be enhanced.
The embodiment of the present invention, the adaptive code streaming medium content of the available each media renderer plays of media controller
Broadcasting code rate, when the adaptive code streaming medium content for having part of media player plays broadcasting code rate be lower than corresponding code rate
When threshold value, the broadcasting code rate of the adaptive code streaming medium content of the adjustable multiple media renderer plays of media controller,
So as to realize fair broadcasting, user experience is improved.
Fig. 2 is the flow chart that the another kind of the embodiment of the present invention plays the method for multiple adaptive code streaming medium contents,
On the basis of embodiment illustrated in fig. 1, as shown in Fig. 2, this method includes:
Step 201, media controller obtain the adaptive code of each media renderer plays in N number of media player respectively
The broadcasting code rate of streaming medium content, N >=2.
The number of media player in the network media system in broadcast state is N, i.e., in the network media system
Including N number of media player for being playing self-adaption code rate media content.
Media controller get the adaptive code streaming medium content of each media renderer plays broadcasting code rate it
Afterwards, if the broadcasting code rate of M1 adaptive code streaming medium content is lower than corresponding first code rate threshold value, and M1 < N, then
The broadcasting code rate of the adaptive code streaming medium content of the adjustable K media renderer plays of media controller, M1≤K≤N;Under
Process in face of adjustment illustrates.
If the broadcasting code rate of step 202, M1 adaptive code streaming medium content is lower than corresponding first code rate thresholding
Value, and M1 < N, then media controller is according to the total bandwidth for being used to play N number of adaptive code streaming medium content and each adaptive
The description information of code stream media content is that the adaptive code streaming medium content of K media renderer plays distributes corresponding broadcasting
Code rate.
Wherein, the first code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is root
According to the description of the adaptive code streaming medium content of the device capability information and each media renderer plays of each media player
What information obtained.Wherein, when the broadcasting code rate of some media renderer plays some adaptive code streaming medium content is greater than or waits
When corresponding first code rate threshold value, the result of broadcast of the media renderer plays adaptive code streaming medium content is preferable.
Such as:Adaptive code streaming medium content a1 is corresponding with the file that code rate is respectively f0, f1, f2, f3, wherein f0, f1, f2, f3
Code rate value successively increases;When player A1 plays adaptive code streaming medium content a1, to reach preferable effect, adaptive code
The minimum f1 of the code rate of streaming medium content a1, i.e., when player A1 plays adaptive code streaming medium content a1, the first code rate door
Limit value is f1;When player A2 plays adaptive code streaming medium content a1, to reach preferable effect, adaptive code Streaming Media
The minimum f2 of the code rate of content a1, i.e., when player A2 plays adaptive code streaming medium content a1, the first code rate threshold value is
f2;Because the capacity of equipment of player A1 and player A2 is different, above-mentioned two first code rate threshold value is different.
It should be noted that the first code rate threshold value can be obtained in real time by media controller, can also be stored in advance
In record sheet, table look-up to obtain by media controller.
The adaptive code streaming medium content for getting part of media player plays broadcasting code rate lower than corresponding the
When one code rate threshold value, media controller can be according to total bandwidth for playing adaptive code streaming medium content and each adaptive
The description information of code stream media content is answered, distributes corresponding broadcast for the adaptive code streaming medium content of each media renderer plays
Code rate is put, so that the adaptive code streaming medium content of each media renderer plays can reach preferable result of broadcast.
In a particular embodiment, media controller is according to total band for playing N number of adaptive code streaming medium content
The description information of wide and each adaptive code streaming medium content is the adaptive code streaming medium content of each media renderer plays
When distributing corresponding broadcasting code rate, code rate is played according to following regular one and two distribution of rule:
The sum of the transmission code rate of adaptive code streaming medium content of N number of media renderer plays after regulation one, distribution is small
In or equal to the total bandwidth for being used to play N number of adaptive code streaming medium content.
In a network media system, the total bandwidth for playing adaptive code streaming medium content is certain, so point
The sum of transmission code rate of adaptive code streaming medium content with rear each media renderer plays cannot be greater than above-mentioned total bandwidth.
If the sum of the first code rate threshold value of adaptive code streaming medium content of regulation two, N number of media renderer plays is small
In or equal to described for playing the total bandwidth of adaptive code streaming medium content, then N number of media renderer plays after distributing
The broadcasting code rate of adaptive code streaming medium content is respectively greater than or is equal to corresponding first code rate threshold value;If N number of media are broadcast
The sum of the first code rate threshold value of adaptive code streaming medium content for putting device broadcasting is greater than described described N number of adaptive for playing
The total bandwidth of code stream media content, then the broadcasting code of the adaptive code streaming medium content of N number of media renderer plays after distributing
Rate is respectively greater than or is equal to corresponding second code rate threshold value.
Wherein, the second code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is root
It is obtained according to the device capability information of each media player and the description information of each adaptive code streaming medium content;Each matchmaker
First code rate threshold value corresponding to the adaptive code streaming medium content of body player plays is greater than the second code rate threshold value.
It should be noted that the first code rate threshold value refers to:In order to reach preferable result of broadcast, media player is broadcast
Code rate needed for the adaptive code streaming medium content put;Second code rate threshold value refers to:When the first code rate threshold value can not expire
When sufficient, in order to achieve the effect that the result of broadcast (poorer than the first code rate threshold value) that can be watched, media renderer plays from
Code rate needed for adapting to code stream media content.
Further, preferable in order to reach when there are many allocation plan under the premise of meeting rule one and rule two
Effect, can choose the maximum one kind of the sum of transmission code rate of adaptive code streaming medium content of N number of media renderer plays
Allocation plan.
Step 203, media controller are according to the adaptive code streaming medium content distribution for each media renderer plays
Code rate is played, code rate adjustment order is sent to media server, so that the media server is to each media player
Send the adaptive code streaming medium content that code rate is assigned transmission code rate.
After step 204, media server receive the code rate adjustment order of media controller transmission, to each media play
Device sends the adaptive code streaming medium content that code rate is the transmission code rate distributed by media controller.
The embodiment of the present invention, the adaptive code streaming medium content of the available each media renderer plays of media controller
Broadcasting code rate, when the adaptive code streaming medium content for having part of media player plays broadcasting code rate be lower than corresponding code rate
When threshold value, the broadcasting code rate of the adaptive code streaming medium content of the adjustable multiple media renderer plays of media controller;
Specifically, media controller can be each media player according to total bandwidth, the description information of adaptive code streaming medium content
The adaptive code streaming medium content distribution of broadcasting is suitable to play code rate, so as to realize fair broadcasting, improves user experience.
Another adjustment mode is illustrated below by Fig. 3 the embodiment described.
Fig. 3 is the flow chart that the another kind of the embodiment of the present invention plays the method for multiple adaptive code streaming medium contents,
On the basis of embodiment illustrated in fig. 1, as shown in figure 3, this method includes:
Step 301, media controller obtain the adaptive code of each media renderer plays in N number of media player respectively
The broadcasting code rate of streaming medium content, N >=2;If the broadcasting code rate of the M1 adaptive code streaming medium contents is corresponding lower than respectively
The first code rate threshold value, and M1 < N thens follow the steps 302;If the broadcasting code rate of the M1 adaptive code streaming medium contents
Lower than corresponding first code rate threshold value, and M1=N, then follow the steps 306.
The number of media player in the network media system in broadcast state is N, i.e., in the network media system
Including N number of media player for being playing self-adaption code rate media content.
Media controller get the adaptive code streaming medium content of each media renderer plays broadcasting code rate it
Afterwards, if the broadcasting code rate of M1 adaptive code streaming medium content is lower than corresponding first code rate threshold value, and M1≤N, then media
The broadcasting code rate of the adaptive code streaming medium content of the adjustable K media renderer plays of controller, K≤N;Below to adjustment
Process illustrate.
Step 302, media controller request media server improve the M1 broadcasting code rate and are lower than corresponding first yard
The service quality rating of the corresponding data message of adaptive code streaming medium content of rate threshold value, so that the M1 broadcasting code
Rate is preferentially sent to correspondence lower than the corresponding data message of adaptive code streaming medium content of corresponding first code rate threshold value
Media player in, and the broadcasting code rate of the K adaptive code streaming medium content is adjusted.
When media server data message corresponding to multiple media players transmission adaptive code streaming medium content, matchmaker
Body server can be sent datagram by gateway to media player;Gateway is forwarding datagram to multiple media players
Wen Shi can preferentially forward service quality (Quality of Service, QoS) high data message of grade.As a result, when media control
Device request media server processed improves the adaptive code streaming medium content of some media player (such as media player A) broadcasting
After the QoS grade of corresponding data message, gateway can preferentially forward the data message, and be sent to other media players
Data message will cause a degree of obstruction, other media players is caused to think that network bandwidth is inadequate, according to DASH technology
Strategy, other media players from trend media server request compared with low bit- rate data message, the network bandwidth saved out
The data message that application high code rate can be gone for media player A, so that multiple adaptive code streaming medium contents are broadcast
Putting code rate can be adjusted.
N=2 in a certain specific embodiment, in the present embodiment.
It should be noted that improving the QoS grade of the corresponding data message of the M1 adaptive code streaming medium content, phase
When in the QoS grade for reducing the corresponding data message of other adaptive code streaming medium contents.As a result, in a specific embodiment,
It can be improved in step 302 by the QoS grade of the corresponding data message of the other adaptive code streaming medium contents of reduction to realize
The QoS grade of the corresponding data message of the M1 adaptive code streaming medium content.
It after step 302, can also include step 303.
Step 303, media controller obtain the broadcasting code rate of each adaptive code streaming medium content;If each adaptive code
The broadcasting code rate of streaming medium content is greater than or equal to corresponding first code rate threshold value, thens follow the steps 304;If N number of adaptive
The sum of corresponding first code rate threshold value of code stream media content is greater than total band for playing N number of adaptive code streaming medium content
Width thens follow the steps 305.
Step 304, media controller request media server restore the adaptive code stream matchmaker for being enhanced service quality rating
Hold the service quality rating of corresponding data message in vivo, terminates, alternatively, repeating step 301.
After the QoS grade of media controller adjustment data message, if the broadcasting of each adaptive code streaming medium content
Code rate is all larger than or is equal to corresponding first code rate threshold value, then can stop adjusting;After the QoS grade of adjustment is resumed,
The QoS grade of all data messages is identical, and gateway is according to received sequencing forwarding data packets at this time, thus each adaptive
Answering the broadcasting code rate of code stream media content will not continue to be adjusted.
Step 305, media controller the adaptive code streaming medium content for not being enhanced service quality rating broadcasting code
When rate adjustment to equal than corresponding first code rate threshold value, the media server recovery is requested to be enhanced service quality rating
The service quality rating of the corresponding data message of adaptive code streaming medium content.
If the sum of corresponding first code rate threshold value of N number of adaptive code streaming medium content is greater than N number of adaptive for playing
The total bandwidth of code stream media content, then the broadcasting code rate that can not be adjusted to each adaptive code streaming medium content are all larger than or are equal to
Corresponding first code rate threshold value.In this case, when the broadcasting code rate of the good adaptive code streaming medium content of script result of broadcast
When being adjusted to corresponding first code rate threshold value, stop adjustment.Wherein, it is not enhanced the adaptive code Streaming Media of QoS grade
Content is the good adaptive code streaming medium content of script result of broadcast, that is, the broadcasting code rate before adjustment is greater than or is equal to
The adaptive code streaming medium content of corresponding first code rate threshold value.
After step 305, can terminate, alternatively, repeating step 301.
It is respectively right that step 306, media controller judge whether the broadcasting code rate of each adaptive code streaming medium content is lower than
The the second code rate threshold value answered;If the broadcasting code rate of M2 adaptive code streaming medium content is lower than corresponding second code rate thresholding
Value, and M2 < N, then follow the steps 307.Wherein, M1 and M2 may be the same or different.In a certain specific embodiment,
N=2 in the present embodiment.
Step 307, media controller request media server improve the M2 broadcasting code rate and are lower than corresponding second code
The service quality rating of the corresponding data message of adaptive code streaming medium content of rate threshold value, so that the broadcasting code rate is low
Corresponding matchmaker is preferentially sent in the corresponding data message of adaptive code streaming medium content of corresponding second code rate threshold value
In body player, and the broadcasting code rate of the K adaptive code streaming medium content is adjusted.
Step 308, media controller obtain the broadcasting code rate of each adaptive code streaming medium content;If each described adaptive
It answers the broadcasting code rate of code stream media content to be greater than or equal to corresponding second code rate threshold value, thens follow the steps 309;If N number of institute
The sum of corresponding second code rate threshold value of adaptive code streaming medium content is stated greater than described for playing N number of adaptive code stream
The total bandwidth of media content, thens follow the steps 310.
Step 309, media controller request the media server to restore the adaptive code for being enhanced service quality rating
The service quality rating of the corresponding data message of streaming medium content terminates, alternatively, repeating step 306.
Step 310, media controller the adaptive code streaming medium content for not being enhanced service quality rating broadcasting code
When rate adjustment to equal than corresponding second code rate threshold value, the media server recovery is requested to be enhanced service quality rating
The service quality rating of the corresponding data message of adaptive code streaming medium content.
It should be noted that the adjustment process class of the adjustment process of step 307- step 310 and step 302- step 305
Seemingly, difference is as the code rate threshold value difference for judging benchmark.
The embodiment of the present invention, the adaptive code streaming medium content of the available each media renderer plays of media controller
Broadcasting code rate, when the adaptive code streaming medium content for having part or all of media renderer plays broadcasting code rate lower than correspond to
Code rate threshold value when, the broadcasting of the adaptive code streaming medium content of the adjustable multiple media renderer plays of media controller
Code rate;Specifically, media controller can by the QoS grade of the data message of partial adjustment adaptive code streaming medium content,
It adjusts the broadcasting code rate of adaptive code streaming medium content, so as to realize fair broadcasting, improves user experience.
Below with reference to Fig. 4 and Fig. 5, the embodiment of the present invention is illustrated.
Fig. 4 is the flow chart that the another kind of the embodiment of the present invention plays the method for multiple adaptive code streaming medium contents, this
Embodiment is illustrated by taking N=2 as an example, as shown in figure 4, this method includes:
Step 401, digital media player DMR1 (Digital Media Renderer) are to digital media server
(Digital Media Server, DMS) obtains the media data of adaptive code stream media content Media#1, and on DMR1
It plays.
DMS, digital media controller DMC, 2 digital media players DMR1 and DMR2 belong to same in network system
In one subnet, these equipment can interconnect, and all data messages that above equipment is sent and received require
By gateway forwards, i.e. pass through gateway data message transmission between DMS and DMR.
DMR1 establishes media transmission session request to DMS initiation, and receive DMS issue DMR1 about to be played from
Display advertising description corresponding to adaptation code stream media content Media#1 (Media Presentation Description,
MPD) file, MPD file are the media data.After DMR1 receives the MPD file of media content Media#1, according to biography
The processing method of system adaptive code Streaming Media, assesses current wideband condition, selects to be suitble to current network in MPD file
Media file corresponding to the code rate of situation transmission, and request the code rate to correspond to the fragment data of media file to DMS, DMS will
Requested fragment data is sent to DMR1, and plays on DMR1.The fragment data is equivalent in above-described embodiment
Data message;MPD file is equivalent to the media content description information in above-described embodiment.
Step 402, DMR2 obtain the media data of adaptive code stream media content Media#2 to DMS, and broadcast on DMR2
It puts.
Step 402 is similar with the process of step 401, and does not limit the sequencing of step 401 and step 402.
Step 403, digital media controller (Digital Media Controller, DMC) are issued to DMS and are requested, from
DMS obtains the MPD file of media content Media#1 and the MPD file of Media#2 respectively.
Step 404, DMR1 and DMR2 are according to the device capability information of respective player and the media content played
The description information of Media#1 and Media#2 calculates the code rate threshold value of respective media renderer plays media content, and will
The code rate threshold value reports to DMC.
The present embodiment does not limit the sequencing of step 403 and step 404 yet.
Wherein, device capability information may include the screen resolution information of player.If the adaptive code stream played
The code rate of media content is at or above corresponding code rate threshold value, then illustrates that adaptive code streaming medium content is suitble in correspondence
Player on play, and preferable visual experience effect can be obtained.Such as:Network system Zhong Youliangtai Digital Media is broadcast
Device DMR1 and DMR2 are put, plays adaptive code streaming medium content movie A and movie K respectively.Wherein, DMR1 is an intelligence
Mobile phone, screen resolution are that 800 × 600, DMR2 is a high definition television, and screen resolution is 1920 × 1080;movie
The description information of A be movie A provided by code stream fragment code rate have 2.2Mbps, 1.6Mbps, 1.2Mbps, 800Kbps,
400Kbps, 200Kbps, the description information of movie K be code stream fragment provided by movie K code rate have 1.8Mbps,
1.5Mbps,1.1Mbps,800Kbps,500Kbps,200Kbps.According to the screen of two media players of DMR1 and DMR2 point
Resolution, the media content description information of two adaptive code streaming medium content movie A and movie K, can calculate DMR1
Code rate threshold value when playing movie A is 800Kbps, code rate threshold value 1.5Mbps of the DMR2 when playing movie K,
And these threshold values are reported to DMC.Specifically, can be according to code rates different in description information and media content screen resolution
Corresponding relationship, obtain code rate threshold value.
Code rate threshold value in the present embodiment is equivalent to the first code rate threshold value in above-described embodiment.
Step 405, DMC obtain the broadcasting code rate of the media content played in DMR1 and DMR2, and judge DMR1 and DMR2
Whether the broadcasting code rate of the media content of middle broadcasting is less than corresponding code rate threshold value, if the media played in some player
The broadcasting code rate of content is less than corresponding code rate threshold value, thens follow the steps 406.
Step 406, DMC are calculated according to total bandwidth, the description information of media content and code rate threshold value for broadcasting
To the optimal allocation code rate of the played adaptive code streaming medium content of two media players.
The concrete operation step of calculating can be:DMC is played in media respectively according to two media player DMR1 and DMR2
Hold code rate threshold value when movie A and movie K, movie A is extracted from the MPD file of media content movieA in DMR1
Code rate near the code rate threshold value of middle broadcasting extracts movie K in DMR2 from the MPD file of media content movie K
Code rate near the code rate threshold value of broadcasting carries out permutation and combination, constitutes all possible schemes.Then according to original listed below
It is then screened, to calculate best code rate allocation plan.Specific screening principle is as follows:
(1) the sum of the code rate of the adaptive code streaming medium content of two media renderer plays, which is not greater than, after adjusting is used for
The total bandwidth of broadcasting;
(2) after the condition that meets (1), the code rate of the adaptive code streaming medium content of two media renderer plays after adjustment
More than or equal to the code rate threshold value of corresponding player;
(3) it after the condition that meets (1) and (2), takes after adjusting in the adaptive code Streaming Media of two media renderer plays
The highest component formula case of the sum of code rate of appearance.
Such as:In the present embodiment, the code rate of selected movie A is 1.2Mbps and 800Kbps, selected
The code rate of movie K is 1.8Mbps and 1.5Mbps.After by permutation and combination and meeting condition (1) and (2), there are following 3 kinds
Allocation plan:
<1>movie A:1.2Mbps;movie K:1.5Mbps;
<2>movie A:800Kbps;movie K:1.8Mbps;
<3>movie A:800Kbps;movie K:1.5Mbps;
Then according to condition (3), obtaining optimal allocation plan is movie A:1.2Mbps, movie K:
1.5Mbps。
Step 407, the optimum distributing scheme calculated according to DMC, DMC is issued to DMS and is requested, so that DMS is according to most
Code rate in good allocation plan distributes the code stream fragment of adaptive code streaming medium content to DMR1 and DMR2.
The embodiment of the present invention, each media player can be by the screen resolution informations of player, played adaptive code
The description information of streaming medium content and the code rate threshold value of player are reported to DMC, and DMC calculates optimal according to above- mentioned information
Data Rate Distribution scheme, and issued and requested to DMS according to the program, request DMS sends optimal code rates point to each media player
Media code stream with code rate shown in scheme improves user experience so as to realize fair broadcasting.
Fig. 5 is the flow chart that the another kind of the embodiment of the present invention plays the method for multiple adaptive code streaming medium contents, this
Embodiment is illustrated by taking N=2 as an example, as shown in figure 5, this method includes:
Step 501, DMR1 obtain the media data of adaptive code stream media content Media#1 to DMS, and broadcast on DMR1
It puts.
Step 502, DMR2 obtain the media data of adaptive code stream media content Media#2 to DMS, and broadcast on DMR2
It puts.
Step 501 is identical as step 401, the step 402 in embodiment illustrated in fig. 4 as step 502.
Step 503, DMC obtain the device capability information of DMR1.
DMC calls AVT to DMR1::GetDeviceCapabilities () order, notice DMR1 return to setting for its equipment
Standby ability information.DMR1 sends response message according to the request command of MDMC, contains the capacity of equipment of DMR1 in response message
Information may include screen size, resolution sizes, supported audio/video encoding/decoding format of equipment etc..
Step 504, DMC obtain the device capability information of DMR2.
Step 504 is similar with step 503, and the present embodiment does not limit the sequencing of step 503 and step 504.
Step 505, DMC obtain the status information of the played media content of DMR1 and DMR2 respectively.
DMC calls AVT to DMR1 and DMR2 respectively::GetTransportInfo () order, notifies DMR1 and DMR2 to return
The status information of played media content in its equipment.DMR1 and DMR2 sends response message, response according to the request command of DMC
The current broadcast state information of media Media#1 and Media#2 that DMR1 and DMR2 are played is contained in message, may include
The information such as title, media formats, the transmission code rate of played media.
It should be noted that step 505 can be before step 503, it can also be after the step 503.
Step 506, DMR1 and DMR2 are according to the device capability information of respective player, the adaptive code Streaming Media played
The description information and broadcast state information of content calculate the of respective media renderer plays adaptive code streaming medium content
One code rate threshold value (ideal play code rate) and the second code rate threshold value (code rate of tolerance broadcasting), and by the first code rate door
Limit value and the second code rate threshold value report to DMC.
In the present embodiment, it if having two digital media players DMR1 and DMR2 in home network, plays respectively adaptive
Answer code stream media content movie A and movie K.Wherein, DMR1 be a smart phone, screen resolution be 800 ×
600, DMR2 be a high definition television, and screen resolution is 1920 × 1080;The description information of movie A is movie A institute
The code rate of the code stream fragment of offer has 2.2Mbps, 1.6Mbps, 1.2Mbps, 800Kbps, 400Kbps, 200Kbps, movie K
Description information be movie K provided by code stream fragment code rate have 1.8Mbps, 1.5Mbps, 1.1Mbps, 800Kbps,
500Kbps,200Kbps.According in the screen resolution of two media players of DMR1 and DMR2, two adaptive code Streaming Medias
The media content description information for holding movie A and movie K, calculates DMR1 and DMR2 when playing movie A and movie K
The first code rate threshold value be respectively 800Kbps and 1.5Mbps, the second code rate threshold value is respectively 200Kbps and 500Kbps,
And the first code rate threshold value and the second code rate threshold value are reported to DMC.
Step 507, DMC are according to first yard of the played adaptive code streaming medium content of the different media players got
The status information of rate threshold value, the second code rate threshold value and played media, judges whether the adjustment for needing to carry out code rate;If
It needs to adjust, thens follow the steps 508.
Specific deterministic process is referring to Fig. 6, as shown in fig. 6, firstly, DMC obtains played adaptive code streaming medium content
Corresponding first code rate threshold value and the second code rate threshold value, and periodically obtain the broadcast state letter of each media content
Breath, the broadcasting code rate information including media content.After DMC gets above- mentioned information, can broadcast state information to media with
Code rate threshold value is compared, and point situation adjusts the code rate of the adaptive code Streaming Media played on each media player
It is whole:
(1) code rate of the media code stream of player plays is above corresponding first code rate threshold value;
(2) code rate of the media code stream of part player plays is lower than corresponding first code rate threshold value;
(3) code rate of the media code stream of player plays is below corresponding first code rate threshold value.
For situation (1), the code rate of the adaptive code streaming medium content of all player plays is above corresponding
One code rate threshold value indicates that the media content of all player plays can allow user to obtain ideal visual experience, therefore this
Kind situation plays as usual without being adjusted to code stream.For situation (2), there is the adaptive code of part player plays
The code rate of streaming medium content is lower than corresponding first code rate threshold value, indicates that the media content of this part player plays cannot allow
User obtains ideal visual experience, it is therefore desirable to adjust, those media codes for being lower than its first code rate threshold value are turned up
The code rate of stream makes it higher than its corresponding first code rate threshold value.But it can be reduced during adjustment and original be higher than that its is right
Those of first code rate threshold value is answered to play the code rate of media code stream, it is possible to make it below corresponding first code rate threshold value.
Therefore, the case where code rate of broadcasting media code stream all after being unable to satisfy adjustment is above corresponding first code rate threshold value
Under, its code rate is not less than corresponding first yard after should ensure that those original media code stream adjustment higher than its first code rate threshold value
Rate threshold value.For situation (3), the adaptive code streaming medium content of all player plays cannot allow user more to be managed
The visual experience thought, in this case, DMC check whether that the code rate of the media code stream of player plays is above corresponding
Two code rate threshold values, if so, playing as usual;If it is not, those media codes for being lower than corresponding second code rate threshold value are then turned up
The code rate of stream, to guarantee that the code rate of media code stream of all broadcastings is above corresponding second code rate threshold value.
In the present embodiment, the code rate for the adaptive code streaming medium content Movie A that media player DMR1 is played at present
Code rate for 2.2Mbps, media player DMR2 the adaptive code streaming medium content Movie K played at present is 500Kbps, point
It does not make comparisons with the first code rate threshold value of DMR1 and DMR2 and the second code rate threshold value, it can be deduced that this situation belongs to situation
(2), the code rate for needing to be turned up the media Movie K that DMR2 is played makes it higher than the first code rate threshold value of DMR2
1.5Mbps, but on condition that the code rate of the media Movie A played on DMR1 after adjustment cannot be decreased below the first of DMR1
Code rate threshold value 800Kbps.
Here is specific adjustment process.
Step 508, DMC request DMS increase service quality (QoS) grade for being sent to the data message of DMR2, and DMS is connected to
After instruction, increase the value of differentiated services code points (DSCP) field in the IP header for the fragment code stream message for being sent to DMR2,
Promote the QoS grade for being sent to the data message of DMR2.
Differentiated services code points (DSCP) field is the word in IP header to identification message service quality (QoS) priority
Section.The numerical value of dscp field is bigger, and QoS priority higher grade, and gateway will the high message of priority processing QoS grade.In this way,
When DMS is sent to QoS of the QoS grade higher than the data message for being sent to DMR1 of the data message of the DASH media slicing of DMR2
Grade, gateway will preferentially forward the media slicing for being sent to DMR2 in processing.And the Media Stream for being sent to DMR1 will be made
At a degree of obstruction, DMR1 is caused to think that network bandwidth is inadequate, according to the strategy of DASH technology, DMR1 is asked from trend DMS
The media slicing compared with low bit- rate is sought, so that the bandwidth saved out can remove the media slicing of application high code rate for DMR2, thus
Reduce the gap of the two fragment code rate.
The status information of the played media of step 509, DMC real-time monitoring, when judging DASH media content in network system
Broadcasting when it is fair, DMC is issued to DMS and is requested, and is restored the QoS grade of the original data message for being sent to DMR2, is made DMS
It is identical to be sent to the level restorations such as the QoS of the data message of DMR1 and DMR2.
The embodiment of the present invention, the adaptive code streaming medium content of the available each media renderer plays of media controller
Broadcasting code rate, when the adaptive code streaming medium content for having part or all of media renderer plays broadcasting code rate lower than correspond to
Code rate threshold value when, the broadcasting of the adaptive code streaming medium content of the adjustable multiple media renderer plays of media controller
Code rate;Specifically, media controller can by the QoS grade of the data message of partial adjustment adaptive code streaming medium content,
It adjusts the broadcasting code rate of adaptive code streaming medium content, so as to realize fair broadcasting, improves user experience.
Fig. 6 is a kind of schematic diagram of media controller of the embodiment of the present invention, as shown in fig. 6, the media controller 600 is wrapped
It includes:Information acquisition unit 61 and adjustment unit 63.
Information acquisition unit 61, for obtaining the adaptive of each media renderer plays in N number of media player respectively
The broadcasting code rate of code stream media content, N >=2.
Adjustment unit 63, if the broadcasting code rate for the M1 adaptive code streaming medium content is lower than corresponding the
One code rate threshold value, and M1 < N, then adjust the broadcasting code rate of the adaptive code streaming medium content of K media renderer plays, M1
≤K≤N;Wherein, the first code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is root
According to the description of the adaptive code streaming medium content of the device capability information and each media renderer plays of each media player
What information obtained.
Further, in another embodiment, adjustment unit 63 may include:Data Rate Distribution module 631 and adjustment touching
Send out module 633;Alternatively, adjustment unit 63 may include:First request module 635;Alternatively, adjustment unit 63 may include:Code
Rate distribution module 631 and adjustment trigger module 633 and the first request module 635.
Data Rate Distribution module 631, if the broadcasting code rate for the M1 adaptive code streaming medium contents is right lower than respectively
The the first code rate threshold value answered, and M1 < N, then according to for play N number of adaptive code streaming medium content total bandwidth and
The description information of each adaptive code streaming medium content is the adaptive code streaming medium content of the K media renderer plays
Distribute corresponding broadcasting code rate.
Trigger module 633 is adjusted, for being the K media renderer plays according to the Data Rate Distribution module 631
The broadcasting code rate of adaptive code streaming medium content distribution sends code rate adjustment order to media server, so that the media take
Business device sends the adaptive code streaming medium content that code rate is assigned transmission code rate to the K media player.
First request module 635, if the broadcasting code rate for the M1 adaptive code streaming medium contents is right lower than respectively
The the first code rate threshold value answered, and M1 < N then request media server to improve the M1 adaptive code streaming medium content corresponding
Data message service quality rating so that described M1 to play code rate adaptive lower than corresponding first code rate threshold value
It answers the corresponding data message of code stream media content to be preferentially sent in corresponding media player, and makes the K a adaptive
The broadcasting code rate of code stream media content is answered to be adjusted;Wherein, N=2, K=2.
Further, Data Rate Distribution module 631 according to the total bandwidth for playing N number of adaptive code streaming medium content and
The description information of each adaptive code streaming medium content is the adaptive code streaming medium content of the K media renderer plays
When distributing corresponding broadcasting code rate, code rate is played according to following rule distribution:
The sum of the transmission code rate of the adaptive code streaming medium content of N number of media renderer plays after distribution is less than or equal to
The total bandwidth for being used to play N number of adaptive code streaming medium content;
If the sum of first code rate threshold value of the adaptive code streaming medium content of N number of media renderer plays be less than or
Equal to described for playing the total bandwidth of adaptive code streaming medium content, then N number of media renderer plays after distributing
The broadcasting code rate of adaptive code streaming medium content is respectively greater than or is equal to corresponding first code rate threshold value;If N number of matchmaker
The sum of first code rate threshold value of the adaptive code streaming medium content of body player plays be greater than it is described for play it is described it is N number of from
The total bandwidth of code stream media content is adapted to, then the adaptive code streaming medium content of N number of media renderer plays after distributing
Broadcasting code rate be respectively greater than or be equal to corresponding second code rate threshold value;
Second code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is according to every
What the description information of the device capability information of a media player and each adaptive code streaming medium content obtained;Each media are broadcast
It puts the first code rate threshold value corresponding to the adaptive code streaming medium content of device broadcasting and is greater than the second code rate threshold value.
Further, media controller 600 can also include:Judgment module 65 and the second request module 67.
Judgment module 65, if the broadcasting code rate for N number of adaptive code streaming medium content be below it is corresponding
First code rate threshold value, then judge whether the broadcasting code rate of each adaptive code streaming medium content is lower than corresponding
Two code rate threshold values;The second code rate threshold value is root corresponding to the adaptive code streaming medium content of each media renderer plays
It is obtained according to the device capability information of each media player and the description information of each adaptive code streaming medium content;Each matchmaker
First code rate threshold value corresponding to the adaptive code streaming medium content of body player plays is greater than the second code rate threshold value;
Second request module 67, if judging the broadcasting code of the M2 adaptive code streaming medium contents for judgment module 65
Rate is lower than corresponding second code rate threshold value, and M2 < N, then requests media server to improve the M2 broadcasting code rate low
In the service quality rating of the corresponding data message of adaptive code streaming medium content of corresponding second code rate threshold value, so that
The code rate that plays is preferential lower than the corresponding data message of adaptive code streaming medium content of corresponding second code rate threshold value
It is sent in corresponding media player, and the broadcasting code rate of N number of adaptive code streaming medium content is adjusted;Its
In, N=2.
Further, media controller can also include:Grade recovery unit 69.
Grade recovery unit 69 is used for:
Media server is requested to improve the M1 broadcasting code rate lower than corresponding first code rate in the first request module 635
After the service quality rating of the corresponding data message of adaptive code streaming medium content of threshold value, if each adaptive code
The broadcasting code rate of streaming medium content is greater than or equal to corresponding first code rate threshold value, then requests the media server extensive
It is enhanced the service quality rating of the corresponding data message of adaptive code streaming medium content of service quality rating again;Or
Media server is requested to improve the M1 broadcasting code rate lower than corresponding first code rate in the first request module 635
After the service quality rating of the corresponding data message of adaptive code streaming medium content of threshold value, if N number of adaptive code
The sum of corresponding first code rate threshold value of streaming medium content is greater than described for playing N number of adaptive code streaming medium content
Total bandwidth, then the adaptive code streaming medium content for not being enhanced service quality rating broadcasting code rate adjustment to equal than it is corresponding
When the first code rate threshold value, the media server is requested to restore the adaptive code streaming medium content for being enhanced service quality rating
The service quality rating of corresponding data message;Or
Media server is requested to improve the M2 broadcasting code rate lower than corresponding second code rate in the second request module 67
After the service quality rating of the corresponding data message of adaptive code streaming medium content of threshold value, if each adaptive code
The broadcasting code rate of streaming medium content is greater than or equal to corresponding second code rate threshold value, then requests the media server extensive
It is enhanced the service quality rating of the corresponding data message of adaptive code streaming medium content of service quality rating again;Or
Media server is requested to improve the M2 broadcasting code rate lower than corresponding second code rate in the second request module 67
After the service quality rating of the corresponding data message of adaptive code streaming medium content of threshold value, if N number of adaptive code
The sum of corresponding second code rate threshold value of streaming medium content is greater than described for playing N number of adaptive code streaming medium content
Total bandwidth, then the adaptive code streaming medium content for not being enhanced service quality rating broadcasting code rate adjustment to equal than it is corresponding
When the second code rate threshold value, the media server is requested to restore the adaptive code streaming medium content for being enhanced service quality rating
The service quality rating of corresponding data message.
Fig. 7 is the schematic diagram of another media controller of the embodiment of the present invention, as shown in fig. 7, the media controller 700
Including:
One or more processors 71;
Memory 72;
One or more programs, wherein one or more of programs be stored in the memory 72 and be configured as by
One or more of processors 71 execute, and one or more of programs include:
The broadcasting code of the adaptive code streaming medium content of each media renderer plays in N number of media player is obtained respectively
The instruction of rate, N >=2;
If the broadcasting code rate of the M1 adaptive code streaming medium contents is lower than corresponding first code rate threshold value, and
M1 < N then adjusts the instruction of the broadcasting code rate of the adaptive code streaming medium content of K media renderer plays, M1≤K≤N;Its
In, the first code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is according to each media
What the description information of the device capability information of player and the adaptive code streaming medium content of each media renderer plays obtained.
Further, if the broadcasting code rate of the M1 adaptive code streaming medium contents is lower than corresponding first
Code rate threshold value, and M1 < N then adjust the finger of the broadcasting code rate of the adaptive code streaming medium content of K media renderer plays
It enables, including:
If the broadcasting code rate of the M1 adaptive code streaming medium contents is lower than corresponding first code rate threshold value, and
M1 < N, then according to the total bandwidth and each adaptive code streaming medium content for being used to play N number of adaptive code streaming medium content
Description information, for the K media renderer plays adaptive code streaming medium content distribute it is corresponding broadcasting code rate finger
It enables;
According to the broadcasting code rate of the adaptive code streaming medium content distribution for the K media renderer plays, to media
Server sends code rate adjustment order, so that it is assigned that the media server, which sends code rate to the K media player,
Transmission code rate adaptive code streaming medium content instruction.
Further, the basis is used to play the total bandwidth of N number of adaptive code streaming medium content and each adaptive
The description information of code stream media content is answered, is that the adaptive code streaming medium content of the K media renderer plays distributes correspondence
Broadcasting code rate when, according to it is following rule distribution play code rate:
The sum of the transmission code rate of the adaptive code streaming medium content of N number of media renderer plays after distribution is less than or equal to
The total bandwidth for being used to play N number of adaptive code streaming medium content;
If the sum of first code rate threshold value of the adaptive code streaming medium content of N number of media renderer plays be less than or
Equal to described for playing the total bandwidth of adaptive code streaming medium content, then N number of media renderer plays after distributing
The broadcasting code rate of adaptive code streaming medium content is respectively greater than or is equal to corresponding first code rate threshold value;If N number of matchmaker
The sum of first code rate threshold value of the adaptive code streaming medium content of body player plays be greater than it is described for play it is described it is N number of from
The total bandwidth of code stream media content is adapted to, then the adaptive code streaming medium content of N number of media renderer plays after distributing
Broadcasting code rate be respectively greater than or be equal to corresponding second code rate threshold value;
Second code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is according to every
What the description information of the device capability information of a media player and each adaptive code streaming medium content obtained;Each media are broadcast
It puts the first code rate threshold value corresponding to the adaptive code streaming medium content of device broadcasting and is greater than the second code rate threshold value.
Further, if the broadcasting code rate of the M1 adaptive code streaming medium contents is lower than corresponding first
Code rate threshold value, and M1 < N then adjust the finger of the broadcasting code rate of the adaptive code streaming medium content of K media renderer plays
It enables, including:
If the broadcasting code rate of the M1 adaptive code streaming medium contents is lower than corresponding first code rate threshold value, and
M1 < N then requests media server to improve the service quality of the corresponding data message of the M1 adaptive code streaming medium content
Grade, so that the M1 broadcasting code rate is corresponding lower than the adaptive code streaming medium content of corresponding first code rate threshold value
Data message is preferentially sent in corresponding media player, and makes the broadcasting of the K adaptive code streaming medium content
The instruction that code rate is adjusted;Wherein, N=2, K=2.
Further, one or more of programs further include:
It is adaptive lower than corresponding first code rate threshold value that the M1 broadcasting code rate is improved in request media server
After the service quality rating of the corresponding data message of code stream media content, if each adaptive code streaming medium content is broadcast
Code rate is put more than or equal to corresponding first code rate threshold value, then the media server recovery is requested to be enhanced Service Quality
Measure the quality of the service quality rating of the corresponding data message of adaptive code streaming medium content of grade;Or
It is adaptive lower than corresponding first code rate threshold value that the M1 broadcasting code rate is improved in request media server
After the service quality rating of the corresponding data message of code stream media content, if N number of adaptive code streaming medium content is corresponding
The sum of the first code rate threshold value be greater than it is described for playing the total bandwidth of N number of adaptive code streaming medium content, then not
The broadcasting code rate for being enhanced the adaptive code streaming medium content of service quality rating adjusts to equal than corresponding first code rate thresholding
When value, the media server is requested to restore the corresponding datagram of adaptive code streaming medium content for being enhanced service quality rating
The instruction of the service quality rating of text.
Further, one or more of programs further include:
If the broadcasting code rate of N number of adaptive code streaming medium content is below corresponding first code rate threshold value,
Then judge whether the broadcasting code rate of each adaptive code streaming medium content is lower than corresponding second code rate threshold value
Instruction;Second code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is according to each matchmaker
What the description information of the device capability information of body player and each adaptive code streaming medium content obtained;Each media player
First code rate threshold value corresponding to the adaptive code streaming medium content of broadcasting is greater than the second code rate threshold value;
If the broadcasting code rate of the M2 adaptive code streaming medium contents is lower than corresponding second code rate threshold value, and
M2 < N then requests media server to improve described M2 and plays the adaptive code that code rate is lower than corresponding second code rate threshold value
The service quality rating of the corresponding data message of streaming medium content, so that the broadcasting code rate is lower than corresponding second code rate door
The corresponding data message of adaptive code streaming medium content of limit value is preferentially sent in corresponding media player, and makes institute
State the instruction that the broadcasting code rate of N number of adaptive code streaming medium content is adjusted;Wherein, N=2.
Further, one or more of programs further include:
It is adaptive lower than corresponding second code rate threshold value that the M2 broadcasting code rate is improved in request media server
After the service quality rating of the corresponding data message of code stream media content, if each adaptive code streaming medium content is broadcast
Code rate is put more than or equal to corresponding second code rate threshold value, then the media server recovery is requested to be enhanced Service Quality
Measure the instruction of the service quality rating of the corresponding data message of adaptive code streaming medium content of grade;Or
It is adaptive lower than corresponding second code rate threshold value that the M2 broadcasting code rate is improved in request media server
After the service quality rating of the corresponding data message of code stream media content, if N number of adaptive code streaming medium content is corresponding
The sum of the second code rate threshold value be greater than it is described for playing the total bandwidth of N number of adaptive code streaming medium content, then not
The broadcasting code rate for being enhanced the adaptive code streaming medium content of service quality rating adjusts to equal than corresponding second code rate thresholding
When value, the media server is requested to restore the corresponding datagram of adaptive code streaming medium content for being enhanced service quality rating
The instruction of the service quality rating of text.
The media controller that Fig. 6 or embodiment illustrated in fig. 7 provide, for realizing the method in above-mentioned each method embodiment,
Specific working principle and workflow may refer to above-mentioned each method embodiment.
In Fig. 6 or embodiment illustrated in fig. 7, the adaptive code stream of the available each media renderer plays of media controller
The broadcasting code rate of media content, when the adaptive code streaming medium content for having part of media player plays broadcasting code rate lower than pair
When the code rate threshold value answered, the adaptive code streaming medium content of the adjustable multiple media renderer plays of media controller is broadcast
Put code rate;Specifically, media controller can be each matchmaker according to total bandwidth, the description information of adaptive code streaming medium content
The adaptive code streaming medium content distribution of body player plays is suitable to play code rate, alternatively, media controller can pass through portion
Divide the QoS grade of the data message of adjustment adaptive code streaming medium content, to adjust the broadcasting code of adaptive code streaming medium content
Rate improves user experience so as to realize fair broadcasting.
Fig. 8 is a kind of schematic diagram of network media system of the embodiment of the present invention, as shown in figure 8, the network media system,
Including:Media server 81, media controller 83 and N number of media player 85, N >=2.
Media player 85 for obtaining adaptive code stream media content from the media server 81, and plays acquisition
Adaptive code streaming medium content.
Media server 81 provides adaptive code for storing adaptive code streaming medium content, and to media player 85
The description information of streaming medium content and adaptive code streaming medium content.
Media controller 83, for obtaining the adaptive of each media renderer plays in N number of media player 85 respectively
The broadcasting code rate of code stream media content;If the broadcasting code rate of the M1 adaptive code streaming medium content is lower than corresponding the
One code rate threshold value, and M1 < N, then adjust the broadcasting code rate of the adaptive code streaming medium content of K media renderer plays, M1
≤K≤N。
Media player 85, be also used to according to the device capability information of media player 85 and media renderer plays from
The description information for adapting to code stream media content obtains the corresponding to the adaptive code streaming medium content of the broadcasting of media player 85
One code rate threshold value.
Further, the media controller 83 is in the adaptive code streaming medium content for adjusting K media renderer plays
Broadcasting code rate when, be specifically used for:
The media controller 83 according to for playing N number of adaptive code streaming medium content total bandwidth and it is each from
The description information of code stream media content is adapted to, the adaptive code streaming medium content distribution played for the K media player 85
Corresponding broadcasting code rate;
According to the broadcasting code rate of the adaptive code streaming medium content distribution played for the K media player 85, to institute
It states media server 81 and sends code rate adjustment order, so that the media server 81 is sent to the K media player 85
Code rate is the adaptive code streaming medium content of assigned transmission code rate.
Further, media controller 83 according to for playing N number of adaptive code streaming medium content total bandwidth and
The description information of each adaptive code streaming medium content is in the adaptive code Streaming Media of the K media player 85 broadcasting
When holding the corresponding broadcasting code rate of distribution, code rate is played according to following rule distribution:
The sum of the transmission code rate of the adaptive code streaming medium content of N number of media renderer plays after distribution is less than or equal to
The total bandwidth for being used to play N number of adaptive code streaming medium content;
If the sum of first code rate threshold value of the adaptive code streaming medium content of N number of media renderer plays be less than or
Equal to described for playing the total bandwidth of adaptive code streaming medium content, then N number of media renderer plays after distributing
The broadcasting code rate of adaptive code streaming medium content is respectively greater than or is equal to corresponding first code rate threshold value;If N number of matchmaker
The sum of first code rate threshold value of the adaptive code streaming medium content of body player plays be greater than it is described for play it is described it is N number of from
The total bandwidth of code stream media content is adapted to, then the adaptive code streaming medium content of N number of media renderer plays after distributing
Broadcasting code rate be respectively greater than or be equal to corresponding second code rate threshold value;
The media player is also used to device capability information and each adaptive code Streaming Media according to media player
The description information of content obtains the second code rate threshold value corresponding to the adaptive code streaming medium content of media renderer plays;Often
First code rate threshold value corresponding to the adaptive code streaming medium content of a media renderer plays is greater than the second code rate threshold value.
Further, the media controller 83 is in the adaptive code streaming medium content for adjusting K media renderer plays
Broadcasting code rate when, be specifically used for:
If M1 < N, the media controller requests the media server to improve the M1 broadcasting code rate to be lower than pair
The service quality rating of the corresponding data message of adaptive code streaming medium content for the first code rate threshold value answered, so that described
M1 broadcasting code rate is preferential lower than the corresponding data message of adaptive code streaming medium content of corresponding first code rate threshold value
It is sent in corresponding media player, and the broadcasting code rate of the K adaptive code streaming medium content is adjusted;Its
In, N=2, K=2;
If M1=N, the media controller judge each adaptive code streaming medium content broadcasting code rate whether
Lower than corresponding second code rate threshold value;If the broadcasting code rate of the M2 adaptive code streaming medium contents is right lower than respectively
The the second code rate threshold value answered, and M2 < N then request the media server to improve the M2 broadcasting code rate lower than corresponding
The service quality rating of the corresponding data message of adaptive code streaming medium content of second code rate threshold value, so that the broadcasting
Code rate is preferentially sent to pair lower than the corresponding data message of adaptive code streaming medium content of corresponding second code rate threshold value
In the media player answered, and the broadcasting code rate of N number of adaptive code streaming medium content is adjusted;Wherein, N=2;
Second code rate threshold value corresponding to the adaptive code streaming medium content of each media renderer plays is according to every
What the description information of the device capability information of a media player and each adaptive code streaming medium content obtained;Each media are broadcast
It puts the first code rate threshold value corresponding to the adaptive code streaming medium content of device broadcasting and is greater than the second code rate threshold value.
Further, the media controller 83 is to request the media server 81 to improve the M1 broadcasting code rate low
After the service quality rating of the corresponding data message of adaptive code streaming medium content of corresponding first code rate threshold value, also
For:
If the broadcasting code rate of each adaptive code streaming medium content is greater than or equal to corresponding first code rate door
Limit value, then the media controller requests the media server to restore the adaptive code Streaming Media for being enhanced service quality rating
The service quality rating of the corresponding data message of content;Alternatively, if N number of adaptive code streaming medium content is first yard corresponding
The sum of rate threshold value is greater than the total bandwidth for being used to play N number of adaptive code streaming medium content, then be not enhanced clothes
When the broadcasting code rate adjustment of the adaptive code streaming medium content for credit rating of being engaged in equal than corresponding first code rate threshold value, request
The media server restores the service for being enhanced the corresponding data message of adaptive code streaming medium content of service quality rating
Credit rating;
The media controller 83 improves the M2 broadcasting code rate lower than corresponding in the request media server 81
After the service quality rating of the corresponding data message of adaptive code streaming medium content of second code rate threshold value, it is also used to:
If the broadcasting code rate of each adaptive code streaming medium content is greater than or equal to corresponding second code rate door
Limit value then requests the media server to restore the corresponding data of adaptive code streaming medium content for being enhanced service quality rating
The service quality rating of message;Alternatively, if the sum of corresponding second code rate threshold value of N number of adaptive code streaming medium content is big
In described for playing the total bandwidth of N number of adaptive code streaming medium content, then be not enhanced service quality rating from
When adapting to the adjustment of broadcasting code rate to equal than corresponding second code rate threshold value of code stream media content, the media server is requested
Restore the service quality rating for being enhanced the corresponding data message of adaptive code streaming medium content of service quality rating.
Media controller provided in an embodiment of the present invention, media server, media player, for realizing above-mentioned each method
Method in embodiment, specific working principle and workflow may refer to above-mentioned each method embodiment.
In the present embodiment, the adaptive code streaming medium content of the available each media renderer plays of media controller
Code rate is played, when the broadcasting code rate for the adaptive code streaming medium content for there are part of media player plays is lower than corresponding code rate door
When limit value, the broadcasting code rate of the adaptive code streaming medium content of the adjustable multiple media renderer plays of media controller;Tool
Body, media controller can be broadcast according to total bandwidth, the description information of adaptive code streaming medium content for each media player
The adaptive code streaming medium content distribution put is suitable to play code rate, alternatively, media controller can be adaptive by partial adjustment
The QoS grade of the data message of code stream media content is answered, to adjust the broadcasting code rate of adaptive code streaming medium content, so as to
It realizes fair broadcasting, improves user experience.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can be with
It is realized with hardware realization or firmware realization or their combination mode.It when implemented in software, can be by above-mentioned function
Storage in computer-readable medium or as on computer-readable medium one or more instructions or code transmitted.Meter
Calculation machine readable medium includes computer storage media and communication media, and wherein communication media includes convenient for from a place to another
Any medium of a place transmission computer program.Storage medium can be any usable medium that computer can access.With
For this but it is not limited to:Computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disc storages, disk
Storage medium or other magnetic storage apparatus or can be used in carry or store have instruction or data structure form expectation
Program code and can be by any other medium of computer access.In addition, any connection appropriate can become computer
Readable medium.For example, if software is using coaxial cable, optical fiber cable, twisted pair, Digital Subscriber Line (DSL) or such as
The wireless technology of infrared ray, radio and microwave etc is transmitted from website, server or other remote sources, then coaxial electrical
The wireless technology of cable, optical fiber cable, twisted pair, DSL or such as infrared ray, radio and microwave etc is included in affiliated medium
Fixing in.As used in the present invention, disk (disk) and dish (disc) include compression optical disc (CD), laser disc, optical disc, number
General optical disc (DVD), floppy disk and Blu-ray Disc, the usually magnetic replicate data of which disk, and dish is then with laser come optical multiple
Data processed.Combination above should also be as including within the protection scope of computer-readable medium.
In short, the foregoing is merely illustrative of the preferred embodiments of the present invention, it is not intended to limit the scope of the present invention.
All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in of the invention
Within protection scope.