Disclosure of Invention
In view of this, embodiments of the present invention provide a method, a media server, and a device for playing media content, so as to solve the problem in the prior art that how media content without slices cannot be smoothly played in an unstable network.
In a first aspect, a method for playing media content provided in an embodiment of the present invention includes:
the media server DMS receives a first MPD acquisition request sent by a control device DMC, wherein the first MPD acquisition request comprises: the identifier of the Media content, where the first MPD acquisition request is used to instruct the DMS to acquire a Media Presentation Description (MPD) corresponding to the Media content and used to instruct the DMS to acquire the Media content;
the DMS determines the media content according to the identifier, converts and slices the media content, and generates an MPD corresponding to the media content, or acquires the MPD corresponding to the media content from a wide area network, or acquires the MPD and the slice corresponding to the media content from the wide area network;
sending information of MPD corresponding to the media content acquired by the DMS to the DMC;
wherein the first MPD acquisition request is sent when there is no MPD corresponding to the media content on the DMS,
or the first MPD acquisition request is sent when there is no information of a slice of the first code rate corresponding to the identifier on the DMS.
In a first possible implementation manner of the first aspect, if the first MPD acquisition request is sent on the DMS without an MPD corresponding to the media content, the MPD includes: a URI list of a slice corresponding to at least one code rate, wherein the MPD information is a Uniform Resource Identifier (URI) of the MPD;
or,
if the first MPD acquisition request is sent when there is no information of a slice of the first code rate corresponding to the identifier on the DMS, the MPD includes: and the information of the MPD is the URI of the MPD.
With reference to the first aspect and the first possible implementation manner, in a second possible implementation manner,
if the first MPD acquisition request is sent on the DMS when there is no MPD for the media content, the first MPD acquisition request further includes: at least one code rate and slice size;
or,
if the first MPD acquisition request is sent on the DMS when there is no MPD for the media content, the first MPD acquisition request further includes: at least one code rate.
With reference to the first aspect and the first possible implementation, in a third possible implementation, if the first MPD acquisition request is sent on the DMS without information of a slice with a first code rate corresponding to the identifier, the first MPD acquisition request further includes: a first code rate and a size of a slice;
or,
if the first MPD acquisition request is sent when there is no information of a slice with a first code rate corresponding to the identifier on the DMS, the first MPD acquisition request further includes: a first code rate.
With reference to the first aspect and the first possible implementation, in a fourth possible implementation, the acquiring, by the DMS, an MPD corresponding to the media content from a wide area network includes:
and the DMS acquires the MPD corresponding to the media content from a first server or a second server of the wide area network.
With reference to the first aspect and the first possible implementation manner, in a fifth possible implementation manner,
the DMS acquiring the MPD and the slice corresponding to the media content from a wide area network specifically includes:
the DMS acquires MPD and slices corresponding to the media content from a first server or a second server of the wide area network.
With reference to the first aspect and the first, fourth, or fifth possible implementation manner, in a sixth possible implementation manner, the acquiring, by the DMS, the MPD corresponding to the media content from a wide area network, or acquiring, by the DMS, the MPD and the slice corresponding to the media content from the wide area network specifically includes:
and when the DMS determines that the function of slicing and converting the media content is not available, the DMS acquires the MPD corresponding to the media content from a wide area network, or acquires the MPD and the slice corresponding to the media content from the wide area network.
With reference to the first aspect and the fourth possible implementation manner, in a seventh possible implementation manner,
the DMS acquiring, from a first server or a second server of the wide area network, an MPD corresponding to the media content, including:
if the first MPD acquisition request is sent on the DMS without the MPD corresponding to the media content,
the DMS sends a lookup request to the first server, where the lookup request is used for the first server to determine whether the first server has an MPD corresponding to the media content;
if the first server has an MPD corresponding to the media content, receiving the MPD corresponding to the media content sent by the first server, where the MPD includes: URI lists of the slices corresponding to at least one code rate;
or,
if the first MPD acquisition request is sent without information on a slice of the first code rate corresponding to the identifier on the DMS,
the DMS sends a search request to the first server, where the search request is used for the first server to determine whether information of a slice corresponding to the first bitrate is included in an MPD corresponding to the media content in the first server;
if the MPD in the first server includes information of a slice corresponding to the first code rate, receiving the MPD corresponding to the media content sent by the first server, where the MPD includes: and the URI list of the slice corresponding to the first code rate.
With reference to the first aspect and the fifth possible implementation manner, in an eighth possible implementation manner,
the DMS acquiring an MPD and a slice corresponding to the media content from a first server or a second server of the wide area network, including:
if the first MPD acquisition request is sent on the DMS without the MPD corresponding to the media content,
the DMS sends a lookup request to the first server, where the lookup request is used for the first server to determine whether the first server has an MPD corresponding to the media content;
if the first server has an MPD corresponding to the media content, receiving the MPD and a slice corresponding to the media content sent by the first server, where the MPD includes: URI lists of the slices corresponding to at least one code rate;
or,
if the first MPD acquisition request is sent without information on a slice of the first code rate corresponding to the identifier on the DMS,
the DMS sends a search request to the first server, where the search request is used for the first server to determine whether information of a slice corresponding to the first bitrate is included in an MPD corresponding to the media content in the first server;
if the MPD in the first server includes information of a slice corresponding to the first code rate, receiving the MPD and the slice corresponding to the media content sent by the first server, where the MPD includes: and the URI list of the slice corresponding to the first code rate.
With reference to the first aspect and the fourth possible implementation manner, in a ninth possible implementation manner,
the acquiring, by the DMS, the MPD corresponding to the media content from the first server or the second server of the wide area network specifically includes:
the DMS sends a search request to the first server, wherein the search request is used for enabling the first server to determine whether the first server has an MPD corresponding to the media content;
if the first server does not have the MPD corresponding to the media content, the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content;
the DMS receives an MPD corresponding to the media content sent by the second server, where the MPD includes: URI lists of the slices corresponding to at least one code rate;
or
The DMS sends a search request to the first server, wherein the search request is used for enabling the first server to determine whether the first server has an MPD corresponding to the media content;
if the first server does not have the MPD corresponding to the media content, the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the at least one code rate;
the DMS receives an MPD corresponding to the media content sent by the second server, where the MPD includes: URI lists of the slices corresponding to at least one code rate;
or,
the DMS sends a search request to the first server, wherein the search request is used for enabling the first server to determine whether the first server has an MPD corresponding to the media content;
if the first server does not have the MPD corresponding to the media content, the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates an MPD and a slice corresponding to the media content according to the at least one code rate and the size of the slice;
the DMS receives an MPD corresponding to the media content sent by the second server, where the MPD includes: URI lists of the slices corresponding to at least one code rate;
or
The DMS sends a search request to the first server, wherein the search request is used for enabling the first server to determine whether information of a slice corresponding to the first code rate is included in an MPD (media description file) corresponding to the media content in the first server;
if the first server has an MPD corresponding to the media content, but the MPD does not have information of a slice corresponding to the first bitrate, the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the first code rate;
the DMS receives an MPD corresponding to the media content sent by the second server, where the MPD includes: a URI list of a slice corresponding to the first code rate;
or,
the DMS sends a search request to the first server, wherein the search request is used for enabling the first server to determine whether information of a slice corresponding to the first code rate is included in an MPD (media description file) corresponding to the media content in the first server;
if the first server has an MPD corresponding to the media content, but the MPD does not have information of a slice corresponding to the first bitrate, the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the first code rate and the size of the slices;
the DMS receives an MPD corresponding to the media content sent by the second server, where the MPD includes: and the URI list of the slice corresponding to the first code rate.
With reference to the first aspect and the fifth possible implementation manner, in a tenth possible implementation manner,
the DMS acquiring the MPD and the slice corresponding to the media content from the first server or the second server of the wide area network specifically includes:
the DMS sends a search request to the first server, wherein the search request is used for enabling the first server to determine whether the first server has an MPD corresponding to the media content;
if the first server does not have the MPD corresponding to the media content, the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content;
the DMS receives an MPD and a slice corresponding to the media content sent by the second server, where the MPD includes: URI lists of the slices corresponding to at least one code rate;
or,
the DMS sends a search request to the first server, wherein the search request is used for enabling the first server to determine whether the first server has an MPD corresponding to the media content;
if the first server does not have the MPD corresponding to the media content, the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the at least one code rate;
the DMS receives an MPD and a slice corresponding to the media content sent by the second server, where the MPD includes: URI lists of the slices corresponding to at least one code rate;
or,
the DMS sends a search request to the first server, wherein the search request is used for enabling the first server to determine whether the first server has an MPD corresponding to the media content;
if the first server does not have the MPD corresponding to the media content, the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates an MPD and a slice corresponding to the media content according to the at least one code rate and the size of the slice;
the DMS receives an MPD and a slice corresponding to the media content sent by the second server, where the MPD includes: URI lists of the slices corresponding to at least one code rate;
or,
the DMS sends a search request to the first server, wherein the search request is used for enabling the first server to determine whether information of a slice corresponding to the first code rate is included in an MPD (media description file) corresponding to the media content in the first server;
if the first server has an MPD corresponding to the media content, but the MPD does not have information of a slice corresponding to the first bitrate, the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the first code rate;
the DMS receives an MPD and a slice corresponding to the media content sent by the second server, where the MPD includes: a URI list of a slice corresponding to the first code rate;
or,
the DMS sends a search request to the first server, wherein the search request is used for enabling the first server to determine whether information of a slice corresponding to the first code rate is included in an MPD (media description file) corresponding to the media content in the first server;
if the first server has an MPD corresponding to the media content, but the MPD does not have information of a slice corresponding to the first bitrate, the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the first code rate and the size of the slices;
the DMS receives an MPD and a slice corresponding to the media content sent by the second server, where the MPD includes: and the URI list of the slice corresponding to the first code rate.
With reference to the first aspect and the fourth possible implementation manner, in an eleventh possible implementation manner,
the DMS acquiring, from a first server or a second server of the wide area network, an MPD corresponding to the media content, including:
the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content;
the DMS receives an MPD corresponding to the media content sent by the second server, where the MPD includes: URI lists of the slices corresponding to at least one code rate;
or,
the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the at least one code rate;
the DMS receives an MPD corresponding to the media content sent by the second server, where the MPD includes: URI lists of the slices corresponding to at least one code rate;
or,
the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates an MPD and a slice corresponding to the media content according to the at least one code rate and the size of the slice;
the DMS receives an MPD corresponding to the media content sent by the second server, where the MPD includes: URI lists of the slices corresponding to at least one code rate;
or,
the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the first code rate;
the DMS receives an MPD corresponding to the media content sent by the second server, where the MPD includes: a URI list of a slice corresponding to the first code rate;
or,
the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the first code rate and the size of the slices;
the DMS receives an MPD corresponding to the media content sent by the second server, where the MPD includes: and the URI list of the slice corresponding to the first code rate.
With reference to the first aspect and the fifth possible implementation manner, in a twelfth possible implementation manner,
the DMS acquiring an MPD and a slice corresponding to the media content from a first server or a second server of the wide area network, including:
the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content;
the DMS receives an MPD and a slice corresponding to the media content sent by the second server, where the MPD includes: URI lists of the slices corresponding to at least one code rate;
or,
the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the at least one code rate;
the DMS receives an MPD and a slice corresponding to the media content sent by the second server, where the MPD includes: URI lists of the slices corresponding to at least one code rate;
or,
the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates an MPD and a slice corresponding to the media content according to the at least one code rate and the size of the slice;
the DMS receives an MPD and a slice corresponding to the media content sent by the second server, where the MPD includes: URI lists of the slices corresponding to at least one code rate;
or,
the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the first code rate;
the DMS receives an MPD and a slice corresponding to the media content sent by the second server, where the MPD includes: a URI list of a slice corresponding to the first code rate;
or,
the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the first code rate and the size of the slices;
the DMS receives an MPD and a slice corresponding to the media content sent by the second server, where the MPD includes: and the URI list of the slice corresponding to the first code rate.
With reference to the first aspect and the first possible implementation manner, in a thirteenth possible implementation manner, the method for playing media content further includes:
the DMS receives an MPD acquisition message sent by a media playing device DMR according to the information of the MPD corresponding to the media content;
the DMS sends MPDs corresponding to MPD information to the DMR according to the MPD acquisition messages, wherein the MPD information in the DMR is sent to the DMR by the DMC;
the DMS receives a section acquisition request sent by the DMR according to the MPD corresponding to the media content;
and the DMS sends the slices of the media contents to the DMR according to the slice acquisition request.
In a second aspect, a method for playing media content provided in an embodiment of the present invention includes:
when there is no Media Presentation Description (MPD) corresponding to media content in a media server (DMS), or there is no information of a slice of a first bitrate of the media content in the DMS, sending a first MPD acquisition request for acquiring the MPD of the media content to the DMS, where the first MPD acquisition request includes: the identification of the media content is used for enabling the DMS to determine the media content according to the identification, convert and slice the media content and generate the MPD of the media content, or enabling the DMS to acquire the MPD of the media content from a wide area network;
and receiving the information of the MPD of the media content sent by the DMS.
With reference to the second aspect, in a first possible implementation manner, if there is no MPD corresponding to the media content in the DMS, a first MPD acquisition request for acquiring an MPD of the media content is sent to the DMS, where the MPD includes: a URI list of a slice corresponding to at least one code rate, wherein the MPD information is a Uniform Resource Identifier (URI) of the MPD;
or,
if the DMS does not have information of a slice of the first bitrate of the media content, sending a first MPD acquisition request for acquiring an MPD of the media content to the DMS, where the MPD includes: and the information of the MPD is the URI of the MPD.
With reference to the second aspect and the first possible implementation manner, in a second possible implementation manner, the method for playing media content further includes:
and sending the information of the MPD to a media playing device DMR, so that the DMR acquires the MPD corresponding to the information of the MPD from the DMS according to the information of the MPD, and requests the DMS or a wide area network for a section of media content according to the MPD and plays the section.
In a third aspect, an embodiment of the present invention provides a media server, including:
a receiving unit, configured to receive a first Media Presentation Description (MPD) acquisition request sent by a control Device (DMC), where the first MPD acquisition request includes: the first MPD acquisition request is used for indicating the DMS to acquire an MPD corresponding to the media content;
an MPD obtaining unit, configured to determine the media content according to the identifier, convert and slice the media content, and generate an MPD corresponding to the media content, or obtain an MPD corresponding to the media content from a wide area network, or obtain an MPD and a slice corresponding to the media content from the wide area network;
a sending unit, configured to send, to the DMC, information of an MPD corresponding to the media content acquired by the DMS;
the first MPD acquisition request is sent when there is no MPD corresponding to the media content on the DMS, or the first MPD acquisition request is sent when there is no information of a slice of a first bitrate corresponding to the identifier on the DMS.
With reference to the third aspect, in a first possible implementation manner, if the first MPD acquisition request is sent on the DMS when there is no MPD corresponding to the media content, the MPD includes: a URI list of a slice corresponding to at least one code rate, wherein the MPD information is a Uniform Resource Identifier (URI) of the MPD;
or,
if the first MPD acquisition request is sent when there is no information of a slice of the first code rate corresponding to the identifier on the DMS, the MPD includes: and the information of the MPD is the URI of the MPD.
With reference to the third aspect and the first possible implementation, in a second possible implementation, if the first MPD acquisition request is sent on the DMS without an MPD of the media content, the first MPD acquisition request further includes: at least one code rate and slice size;
or,
if the first MPD acquisition request is sent on the DMS when there is no MPD for the media content, the first MPD acquisition request further includes: at least one code rate.
With reference to the third aspect, the first possible implementation manner, and the second possible implementation manner, in a third possible implementation manner, if the first MPD acquisition request is sent on the DMS when there is no information of a slice with a first bitrate corresponding to the identifier of the media content, the first MPD acquisition request further includes: a first code rate and a size of a slice;
or,
if the first MPD acquisition request is sent when there is no information of a slice with a first bitrate corresponding to the identifier of the media content on the DMS, the first MPD acquisition request further includes: a first code rate.
With reference to the third aspect and the first and second possible implementation manners, in a fourth possible implementation manner, the media server further includes:
a determination unit configured to determine whether the DMS has a function of slicing and converting the media content;
if the determining unit determines that the function of slicing and converting the media content is available, the MPD acquiring unit is configured to determine the media content according to the identifier, and convert and slice the media content; otherwise, the MPD acquiring unit is configured to acquire an MPD corresponding to the media content from a wide area network, or the MPD acquiring unit is configured to acquire an MPD and a slice corresponding to the media content from the wide area network.
With reference to the third aspect and the first and second possible implementation manners, in a fifth possible implementation manner, the receiving unit is further configured to receive an MPD acquisition message sent by the media playback device DMR according to information of the MPD of the media content;
the sending unit is further configured to send, according to the MPD acquisition message, an MPD corresponding to information of an MPD to the DMR, where the information of the MPD in the DMR is sent to the DMR by the DMC;
the receiving unit is further configured to receive an MPD transmission slice acquisition request corresponding to the media content and sent by the DMR;
the sending unit is further configured to send the slice of the media content to the DMR according to the slice obtaining request.
In a fourth aspect, an embodiment of the present invention further provides an apparatus, including:
a sending unit, configured to send a first MPD acquisition request for acquiring a media presentation description MPD of media content to a media server DMS, where the first MPD acquisition request includes: the identification of the media content is used for enabling the DMS to determine the media content according to the identification, convert and slice the media content and generate the MPD of the media content, or enabling the DMS to acquire the MPD of the media content from a wide area network;
a receiving unit, configured to receive information of an MPD of the media content sent by the DMS;
wherein the first MPD acquisition request is transmitted by the transmitting unit when there is no MPD corresponding to the media content in the DMS,
or, the first MPD acquisition request is sent by the sending unit when there is no information on a slice with a first bitrate of the media content in the DMS.
With reference to the fourth aspect, in a first possible implementation manner, the sending unit is further configured to
And sending the information of the MPD to a media playing device DMR, so that the DMR acquires the MPD corresponding to the information of the MPD from the DMS according to the information of the MPD, and requests the DMS or a wide area network for a section of media content according to the MPD and plays the section.
As can be seen from the foregoing technical solutions, in the method, the media server, and the device for playing media content according to embodiments of the present invention, by receiving a first MPD acquisition request, which is sent by the DMC to the DMS and used for instructing the DMS to acquire an MPD corresponding to the media content, the DMS acquires the MPD corresponding to the media content according to the first MPD acquisition request, so as to send the MPD to the DMC, thereby solving a problem in the prior art that how media content without slices cannot be smoothly played in an unstable network.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is clear that the various embodiments described below are only some of the embodiments of the invention. Based on the embodiments of the present invention described below, even if no creative work is done, a person skilled in the art can obtain other embodiments capable of solving the technical problems of the present invention and achieving the technical effects of the present invention by equivalent transformation of part or even all of the technical features, and it is obvious that the various embodiments transformed by the present invention do not depart from the scope of the present invention.
Generally, the DMS has slices corresponding to a plurality of code rates, and the slices in the DMS are arranged according to the time index, so that the home gateway can adaptively select different code rates for transmission according to the processing performance of the media playback device and the network state. For example, the DMC requests play from the DMR, and the DMC may issue a Uniform Resource Identifier (URI) of an appropriate content slice to the DMR according to the current network condition.
Further, the DMR requests a media resource from the server pointed to by the URI through an HTTP Get request. And the server responds to the HTTP Get request and transmits the media resource to the DMR so that the DMR plays the media resource.
In addition, in the prior art, when the DMR plays media content without MPD, buffering is likely to occur for a long time, so that it can be understood that the current DMR plays unsmoothly. Of course, if the media content played in the DMR is buffered for 5s in the prior art, the media content played in the DMR may not be smooth.
For example, the DMC sends the media content without MPD to the DMR, and the DMR has a very long buffering time and intermittent playing interruption according to the process of playing the media content, so that it can be understood that the playing of the media content in the DMR is not smooth.
Fig. 1 illustrates a method for playing media content according to an embodiment of the present invention, and as shown in fig. 1, the method for playing media content in this embodiment is as follows.
101. The DMS receives a first MPD acquisition request sent by a DMC, and the first MPD acquisition request comprises: the first MPD acquisition request is used for indicating the DMS to acquire an MPD corresponding to the media content; the first MPD acquisition request is sent when there is no MPD corresponding to the media content on the DMS, or the first MPD acquisition request is sent when there is no information of a slice of a first bitrate corresponding to the identifier on the DMS.
102. And the DMS determines the media content according to the identifier, converts and slices the media content, and generates an MPD corresponding to the media content, or acquires the MPD corresponding to the media content from a wide area network, or acquires the MPD and the slice corresponding to the media content from the wide area network.
For example, the DMS may obtain an MPD corresponding to the media content from a first server or a second server of a wide area network; or,
the DMS may obtain an MPD and a slice corresponding to the media content from a first server or a second server of a wide area network.
In this embodiment, the first server may be one of a server of a media content provider in the wide area network or a cloud server, and the second server may be the other of the server of the media content provider or the cloud server. In addition, the DMS may be a media server in a local area network.
103. And the DMS sends the MPD information corresponding to the media content acquired by the DMS to the DMC.
In practical applications, if the first MPD acquisition request in step 101 is sent when there is no MPD corresponding to the media content on the DMS, the MPD in step 102 may include: a URI list of a slice corresponding to at least one code rate, and the information of the MPD in step 103 is a URI of the MPD;
furthermore, if the first MPD acquisition request in step 101 is sent when there is no information on a slice of the first code rate corresponding to the identifier on the DMS, the MPD in step 102 may include: the URI list of the slice corresponding to the first bitrate and the information of the MPD in step 103 are the URIs of the MPD.
It is understood that current MPDs exist in file form.
For example, the at least one code rate may be determined according to a transmission rate of the current network, e.g., the at least one code rate may comprise 20KB/s, 30KB/s, 100KB/s, 500KB/s, 5M/s, etc. The present embodiment does not limit it.
Of course, the first code rate may also be determined according to the current network transmission rate, for example, the first code rate may be 10 KB/s.
In addition, the DMS in step 102 may perform conversion and slicing on the media content, where the conversion may include transcoding, and the transcoding may be understood as transcoding the high-definition media content into standard-definition media content or low-definition media content, and in particular, the bit rates of the slices of the standard-definition media content are both standard-definition and the bit rates of the slices of the low-definition media content are both low-definition.
Further, after step 103, the DMC may further send information of the MPD to the DMR, where the DMR acquires the MPD from the DMS according to the information of the M PD corresponding to the media content, and then the DMR sends a slice acquisition request according to the MPD corresponding to the media content, and the DMS may send a slice of the media content to the DMR according to the slice acquisition request and play the slice.
That is, after the step 103, the method for playing media content may further include the following steps 104 to 106, which are not shown in the figure:
104. the DMS receives an MPD acquisition message sent by the DMR according to the MPD information corresponding to the media content;
105. the DMS sends MPDs corresponding to MPD information to the DMR according to the MPD acquisition messages, wherein the MPD information in the DMR is sent to the DMR by the DMC;
106. the DMS receives a section acquisition request sent by the DMR according to the MPD corresponding to the media content; and the DMS sends the slices of the media contents to the DMR according to the slice acquisition request.
In addition, if the MPD corresponding to the media content is sent to the DMS by the first server of the wide area network, at this time, the first server of the wide area network receives a slice acquisition request sent by the DMR according to the MPD corresponding to the media content;
and a first server of a wide area network may send the slice of the media content to the DMR according to the slice acquisition request.
Further, if the MPD corresponding to the media content is sent to the DMS by the second server of the wide area network, at this time, the second server of the wide area network receives a request for acquiring a slice sent by the DMR according to the MPD corresponding to the media content;
and a second server of the wide area network may send the slice of the media content to the DMR according to the slice acquisition request.
It should be noted that, if the first server or the second server of the wide area network sends both the MPD and the slice corresponding to the media content to the DMS, at this time, the DMS is configured to receive a slice acquisition request sent by the DMR according to the MPD corresponding to the media content; and the DMS sends the slices of the media contents to the DMR according to the slice acquisition request.
As can be seen from the foregoing embodiments, in the method for playing media content according to the present embodiment, by receiving a first MPD acquisition request which is sent by a DMC to a DMS and used for instructing the DMS to acquire an MPD corresponding to the media content, the DMS acquires the MPD corresponding to the media content according to the first MPD acquisition request, and sends information of the MPD to the DMC, so as to solve a problem in the prior art that how media content without slices cannot be smoothly played in an unstable network.
Fig. 2A illustrates a method for playing media content according to an embodiment of the present invention, and as shown in fig. 2A, the method for playing media content in this embodiment is as follows.
201. The DMS receives a first MPD acquisition request sent by a DMC, and the first MPD acquisition request comprises: the identification of the media content, at least one code rate and the size of a slice are obtained, and the first MPD obtaining request is used for instructing the DMS to obtain an MPD corresponding to the media content; wherein the first MPD acquisition request is sent when there is no MPD corresponding to the media content on the DMS.
For example, the slices of the media content are generally sliced according to time, for example, a slice may be a 3s slice, i.e., a slice may play for 3s, or a 5s slice, i.e., a slice may play for 5 s.
In addition, the first MPD acquisition request may be: GetMPD () action, where the action carries parameters such as an Identity (ID) of the media content, at least one code rate, and a slice size. For example, carrying the parameters as listed in the following table.
IN the table represents the input of parameters (e.g., Resource ID, Size, etc.) IN an action.
Optionally, in another embodiment, if a default slice size is set in the DMS, the first MPD acquisition request may include: an identification of the media content and at least one bit rate.
In other embodiments, if a default bitrate and a default slice size are set in the DMS, the first MPD acquisition request may include an identifier of the media content.
202. And the DMS determines the media content according to the identifier, converts and slices the media content, and generates an MPD corresponding to the media content, or acquires the MPD corresponding to the media content from a wide area network, or acquires the MPD and the slices corresponding to the media content from the wide area network, wherein the MPD comprises a URI list of the slices corresponding to at least one code rate.
For example, the DMS may obtain an MPD corresponding to the media content from a first server or a second server of a wide area network; or,
the DMS may obtain an MPD and a slice corresponding to the media content from a first server or a second server of a wide area network.
Further, in this embodiment, the first server may be a server of a media content provider, and the second server may be a cloud server.
203. And the DMS sends the MPD information corresponding to the media content acquired by the DMS to the DMC, wherein the MPD information is the URI of the MPD.
As can be seen from the foregoing embodiments, in the method for playing media content according to the present embodiment, the DMS converts and slices the media content, so as to realize that the non-sliced media content has slices with various code rates, and further solve the problem in the prior art that how the non-sliced media content cannot be smoothly played in an unstable network.
Fig. 2B illustrates a method for playing media content according to an embodiment of the present invention, and as shown in fig. 2B, the method for playing media content in this embodiment is as follows.
211. The DMS receives a first MPD acquisition request sent by a DMC, and the first MPD acquisition request comprises: the identification of the media content, at least one code rate and the size of a slice are obtained, and the first MPD obtaining request is used for instructing the DMS to obtain an MPD corresponding to the media content; wherein the first MPD acquisition request is sent when there is no MPD corresponding to the media content on the DMS.
For example, in the present embodiment, the size of the slice is 4 s.
In this embodiment, the acquiring the first MPD request includes: the identifier of the media content, the at least one bitrate, and the size of the slice are described as examples, in other embodiments, the first MPD acquisition request includes: an identification of the media content; optionally, the first MPD acquisition request further includes: at least one code rate and/or slice size.
212. The DMS determines whether it has a function of slicing and converting the media contents, and if it is determined that there is, performs step 213a, otherwise, performs step 213.
213a, if the DMS in step 212 determines that the function of slicing and converting the media content is available, the DMS determines the media content according to the identifier, and converts and slices the media content according to the at least one code rate and the size of the slice to generate an MPD corresponding to the media content.
It should be noted that, if the default slice size is set in the DMS, in step 211, the first MPD acquisition request may include: identification of media content and at least one code rate, respectively, according to which the DMS transforms and slices the media content in step 213 a.
Of course, if the DMS sets a default slice size and a default code rate, in step 211, the first MPD acquisition request may include: identification of media content and, accordingly, in step 213a, the DMS may directly transform and slice the media content. Such as converting and slicing the media content according to a default slice size and a default bitrate.
214. And the DMS sends the MPD information corresponding to the media content acquired by the DMS to the DMC, wherein the MPD information is the URI of the MPD.
213. If the DMS determines that the media content does not have the functions of slicing and converting the media content in step 212, the DMS acquires the MPD corresponding to the media content from the wide area network, for example, the DMS may acquire the MPD corresponding to the media content from a first server or a second server of the wide area network.
For example, the first server may be a server of a media content provider in a wide area network, and the second server may be a cloud server in the wide area network.
Accordingly, step 214 is executed, and the DMS sends, to the DMC, information of an MPD corresponding to the media content acquired by the DMS.
Alternatively, on the basis of the above-described embodiment, as shown in fig. 2C, step 213 may include sub-steps 2131 to 2136 as follows.
2131. If the DMS determines that the function of slicing and converting the media content is not available, the DMS sends a search request to the first server, wherein the search request is used for enabling the first server to determine whether the first server has an MPD corresponding to the media content.
2132. The first server determines whether the first server has an MPD corresponding to the media content according to the search request, if so, executes step 2133, otherwise, executes step 2134.
2133. If the first server in step 2132 has the MPD corresponding to the media content, the DMS receives the MPD corresponding to the media content sent by the first server. The MPD comprises: and the URI list of the slice corresponding to at least one code rate.
Optionally, the DMS may further receive an MPD and a slice corresponding to the media content sent by the first server.
It should be noted that, if the DMS receives the MPD and the slice sent by the first server, an Internet Protocol (IP) address in a URI included in the MPD points to a location of the slice in the DMS.
2134. If the first server in step 2132 does not have the MPD corresponding to the media content, the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates an MPD and a slice corresponding to the media content according to the at least one code rate and the at least one slice size.
Optionally, if the size of the slice and at least one code rate are preset in the second server, in step 2134, the second MPD acquisition request sent by the DMS to the second server may include: media content;
accordingly, the second server may directly generate the MPD and the slice corresponding to the media content. For example, the second server may generate the MPD and the slice corresponding to the media content according to a preset slice size and at least one preset code rate.
Or,
if the size of the slice is preset in the second server, in step 2134, the second MPD acquisition request sent by the DMS to the second server may include: media content and at least one bit rate;
accordingly, the second server may generate the MPD and the slice corresponding to the media content according to at least one code rate.
Or
If at least one code rate is preset in the second server, in step 2134, the second MPD acquisition request sent by the DMS to the second server may include: the size of the media content and the slice;
accordingly, the second server may generate the MPD and the slice corresponding to the media content according to the size of the slice.
In another embodiment, if in the step 211, the first MPD acquisition request includes: the identification of the media content and the at least one code rate, in this case, in step 2134, the second MPD acquisition request sent by the DMS to the second server may include: media content, at least one bit rate; accordingly, the second server may generate an MPD and a slice corresponding to the media content according to the at least one code rate.
Or,
in step 2134, the sending, by the DMS, the second MPD acquisition request to the second server may include: media content; accordingly, the second server may generate an MPD and a slice corresponding to the media content.
Or
The first MPD acquisition request in step 211 includes: the identification of the media content, the at least one bitrate, and the size of the slice, in this case, in step 2134, the second MPD acquisition request that the DMS further sends to the second server may include: media content, at least one bit rate; accordingly, the second server may generate an MPD and a slice corresponding to the media content according to the at least one code rate;
alternatively, in step 2134, the second MPD acquisition request sent by the DMS further to the second server may include: media content; accordingly, the second server may generate an MPD and a slice corresponding to the media content.
2135. And the second server sends the MPD and the slice corresponding to the generated media content to the DMS, or the second server sends the MPD corresponding to the generated media content to the DMS.
Alternatively, on the basis of the above-described embodiment, as shown in fig. 2D, step 213 may include sub-steps 2131 'to 2132' as follows.
2131', and the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates an MPD and a slice corresponding to the media content according to the at least one code rate and the at least one slice size.
Optionally, if the size of the slice and the preset code rate are preset in the second server, the second MPD acquisition request may include: at this time, the second server may directly generate the MPD and the slice corresponding to the media content, for example, the MPD and the slice corresponding to the media content are generated according to a preset slice size and a preset code rate.
In another optional application scenario, step 2131' may also be the following step 2131 ":
2131 ", the DMS sends a second MPD acquisition request to the second server, where, if the second server presets a slice size, the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the at least one code rate.
For example, the second server may generate an MPD and a slice corresponding to the media content according to at least one coding rate and a preset slice size.
2132', and receiving, by the DMS, an MPD corresponding to the media content sent by the second server, or receiving, by the DMS, the MPD and the slices corresponding to the media content sent by the second server, where the MPD includes a URI list of the slices corresponding to the at least one bitrate.
As can be seen from the foregoing embodiments, in the method for playing media content according to this embodiment, when the DMS does not have a function of converting and slicing media content, the MPD and/or the slice of the current media content is obtained from the wide area network, so that slicing of non-sliced media content with various bit rates is implemented, and further, a problem in the prior art that how non-sliced media content cannot be smoothly played in an unstable network is solved.
Fig. 3A illustrates a method for playing media content according to an embodiment of the present invention, and as shown in fig. 3A, the method for playing media content according to the embodiment is as follows.
301. The DMS receives a first MPD acquisition request sent by the DMC, and the first MPD acquisition request may include: the identification of the media content, the first code rate and the size of the slice are obtained, and the first MPD obtaining request is used for indicating the DMS to obtain an MPD corresponding to the media content; wherein the first MPD acquisition request is sent when there is no information of a slice of a first code rate corresponding to the identifier on the DMS.
That is, the first MPD acquisition request is sent without information for a first rate slice of media content on the DMS.
For example, the slice may be a 2s slice, that is, a slice may play for 2s, or an 8s slice, that is, a slice may play for 8s, and the size of the slice in this embodiment is merely an example, and is not limited thereto.
Optionally, in an embodiment, if a slice size is preset in the DMS, the first MPD acquisition request may include: an identification of the media content and a first bitrate.
302. The DMS determines the media content according to the identifier, converts and slices the media content, and generates an MPD corresponding to the media content, or the DMS acquires the MPD corresponding to the media content from a wide area network, or the DMS acquires the MPD and the slice corresponding to the media content from the wide area network, where the MPD includes: and the URI list of the slice corresponding to the first code rate.
For example, the DMS may obtain an MPD corresponding to the media content from a first server or a second server of a wide area network; or,
the DMS may obtain an MPD and a slice corresponding to the media content from a first server or a second server of a wide area network.
303. And the DMS sends the MPD information corresponding to the media content acquired by the DMS to the DMC, wherein the MPD information is the URI of the MPD.
As can be seen from the foregoing embodiments, in the method for playing media content according to the present embodiment, the DMS converts and slices the media content, so as to realize that the non-sliced media content has a slice with the first code rate, and further solve the problem in the prior art that how the non-sliced media content cannot be smoothly played in an unstable network.
Fig. 3B illustrates a method for playing media content according to an embodiment of the present invention, and as shown in fig. 3B, the method for playing media content according to the embodiment is as follows.
311. The method includes that a DMS receives a first MPD acquisition request sent by a DMC and used for instructing the DMS to acquire an MPD corresponding to media content, and the first MPD acquisition request includes: an identity of the media content, a first bitrate, and a size of a slice; wherein the first MPD acquisition request is sent when there is no information of a slice of a first code rate corresponding to the identifier on the DMS.
For example, in the present embodiment, the size of the slice is 4 s.
In this embodiment, the acquiring the first MPD request includes: the identifier of the media content, the first bitrate, and the size of the slice are described as an example, in other embodiments, the first MPD acquisition request includes: an identification of the media content and a first bitrate.
312. The DMS determines whether there is a function of slicing and converting the media contents, and if so, performs step 313a, otherwise, performs step 313.
313a, if the DMS in step 212 determines that the function of slicing and converting the media content is available, the DMS determines the media content according to the identifier, and converts and slices the media content according to the first code rate and the size of the slice, so as to generate an MPD corresponding to the media content, where the MPD includes: and the URI list of the slice corresponding to the first code rate.
It should be noted that, in step 311, if the first MPD acquisition request includes: the identification of the media content and the first bitrate, the DMS transforms and slices the media content according to the first bitrate in step 213 a.
314. And the DMS sends the MPD information corresponding to the media content acquired by the DMS to the DMC, wherein the MPD information is the URI of the MPD.
313. If the DMS determines that the media content does not have the functions of slicing and converting the media content in step 312, the DMS acquires the MPD corresponding to the media content from the wide area network, for example, the DMS may acquire the MPD corresponding to the media content from a first server or a second server of the wide area network.
For example, the first server may be a server of a media content provider in a wide area network, and the second server may be a cloud server in the wide area network.
Accordingly, step 314 is executed, and the DMS sends, to the DMC, information of the MPD corresponding to the media content acquired by the DMS.
Alternatively, on the basis of the above-described embodiment, as shown in fig. 3C, step 313 may include sub-steps 3131 to 3136 as follows.
3131. If the DMS determines that the function of slicing and converting the media content is not available, the DMS sends a search request to the first server, wherein the search request is used for enabling the first server to determine whether the MPD corresponding to the media content in the first server includes the information of the slice corresponding to the first code rate.
3132. The first server determines whether the MPD corresponding to the media content in the first server has information of a slice corresponding to the first bitrate according to the search request, and if so, performs step 3133, otherwise, performs step 3134.
3133. If the MPD corresponding to the media content in the first server in step 3132 has information of a slice corresponding to the first bitrate, the MPD receives the MPD corresponding to the media content sent by the first server, where the MPD includes a URI list of the slice corresponding to the first bitrate.
Optionally, the DMS may further receive an MPD and a slice corresponding to the media content sent by the first server.
3134. If the MPD corresponding to the media content in the first server in step 3132 does not have information of the slice corresponding to the first bitrate, the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the first code rate and the slice size.
Or, if there is no MPD corresponding to the media content in the first server in step 3132, in this case, the DMS may also send a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the first code rate and the slice size, wherein the MPD comprises a U RI list of the slices corresponding to the first code rate.
Optionally, if the size of the slice is preset in the second server, the second MPD acquisition request may include the media content and the first code rate, so that the second server generates the MPD and the slice corresponding to the media content according to the first code rate, where the MPD includes a URI list of the slice corresponding to the first code rate.
In another embodiment, if in step 311, the first MPD acquisition request includes: the identification of the media content and the first bitrate, at this time, in step 3134, the second MPD acquisition request sent by the DMS to the second server may include: media content, first bit rate; accordingly, the second server may generate an MPD and a slice corresponding to the media content according to the first code rate.
Or,
the first MPD acquisition request in step 311 includes: the identification of the media content, the first bitrate, and the size of the slice, in step 3134, the second MPD acquisition request that the DMS may further send to the second server may include: media content, first bit rate; accordingly, the second server may generate an MPD and a slice corresponding to the media content according to the first code rate.
3135. And the second server sends the MPD and the slice corresponding to the generated media content to the DMS, or the second server sends the MPD corresponding to the generated media content to the DMS.
Alternatively, on the basis of the above-described embodiment, as shown in fig. 3D, step 313 may include sub-steps 3131 'to 3132' as follows.
3131', the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the first code rate and the slice size.
In an alternative application scenario, step 3131' may also be the following step 3131 ":
3131 ″ the DMS sends a second MPD acquisition request to the second server, where the second MPD acquisition request includes: the second server generates MPD and slices corresponding to the media content according to the first code rate.
3132' and the DMS receives an MPD corresponding to the media content sent by the second server, or the DMS receives an MPD and a slice corresponding to the media content sent by the second server, where the MPD includes a URI list of a slice corresponding to the first bitrate.
As can be seen from the foregoing embodiments, in the method for playing media content according to this embodiment, when the DMS does not have the function of converting and slicing the media content, slicing at the first bit rate of the non-sliced media content is implemented by using the first server or the second server of the wide area network, so as to solve the problem in the prior art that how the non-sliced media content cannot be smoothly played in an unstable network.
Fig. 4 illustrates a method for playing media content according to an embodiment of the present invention, and as shown in fig. 4, the method for playing media content in this embodiment is as follows.
401. When there is no MPD corresponding to media content in a DMS, or there is no information of a slice of a first bitrate of the media content on the DMS, sending a first MPD acquisition request for acquiring the MPD of the media content to the DMS, where the first MPD acquisition request includes: the identification of the media content is used for enabling the DMS to determine the media content according to the identification, convert and slice the media content and generate the MPD of the media content, or enabling the DMS to acquire the MPD of the media content from a wide area network;
402. and receiving the information of the MPD of the media content sent by the DMS.
It should be noted that, in step 401, if there is no MPD corresponding to the media content in the DMS, at this time, the MPD sends the first MPD acquisition request to the DMS, where the MPD includes: a URI list of a slice corresponding to at least one code rate, where the information of the MPD in step 402 is a URI of the MPD;
or, in step 401, if there is no information on the DMS about the slice of the media content at the first bitrate, and at this time, a first MPD acquisition request is sent to the DMS, where the MPD includes: and a list of slices corresponding to the first code rate, wherein the information of the MPD in step 402 is a URI of the MPD.
Preferably, in a specific application, the method for playing media content further includes the following step 403 not shown in fig. 4:
403. and sending the information of the MPD to a DMR (digital media recorder), so that the DMR acquires the MPD corresponding to the information of the MPD from the DMS according to the information of the MPD, and further requests the DMS or a wide area network for slicing and playing media content according to the MPD.
It is understood that, after receiving the information of the MPD, the DMR first acquires the MPD from the DMS or the wide area network, and then acquires a slice of the media content from the DMS or the wide area network according to the MPD and plays the slice.
It should be noted that the execution main body of the above steps 401 to 403 may be a DMC, or may be a device having a DMC function.
It is understood that, in practical applications, the DMC and the DMR may be integrated into one device, and thus, any device having the function of the DMC can implement the method for playing the media contents in fig. 1 to 4.
It can be seen from the foregoing embodiments that, the method for playing media content in this embodiment solves the problem in the prior art that how media content without slices cannot be smoothly played in an unstable network.
According to another aspect of the present invention, the present invention also provides a media server, as shown in fig. 5, the media server shown in fig. 5 including: a receiving unit 51, an MPD acquiring unit 52, and a transmitting unit 53;
the receiving unit 51 is configured to receive a first MPD acquisition request sent by a DMC, where the first MPD acquisition request includes: the first MPD acquisition request is used for indicating the DMS to acquire an MPD corresponding to the media content;
the MPD obtaining unit 52 is configured to determine the media content according to the identifier, convert and slice the media content, and generate an MPD corresponding to the media content, or obtain an MPD corresponding to the media content from a wide area network, or obtain an MPD and a slice corresponding to the media content from the wide area network;
the sending unit 53 is configured to send, to the DMC, information of an MPD corresponding to the media content acquired by the DMS;
the first MPD acquisition request is sent when there is no MPD corresponding to the media content on the DMS, or the first MPD acquisition request is sent when there is no information of a slice of a first bitrate corresponding to the identifier on the DMS.
For example, if the first MPD acquisition request is sent on the DMS without an MPD corresponding to the media content, the MPD includes: a URI list of a slice corresponding to at least one code rate, wherein the MPD information is a Uniform Resource Identifier (URI) of the MPD;
or,
if the first MPD acquisition request is sent when there is no information of a slice of the first code rate corresponding to the identifier on the DMS, the MPD accordingly includes: and the information of the MPD is the URI of the MPD.
In an application scenario, if the first MPD acquisition request is sent when there is no MPD for media content on the DMS, the first MPD acquisition request may further include: at least one code rate and slice size;
or,
if the first MPD acquisition request is sent on the DMS without the MPD for the media content, the first MPD acquisition request may further include: at least one code rate.
In another application scenario, if the first MPD acquisition request is sent on the DMS without information of a slice with a first bitrate corresponding to the identifier of the media content, the first MPD acquisition request further includes: a first code rate and a size of a slice;
or,
if the first MPD acquisition request is sent when there is no information of a slice with a first bitrate corresponding to the identifier of the media content on the DMS, the first MPD acquisition request further includes: a first code rate.
Further, in a third application scenario, the above-mentioned media server may further include a determining unit 54, which is not shown in the figure, where the determining unit 54 is configured to determine whether the DMS has a function of slicing and converting the media content, and if the determining unit 54 determines that the DMS has a function of slicing and converting the media content, the MPD obtaining unit 52 is configured to determine the media content according to the identifier, and convert and slice the media content; otherwise, the MPD acquiring unit 52 is configured to acquire an MPD corresponding to the media content from a wide area network, or the MPD acquiring unit is configured to acquire an MPD and a slice corresponding to the media content from the wide area network.
Optionally, the receiving unit 51 is further configured to receive an MPD acquisition message sent by the DMR according to the MPD information of the media content;
correspondingly, the sending unit 53 is further configured to send an MPD corresponding to information of an MPD to the DMR according to the MPD acquisition message, where the information of the MPD in the DMR is sent to the DMR by the DMC;
the receiving unit 51 is further configured to receive an MPD transmission slice acquisition request corresponding to the media content and sent by the DMR;
the sending unit 53 is further configured to send the slice of the media content to the DMR.
The media server in this embodiment can solve the problem that media content without slices in the media server in the prior art cannot be smoothly played in the DMR.
In practical applications, the media server may include a processor and a memory, where the processor is configured to implement the functions implemented by the receiving unit 51, the MPD obtaining unit 52 and the sending unit 53, and further implement the function implemented by the determining unit 54; the memory is used for storing the MPD and the media content.
According to another aspect of the present invention, there is also provided an apparatus, as shown in fig. 6, which may include: a transmitting unit 61 and a receiving unit 62;
the sending unit 61 is configured to send a first MPD acquisition request for acquiring an MPD of the media content to the DMS, where the first MPD acquisition request includes: the identification of the media content is used for enabling the DMS to determine the media content according to the identification, convert and slice the media content and generate the MPD of the media content, or enabling the DMS to acquire the MPD of the media content from a wide area network;
the receiving unit 62 is configured to receive information of an MPD of the media content sent by the DMS;
the first MPD acquisition request is transmitted by the transmitting unit when there is no MPD corresponding to the media content in the DMS, or the first MPD acquisition request is transmitted by the transmitting unit when there is no information on a slice at a first bitrate of the content in the DMS.
Optionally, the sending unit 61 is further configured to send the information of the MPD to a media playing device DMR, so that the DMR acquires, according to the information of the MPD, the MPD corresponding to the information of the MPD from the DMS, and further requests, according to the MPD, the DMS or a wide area network for a slice of media content and plays the slice.
The above-mentioned device may be, for example, a device having DMC functionality.
The device in this embodiment can slice media content that is not streaming in the DMR in the DMS or in the wide area network, thereby achieving smooth playback of the media content in the DMR.
In practical applications, the above mentioned device with DMC function may include a processor and a memory, where the processor is configured to implement the functions implemented by the above mentioned sending unit 61 and receiving unit 62, and the memory is configured to store the MPD or store information of the MPD, and the like. The embodiment is merely an example, and does not limit the functional division form of the device having the DMC function.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.