WO2016095434A1 - 播放多媒体资源方法及其装置、存储介质 - Google Patents

播放多媒体资源方法及其装置、存储介质 Download PDF

Info

Publication number
WO2016095434A1
WO2016095434A1 PCT/CN2015/079968 CN2015079968W WO2016095434A1 WO 2016095434 A1 WO2016095434 A1 WO 2016095434A1 CN 2015079968 W CN2015079968 W CN 2015079968W WO 2016095434 A1 WO2016095434 A1 WO 2016095434A1
Authority
WO
WIPO (PCT)
Prior art keywords
multimedia file
information
played
multimedia
file information
Prior art date
Application number
PCT/CN2015/079968
Other languages
English (en)
French (fr)
Inventor
李鸳
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016095434A1 publication Critical patent/WO2016095434A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/445Receiver circuitry for the reception of television signals according to analogue transmission standards for displaying additional information

Definitions

  • the present invention relates to multimedia technologies, and in particular, to a method, a controller, a player, a renderer, a server, and a storage medium for playing multimedia resources.
  • the Digital Living Network Alliance aims to address the issue of device connectivity in digital home networks and the unrestricted sharing of digital media and content services.
  • the DLNA includes: a digital media server (DMS, Digital Media Server), a digital media player (DMP, Digital Media Player), a digital media renderer (DMR, Digital Media Render), and a digital media controller (DMC, Digital Media Controller). And the like; wherein the DMS is used to share multimedia resources in the DLNA, the DMP and the DMR are used to play the multimedia resources shared by the DMS; here, the DMS and the DMR are devices that provide services and can be found And being accessed/operated; the DMP and DMC are control points for discovering and accessing/operating DMS and DMR devices providing services.
  • DMS Digital Media Server
  • DMP Digital Media Player
  • DMR Digital Media renderer
  • DMC Digital Media Controller
  • the DLNA multimedia management adopts a Universal Plug and Play (UPnP) protocol; and the DMS supports a Content Directory Service (CDS, Content Directory Service) and a Connection Management Service (CMS, Connection Manager) in the UPnP protocol. Service), etc.; the DMR supports CMS and Audio/Video Transmission Service (AVT, AVTransport Service) and the like.
  • UDP Universal Plug and Play
  • CDS Content Directory Service
  • CMS Connection Management Service
  • AVT Audio/Video Transmission Service
  • the prior art often solves the above problem by sending media files and external subtitles into a new multimedia file on a media server for DMP/DMR playback; however, the existing solution requires a professional stream.
  • the media server does not have such professional equipment in the general family. Therefore, the existing solution described above is not convenient for promotion.
  • the embodiments of the present invention provide a method, a controller, a player, a renderer, a server, and a storage medium for playing a multimedia resource, which can synchronously play multimedia content and correspond to the multimedia content.
  • An embodiment of the present invention provides a method for playing a multimedia resource, which is applied to a digital media controller DMC.
  • the method includes: acquiring multimedia file information to be played; and the multimedia file information to be played includes a common resource of an external subtitle. An identifier URI; transmitting the multimedia file information to be played to the digital media renderer DMR.
  • the obtaining the multimedia file information to be played includes: acquiring the identification information corresponding to the multimedia file information to be played; transmitting the multimedia file request message carrying the identification information; and receiving the multimedia generated based on the multimedia file request message a file response message; the multimedia file response message carries the multimedia file information to be played corresponding to the identifier information.
  • the method further includes:
  • the playback capability information includes: transmission protocol information and multimedia format information supported by the DMR;
  • the transmission capability information includes: transmission protocol information and multimedia format information supported by the DMS;
  • the digital media renderer DMR is controlled to acquire and play the multimedia content and the external subtitle content corresponding to the multimedia file information to be played;
  • the media resource capability information includes: the to-be-played Multimedia format information for multimedia file information and supported transport protocol information.
  • a method for playing a multimedia resource is applied to a digital media player DMP; the method includes: acquiring multimedia file information to be played; and the multimedia file information to be played includes an external resource identifier URI of the external subtitle; The external subtitle universal resource identifier URI obtains the external subtitle content corresponding to the multimedia file information to be played.
  • the multimedia file information further includes a multimedia file universal resource identifier URI
  • the method further includes: acquiring, according to the multimedia file universal resource identifier URI, the multimedia file information to be played.
  • the multimedia content playing the external subtitle content corresponding to the multimedia file information to be played and the multimedia content.
  • a method for playing a multimedia resource which is applied to a digital media renderer DMR; the method includes: receiving multimedia file information to be played; the multimedia file information to be played includes an external resource identifier URI of an external subtitle; The external subtitle universal resource identifier URI is used to obtain the content of the external subtitle corresponding to the multimedia file information to be played.
  • the multimedia file information further includes a multimedia file universal resource identifier URI
  • the method further includes: acquiring, according to the multimedia file universal resource identifier URI, the multimedia file information to be played.
  • the multimedia content playing the external subtitle content corresponding to the multimedia file information to be played and the multimedia content.
  • a method for playing a multimedia resource is applied to a digital media server DMS.
  • the method includes: setting an external subtitle universal resource identifier URI in the multimedia file information; and storing an external subtitle universal resource identifier URI corresponding to the multimedia file information.
  • the method further includes: receiving a multimedia file request message; the multimedia file request message carries identifier information corresponding to the multimedia file information to be played; And the multimedia file response message generated by the multimedia file request message; the multimedia file response message carries the multimedia file information to be played corresponding to the identifier information; and the multimedia file information to be played includes the external subtitle Universal Resource Identifier URI.
  • a digital media controller comprising:
  • a first acquiring unit configured to acquire multimedia file information to be played; the multimedia file information to be played includes an external subtitle universal resource identifier URI;
  • the first sending unit is configured to send the multimedia file information to be played to the digital media renderer DMR.
  • the first obtaining unit includes:
  • the first obtaining sub-unit is configured to obtain the identifier information corresponding to the multimedia file information to be played;
  • a first message sending subunit configured to send a multimedia file request message carrying the identifier information
  • the first message receiving subunit is configured to receive a multimedia file response message generated by the multimedia file request message, where the multimedia file response message carries the multimedia file information to be played corresponding to the identification information.
  • the controller further includes: a matching unit; correspondingly,
  • the first obtaining unit is further configured to acquire the playing capability information of the digital media renderer DMR;
  • the playing capability information includes: the transport protocol information and the multimedia format information supported by the DMR;
  • the transmission capability information includes: transmission protocol information and multimedia format information supported by the DMS;
  • the matching unit is configured to determine that the playback capability information, the transmission capability information, and the media resource capability information of the multimedia file information to be played are matched, and the digital media renderer DMR is controlled to acquire and play the to-be-played Multimedia file information corresponding to multimedia Content and external subtitle content;
  • the media resource capability information includes: multimedia format information of the multimedia file information to be played and supported transmission protocol information.
  • a digital media player comprising:
  • a second acquiring unit configured to acquire multimedia file information to be played; the multimedia file information to be played includes an external subtitle universal resource identifier URI;
  • the third obtaining unit is configured to acquire the content of the external subtitle corresponding to the multimedia file information to be played according to the external subtitle universal resource identifier URI.
  • the multimedia file information further includes a multimedia file universal resource identifier URI, and correspondingly, the player further includes: a first playing unit;
  • the third acquiring unit is further configured to acquire the multimedia content corresponding to the multimedia file information to be played according to the multimedia file universal resource identifier URI;
  • the first playing unit is configured to play the external subtitle content and the multimedia content corresponding to the multimedia file information to be played.
  • a digital media renderer that includes:
  • a first receiving unit configured to receive multimedia file information to be played; the multimedia file information to be played includes an external subtitle universal resource identifier URI;
  • the fourth obtaining unit is configured to acquire the external subtitle content corresponding to the multimedia file information to be played based on the external subtitle universal resource identifier URI.
  • the multimedia file information further includes a multimedia file universal resource identifier URI, and correspondingly, the renderer further includes: a second playing unit;
  • the fourth obtaining unit is further configured to acquire the multimedia content corresponding to the multimedia file information to be played according to the multimedia file universal resource identifier URI;
  • the second playing unit is configured to play the external subtitle content and the multimedia content corresponding to the multimedia file information to be played.
  • a digital media server comprising:
  • a setting unit configured to set an external subtitle universal resource identifier URI in the multimedia file information
  • a storage unit configured to store an external subtitle universal resource identifier URI corresponding to the multimedia file information.
  • the server further includes:
  • a second receiving unit configured to receive a multimedia file request message, where the multimedia file request message carries identifier information corresponding to the multimedia file information to be played;
  • a second sending unit configured to send a multimedia file response message generated based on the multimedia file request message, where the multimedia file response message carries the multimedia file information to be played corresponding to the identification information;
  • the multimedia file information includes an external subtitle universal resource identifier URI.
  • the method for playing a multimedia resource, the controller, the player, the renderer, the server, and the storage medium are provided in the embodiment of the present invention, and the external file identifier (URI, Uniform Resource Identifier) is carried in the multimedia file information, so that the number is
  • the media controller or the digital media player can acquire the external subtitle content corresponding to the multimedia file information to be played based on the external subtitle universal resource identifier URI, and further, to synchronously play the multimedia content and correspond to the multimedia content.
  • the content of the external subtitles lays the foundation.
  • FIG. 1 is a schematic flowchart 1 of an implementation process of a method for playing a multimedia resource according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a digital media controller according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a first acquiring unit according to an embodiment of the present invention.
  • FIG. 4 is a second schematic diagram of an implementation process of a method for playing a multimedia resource according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a digital media player according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart 3 of an implementation process of a method for playing a multimedia resource according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a digital media renderer according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart 4 of an implementation process of a method for playing a multimedia resource according to an embodiment of the present invention
  • FIG. 9 is a schematic structural diagram of a digital media server according to an embodiment of the present invention.
  • FIG. 10 is a schematic flowchart 1 of a specific implementation of a method for playing a multimedia resource according to an embodiment of the present invention
  • FIG. 11 is a second schematic flowchart of a specific implementation of a method for playing a multimedia resource according to an embodiment of the present invention.
  • FIG. 12 is a third schematic flowchart of a specific implementation of a method for playing a multimedia resource according to an embodiment of the present invention.
  • the DMP obtains the DMS shared multimedia file information through the Browse and Search of the CDS, and matches the acquired multimedia file information with its own playback capability, such as a supported media format and a transmission protocol, and further According to the user's choice, play the corresponding playable media.
  • the DMC acquires the shared multimedia file information in the DMS through the Browse and Search actions of the CDS, and acquires the playback capability information of the DMR through the CMS, such as a supported media format and a transmission protocol, etc.;
  • the DMC matches the multimedia file information shared by the DMS with the media format and transmission protocol supported by the DMR; when the matching is determined, the DMC passes the AVT service according to the playable media selected by the user.
  • the SetAVTransportURI action informs the DMR of the ID (identity) and URI of the multimedia resource to be played, so that the DMR acquires the multimedia content from the DMS and plays according to the instruction of the DMC.
  • the embodiment of the present invention provides a method, a controller, a player, and a renderer for playing a multimedia resource.
  • the present invention is implemented in conjunction with the accompanying drawings. The embodiments are described in detail, and the accompanying drawings are for the purpose of illustration.
  • FIG. 1 is a schematic flowchart 1 of an implementation process of a method for playing a multimedia resource according to an embodiment of the present invention; the method is applied to a digital media controller DMC; as shown in FIG. 1 , the method includes:
  • Step 101 Acquire multimedia file information to be played; the multimedia file information to be played includes an external subtitle universal resource identifier URI;
  • the acquiring the multimedia file information to be played includes:
  • the method is applied to a DLNA system including the DMC; when the DLNA system further includes a DMR and a DMS, the DMC controls the DMR to play multimedia content; specifically, the DMC Obtaining multimedia file information to be played to the DMS;
  • the DMC obtains the multimedia file information to be played to the DMS, including:
  • the DMC sends a multimedia file request message to the DMS based on the identifier information corresponding to the multimedia file information to be played; wherein the multimedia file request message carries the identifier information, so as to be acquired according to the identifier information.
  • the DMS generates a multimedia file response message according to the multimedia file request message, where the response message of the multimedia file carries the multimedia file information to be played corresponding to the identifier information.
  • the multimedia file information to be played includes an external subtitle universal resource identifier URI;
  • the multimedia file information to be played by the DMS to the DMC carries the external subtitle URI, so that the DMC can inform the external subtitle URI corresponding to the multimedia file information to be played by the DMR, so
  • the DMR is configured to obtain the content of the external subtitle according to the external subtitle URI, so as to play the multimedia content while playing the external subtitle.
  • Step 102 Send the multimedia file information to be played to the digital media renderer DMR.
  • the DMC sends the multimedia file information to be played to the digital media renderer DMR, and thus controls the DMR to obtain the external subtitle content corresponding to the multimedia file information to be played.
  • the method further includes:
  • the playback capability information includes: transmission protocol information and multimedia format information supported by the DMR;
  • the transmission capability information includes: transmission protocol information and multimedia format information supported by the DMS;
  • the digital media renderer DMR Determining, by the digital media renderer DMR, acquiring and playing the multimedia corresponding to the multimedia file information to be played, when determining that the playback capability information, the transmission capability information, and the media resource capability information of the multimedia file information to be played are matched Content and external subtitle content;
  • the media resource capability information includes: multimedia format information of the multimedia file information to be played and supported transmission protocol information.
  • the DMC also needs to obtain the playback capability information of the DMR, the transmission capability information of the DMS, and the media resource capability information of the multimedia file information to be played, and thus, the playback capability information, the transmission capability information, and the media resource are determined. Whether the capability information matches, when the three match, the DMC controls the DMR to acquire and play the multimedia content and the external subtitle content corresponding to the multimedia file information to be played.
  • the DMR acquires the multimedia content from the DMS; when the subtitle content corresponding to the multimedia file information to be played is not stored in the DMS, the DMR is based on the plugin
  • the subtitle universal resource identifier URI acquires the external subtitle content corresponding to the multimedia file information to be played, so that the DMR can obtain the multimedia content and the external subtitle content corresponding to the multimedia file information to be played, in order to achieve synchronization
  • the basis for playing multimedia files and subtitle content corresponding to multimedia files is laid.
  • the multimedia content of the multimedia file information to be played corresponds to the content of the external subtitle.
  • the embodiment of the present invention further provides a digital media controller.
  • the controller includes:
  • the first obtaining unit 21 is configured to acquire multimedia file information to be played; the multimedia file information to be played includes an external subtitle universal resource identifier URI;
  • the first sending unit 22 is configured to send the multimedia file information to be played to the digital media renderer DMR.
  • the first acquiring unit 21 includes:
  • the first obtaining sub-unit 211 is configured to acquire identification information corresponding to the multimedia file information to be played;
  • the first message sending subunit 212 is configured to send a multimedia file request message carrying the identifier information
  • the first message receiving sub-unit 213 is configured to receive a multimedia file response message generated based on the multimedia file request message, where the multimedia file response message carries the multimedia file information to be played corresponding to the identification information.
  • the controller further includes: a matching unit 23; correspondingly,
  • the first obtaining unit 21 is further configured to acquire the playing capability information of the digital media renderer DMR; the playing capability information includes: the transport protocol information and the multimedia supported by the DMR Format information
  • the transmission capability information includes: transmission protocol information and multimedia format information supported by the DMS;
  • the matching unit 23 is configured to determine that the playback capability information, the transmission capability information, and the media resource capability information of the multimedia file information to be played are matched, and the digital media renderer DMR is controlled to acquire and play the to-be-matched
  • the media resource capability information includes: multimedia format information of the multimedia file information to be played and supported transmission protocol information.
  • the first obtaining unit 21, the first sending unit 22, and the matching unit 23 can all run on the digital media controller DMC, and can be a central processing unit (CPU) or a microprocessor (MPU) located on the digital media controller DMC. ), or digital signal processor (DSP), or programmable gate array (FPGA) implementation.
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA programmable gate array
  • a first computer readable storage medium is provided in the embodiment of the present invention.
  • the storage medium includes a set of instructions for performing the method for playing a multimedia resource according to the first embodiment.
  • FIG. 4 is a schematic flowchart 2 of an implementation process of a method for playing a multimedia resource according to an embodiment of the present invention; the method is applied to a digital media player DMP; as shown in FIG. 4, the method includes:
  • Step 401 Acquire multimedia file information to be played; the multimedia file information to be played includes an external subtitle universal resource identifier URI;
  • the multimedia file information further includes a multimedia file universal resource identifier URI
  • the method further includes:
  • the method is applied to a DLNA system that includes the DMP.
  • the DMP directly obtains multimedia file information to be played from the DMS.
  • the multimedia file information to be played carries the multimedia file universal resource identifier URI and the external subtitle universal resource identifier URI, so that the DMP can be based on the multimedia file universal resource identifier URI and the external subtitle universal resource identifier.
  • the URI obtains the multimedia content and the external subtitle content corresponding to the multimedia file information to be played, and thus can lay a foundation for synchronously playing the multimedia content and the external subtitle content.
  • Step 402 Acquire, according to the external subtitle universal resource identifier URI, the content of the external subtitle corresponding to the multimedia file information to be played.
  • the process for the DMP to obtain the multimedia file information to be played includes:
  • the DMP acquires identification information corresponding to the multimedia file information to be played
  • the DMP sends a multimedia file request message to the DMS based on the identifier information corresponding to the multimedia file information to be played;
  • the DMS generates a multimedia file response message according to the multimedia file request message, where the response message of the multimedia file carries the multimedia file information to be played corresponding to the identifier information.
  • the multimedia content corresponding to the multimedia file information to be played is stored in the DMS, but the subtitle content corresponding to the multimedia file information to be played is not stored in the DMS, And acquiring, by the DMP, the multimedia content corresponding to the multimedia file information to be played, to the DMS, based on the multimedia file universal resource identifier URI, and storing the content of the subtitle content based on the external subtitle universal resource identifier URI Acquiring the content of the external subtitle corresponding to the multimedia file information to be played, so that the DMP can obtain the multimedia content and the external subtitle content corresponding to the multimedia file information to be played, so as to synchronously play the multimedia file and the multimedia
  • the subtitle content corresponding to the file lays the foundation.
  • the embodiment of the present invention further provides a digital media player.
  • the player includes:
  • the second obtaining unit 51 is configured to acquire multimedia file information to be played; the multimedia file information to be played includes an external subtitle universal resource identifier URI;
  • the third obtaining unit 52 is configured to acquire the content of the external subtitle corresponding to the multimedia file information to be played according to the external subtitle universal resource identifier URI.
  • the multimedia file information further includes a multimedia file universal resource identifier URI
  • the player further includes: a first playing unit 53;
  • the third obtaining unit 52 is further configured to acquire the multimedia content corresponding to the multimedia file information to be played according to the multimedia file universal resource identifier URI;
  • the first playing unit 53 is configured to play the external subtitle content and the multimedia content corresponding to the multimedia file information to be played.
  • the second obtaining unit 51 and the third obtaining unit 52 can each run in the digital media player DMP, by a central processing unit (CPU), or a microprocessor (MPU), or a digital device located on the digital media player DMP.
  • CPU central processing unit
  • MPU microprocessor
  • DMP signal processor
  • FPGA programmable gate array
  • the first playback unit 53 can be implemented by a speaker or other player having a playback function located on the digital media renderer DMR.
  • a second computer readable storage medium is provided in the embodiment of the present invention.
  • the storage medium includes a set of instructions for performing the method for playing multimedia resources according to the second embodiment.
  • FIG. 6 is a schematic flowchart 3 of an implementation process of a method for playing a multimedia resource according to an embodiment of the present invention; the method is applied to a digital media renderer DMR; as shown in FIG. 6, the method includes:
  • Step 601 Receive multimedia file information to be played; the multimedia file information to be played includes an external subtitle universal resource identifier URI;
  • the method is applied to a DLNA system including the DMR;
  • the DMR plays the multimedia content through the control of the DMC; specifically, the DMC acquires the multimedia file information to be played to the DMS, and the to-be-played
  • the multimedia file information is sent to the DMR; the DMR receives the multimedia file information to be played; since the DMS does not store the subtitle content corresponding to the multimedia file information to be played, the multimedia file information includes
  • the external subtitle universal identifier URI is configured to enable the DMR to acquire the external subtitle content corresponding to the multimedia file information to be played according to the external subtitle universal resource identifier URI, so as to synchronously play the multimedia file and the multimedia
  • the subtitle content corresponding to the file lays the foundation.
  • Step 602 Acquire, according to the external subtitle universal resource identifier URI, the content of the external subtitle corresponding to the multimedia file information to be played.
  • the multimedia file information further includes a multimedia file universal resource identifier URI
  • the method further includes:
  • the embodiment of the present invention further provides a digital media renderer.
  • the renderer includes:
  • the first receiving unit 71 is configured to receive multimedia file information to be played; the multimedia file information to be played includes an external subtitle universal resource identifier URI;
  • the fourth obtaining unit 72 is configured to acquire the external subtitle content corresponding to the multimedia file information to be played based on the external subtitle universal resource identifier URI.
  • the multimedia file information further includes a multimedia file universal resource identifier URI
  • the renderer further includes: a second playing unit 73;
  • the fourth obtaining unit 72 is further configured to acquire the multimedia content corresponding to the multimedia file information to be played according to the multimedia file universal resource identifier URI;
  • the second playing unit 73 is configured to play the external subtitle content and the multimedia content corresponding to the multimedia file information to be played.
  • the first receiving unit 71 and the fourth obtaining unit 72 may each run on a digital media renderer DMR, which may be a central processing unit (CPU), or a microprocessor (MPU), or a digital device located on the digital media renderer DMR.
  • DMR digital media renderer
  • the second playback unit 73 can be implemented by a speaker or other player having a playback function located on the digital media renderer DMR.
  • a third computer readable storage medium is provided in the embodiment of the present invention.
  • the storage medium includes a set of instructions for performing the method for playing a multimedia resource according to Embodiment 3.
  • FIG. 8 is a schematic flowchart of an implementation process of a method for playing a multimedia resource according to an embodiment of the present invention; the method is applied to a digital media server DMS; as shown in FIG. 8, the method includes:
  • Step 801 Set an external subtitle universal resource identifier URI in the multimedia file information.
  • the method is applied to a DLNA system including the DMS; when the DLNA system further includes a DMC and a DMS, that is, when the DLNA system includes: DMS, DMC, and DMR,
  • the DMR plays the multimedia content through the control of the DMC; specifically, the DMC acquires the multimedia file information to be played to the DMS, and sends the multimedia file information to be played to the DMR; the DMR receives the The multimedia file information is played; since the subtitle content corresponding to the multimedia file information to be played is not stored in the DMS, at this time, the DMS is used for the purpose of synchronously playing the multimedia file and the subtitle content corresponding to the multimedia file.
  • the DMP can directly acquire multimedia file information to be played from the DMS, when the DMS does not store The subtitle content corresponding to the multimedia file information to be played, at this time, for the purpose of synchronously playing the multimedia file and the subtitle content corresponding to the multimedia file, the DMS sets the external subtitle universal resource identifier URI in the multimedia file, And the multimedia file universal identifier identifier URI and the external subtitle universal resource identifier URI are carried in the multimedia file information to be played, so that the DMP can be based on the multimedia file universal resource identifier URI and the external subtitle.
  • the resource identifier URI obtains the multimedia content and the external subtitle content corresponding to the multimedia file information to be played, and therefore, can lay a foundation for synchronously playing the multimedia content and the external subtitle content.
  • Step 802 Store an external subtitle universal resource identifier URI corresponding to the multimedia file information.
  • the method further includes:
  • the multimedia file request message carries identification information corresponding to the multimedia file information to be played;
  • the multimedia file response message carries the multimedia file information to be played corresponding to the identifier information; and the multimedia file information to be played includes the plug-in Subtitle Universal Resource Identifier URI.
  • the DMS receives a multimedia file request message; the multimedia file request message carries identification information corresponding to the multimedia file information to be played; thus, the DMS can determine the multimedia file information to be played based on the identification information; And sending a multimedia file response message carrying the multimedia file information to be played corresponding to the identification information to the DMC or the DMP, thereby establishing a synchronous play of the multimedia content and the external subtitle content.
  • the base wherein the multimedia file response message is generated by the DMS based on the multimedia file request message.
  • the embodiment of the present invention further provides a digital media server.
  • the server includes:
  • the setting unit 91 is configured to set an external subtitle universal resource identifier URI in the multimedia file information
  • the storage unit 92 is configured to store an external subtitle universal resource identifier URI corresponding to the multimedia file information.
  • the server further includes:
  • the second receiving unit 93 is configured to receive a multimedia file request message, where the multimedia file request message carries identifier information corresponding to the multimedia file information to be played;
  • the second sending unit 94 is configured to send a multimedia file response message generated based on the multimedia file request message, where the multimedia file response message carries the multimedia file information to be played corresponding to the identification information;
  • the multimedia file information includes an external subtitle universal resource identifier URI.
  • the setting unit 91, the storage unit 92, the second receiving unit 93, and the second sending unit 94 can all run on the digital media server DMS, and can be a central processing unit (CPU) located on the digital media server DMS, or a microprocessor. (MPU), or digital signal processor (DSP), or programmable gate array (FPGA) implementation.
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA programmable gate array
  • a fourth computer readable storage medium is provided in the embodiment of the present invention.
  • the storage medium includes a set of instructions for performing the method for playing a multimedia resource according to the fourth embodiment.
  • the embodiments of the present invention are applied to a DLNA, and the DLNA includes: DMS, DMP, DMR, and DMC.
  • Media resources are stored in the DMS, and the media resources include multimedia content and multimedia Subtitle content corresponding to the body content; however, some media content, such as audio and video files, often do not have subtitle content.
  • the subtitle content corresponding to the audio and video file is regarded as independent content, and the content is called external subtitle content;
  • the playback device needs to read the external subtitle content while reading the multimedia content, so that the multimedia content can be played synchronously with the external subtitle content, and the audio and video are played.
  • the corresponding subtitles are displayed.
  • the external subtitle attribute is added to the existing item element.
  • the purpose of synchronously playing the multimedia content and the external subtitle content is implemented. The specific implementation process is further described in detail below.
  • the CDS in UPnP defines an item element, wherein the item element is used to represent multimedia file information, and various attributes are defined under the item element for displaying various characteristics of the multimedia file information;
  • the attributes include, but are not limited to, the following: a title, a media classification, a protocol information, and a multimedia file URI; where the multimedia file URI is only used to indicate the location of the multimedia content file, and does not indicate the plug-in corresponding to the multimedia file content.
  • the embodiment of the present invention extends the item element to add the external subtitle attribute to the existing attributes of the item element.
  • the external subtitle attribute is used to represent the external subtitle URI;
  • the added subtitle attribute in the item element can be expressed as: ⁇ subtitle>URI ⁇ /subtitle>;
  • the attributes of the extended item element can be expressed as follows:
  • the transmission protocol of the external subtitle content is consistent with the transmission protocol of the multimedia content, and may be obtained from the protocolInfo of the res or obtained by other methods provided by the DLNA protocol.
  • FIG. 10 is a schematic flowchart 1 of a specific implementation of a method for playing a multimedia resource according to an embodiment of the present invention; when the DLNA includes: DMS, DMR, and DMC, as shown in FIG. 10, the method includes:
  • Step 1001 The DMC acquires multimedia file information shared by the DMS by using a Browse/Search action of the UPDP CDS; the shared multimedia file information includes a multimedia file URI and an external subtitle URI;
  • the step of acquiring the multimedia file information shared by the DMS includes:
  • the DMC browses or searches for multimedia file information shared by the DMS through the Browse/Search action of the UPDP CDS;
  • the DMS generates a response message based on the Browse/Search action and sends it to the DMC.
  • the DMS carries the multimedia file information, that is, the multimedia file information represented by the item element, on the output parameter Result of the response message in response to the Browse/Search action; and the attribute of the item element is extended with the plug-in.
  • a subtitle attribute wherein the hanging subtitle attribute includes an external subtitle URI; thus, the DMC is capable of acquiring multimedia file information based on the response message; wherein the multimedia file information includes a multimedia file URI and an external subtitle URI;
  • Step 1002 The DMC obtains the multimedia file information to be played from the shared multimedia file information, where the multimedia file information to be played includes the multimedia file.
  • Step 1003 The DMC informs the DMR of the multimedia file information to be played by the AVTransportURI action of the AVT.
  • the multimedia file information to be played includes the multimedia file URI, the external subtitle URI, and other resource information.
  • the input parameter AVTransportURIMetaData of the AVTransportURI action includes the multimedia file information to be played; wherein the multimedia file information to be played is represented by an item element, and the attribute of the item element is extended with an external subtitle attribute, that is, a subtitle attribute of the external subtitle; That is to say, the multimedia file information to be played by the AVTransportURIMetaData parameter includes the subtitle subtitle attribute; thus, the DMR can learn the external subtitle storage according to the subtitle attribute of the external subtitle included in the multimedia file information to be played in the input parameter.
  • the address lays a foundation for synchronous playback of the multimedia content and the external subtitle content.
  • Step 1004 After the DMR receives the play instruction from the DMC, the DMR acquires the external subtitle content corresponding to the multimedia file information to be played based on the external subtitle URI; and, based on the multimedia to be played.
  • the multimedia file URI included in the file information acquires the multimedia content to display the external subtitle content corresponding to the multimedia content when the multimedia content is played.
  • FIG. 11 is a schematic flowchart 2 of a specific implementation of a method for playing a multimedia resource according to an embodiment of the present invention; when the DLNA includes: DMS and DMP, as shown in FIG. 11, the method includes:
  • Step 1101 The DMP acquires multimedia file information shared by the DMS by using a Browse/Search action of the UPDP CDS; the shared multimedia file information includes a multimedia file URI and an external subtitle URI;
  • the step of acquiring the multimedia file information shared by the DMS includes:
  • the DMP browses or searches for multimedia file information shared by the DMS through a Browse/Search action of the UPDP CDS;
  • the DMS generates a response message based on the Browse/Search action and sends it to the DMC.
  • the DMS carries the multimedia file information, that is, the multimedia file information represented by the item element, on the output parameter Result of the response message in response to the Browse/Search action; and the attribute of the item element is extended with the plug-in.
  • a subtitle attribute wherein the hanging subtitle attribute includes an external subtitle URI; thus, the DMP is capable of acquiring multimedia file information based on the response message; wherein the multimedia file information includes a multimedia file URI and an external subtitle URI;
  • Step 1102 The DMP obtains multimedia file information to be played from the shared multimedia file information, where the multimedia file information to be played includes a multimedia file URI and an external subtitle URI;
  • Step 1103 After the DMP receives the play instruction from the user, the DMP obtains the content of the external subtitle corresponding to the multimedia file information to be played based on the external subtitle URI; and at the same time, based on the multimedia file information to be played.
  • the multimedia file URI included in the multimedia content is obtained to display the external subtitle content corresponding to the multimedia content when the multimedia content is played.
  • the embodiment of the present invention is applied to a 3-Box system of a DLNA, and the device involved includes: a DMC, a DMR, and a DMS; wherein the DMC is a control device and can be located on a mobile phone; the DMR and the DMS are devices that provide services.
  • the DMS provides a media sharing service, and the DMS can be located on a television set.
  • the DMS can be located on a Home Network Access Server (NAS) device.
  • NAS Home Network Access Server
  • the DMC can detect the DMR and the DMS, and then, according to the following method, the purpose of synchronously playing the audio and video files with the external subtitles, such as As shown in FIG. 12, the method includes:
  • Step 1201 The DMC located on the mobile phone passes through the CDS and the UPnP in the UPnP.
  • the CMS learns the transmission capability information of the DMS on the home NAS; the DMC browses the multimedia file information shared by the DMS through the Browse action of the CDS based on the transmission capability information;
  • the transmission capability information includes: transmission protocol information and multimedia format information supported by the DMS; and an external subtitle attribute, where the hanging subtitle attribute includes an external subtitle URI;
  • Step 1202 After receiving the request message triggered by the Browse action, the DMS generates a response message, where the output parameter Result carries multimedia file information, where the multimedia file information includes a multimedia file URI and External subtitle URI;
  • the DMS after receiving the request triggered by the Browse action, the DMS displays the external subtitle URI through the newly added subtitle subtitle attribute in the message replied to the DMC, so that the multimedia content is displayed and played when the multimedia content is played.
  • the content of the external subtitle corresponding to the content lays the foundation; the following is the Browse request and the process of responding to the request; specifically:
  • Step 1203 The DMC acquires the multimedia file information to be played from the shared multimedia file information based on the response message, where the multimedia file information to be played includes the multimedia file URI and the external subtitle URI;
  • Step 1204 The DMC accesses the CMS on the DMR to learn the playback capability information of the DMR, and obtains the media resource capability information of the multimedia file information to be played. Then, the DMC displays the playback capability information of the DMR, The transmission capability information of the DMS and the media resource capability information are matched to determine that the multimedia file information to be played can be played in the DMR;
  • the media resource capability information includes: multimedia format information of the multimedia file information to be played and supported transmission protocol information;
  • the playback capability information includes: transmission protocol information and multimedia format information supported by the DMR.
  • Step 1205 When the playback capability information, the transmission capability information, and the media resource capability information of the multimedia file information to be played are matched, the DMC sends the multimedia file information to be played through the SetAVTransportURI action of the AVT. To the DMR;
  • the multimedia file information to be played to be sent to the DMR includes a multimedia file.
  • the DMC after the user selects the playable media resource, that is, the multimedia file information to be played, the DMC establishes a connection between the DMS and the DMR through the CMS; and informs the DMR to play by using the SetAVTransportURI action of the AVT.
  • the multimedia file URI corresponding to the multimedia file information, the external subtitle URI, and the like; wherein the multimedia content corresponding to the multimedia file URI corresponds to the external subtitle content corresponding to the external subtitle URI.
  • the following example of the SetAVTransportURI configuration includes: extending an existing item element, that is, adding an external subtitle attribute to the attribute of the item element, wherein the external subtitle attribute is used to represent the external subtitle URI; when the DMR receives the SetAVTransportURI trigger After the message, the corresponding subtitle URI corresponding to the multimedia file information to be played is obtained from the subtitle subtitle attribute of the item element of the parameter SetAVTransportURI corresponding to the message, and specifically includes:
  • Step 1206 The DMR requests the content of the external subtitle corresponding to the multimedia file information to be played based on the external subtitle URI, and downloads the content to the local device.
  • the DMR obtains the external subtitle content from the corresponding subtitle URI obtained in step 1005.
  • the external subtitle location of the URI is a uniform resource locator (URL, Uniform Resource Locator address: http:// 10.0.0.1/video197.srt
  • the URL indicates that the transport protocol is HTTP; that is, the DMR makes an HTTP Get request to the address, and downloads the content of the external subtitle of the URL location to the local.
  • Step 1207 The DMR acquires the multimedia content corresponding to the multimedia file information to be played based on the multimedia file URI, and simultaneously plays the external subtitle content and the multimedia content.
  • the DMR requests the multimedia content according to the obtained multimedia file URI, where the URL address is: http://10.0.0.1/video197.mp4, and obtains the multimedia content; here, the DMR The multimedia content can be played while playing; the corresponding external subtitle content is read at the same time to display the external subtitle while playing the multimedia content.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention may be employed in one or more of its A computer program product embodied on a computer usable storage medium (including but not limited to disk storage and optical storage, etc.) containing computer usable program code.
  • a computer usable storage medium including but not limited to disk storage and optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • a multimedia resource identifier (URI, Uniform Resource Identifier) is carried in the multimedia file information, so that the digital media controller or the digital media is enabled.
  • the player can obtain the external subtitle content corresponding to the multimedia file information to be played based on the external subtitle universal resource identifier URI, and further lay a foundation for realizing synchronous play of the multimedia content and the external subtitle content corresponding to the multimedia content.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明实施例公开了一种播放多媒体资源的方法,包括:获取待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;将所述待播放的多媒体文件信息发送至数字媒体渲染器DMR。本发明实施例还公开了一种控制器、播放器、渲染器、服务器及存储介质。

Description

播放多媒体资源方法及其装置、存储介质 技术领域
本发明涉及多媒体技术,尤其涉及一种播放多媒体资源方法、控制器、播放器、渲染器、服务器及存储介质。
背景技术
数字生活网络联盟(DLNA,Digital Living Network Alliance)旨在解决数字家庭网络中的设备互联互通、及数字媒体和内容服务的无限制共享的问题。所述DLNA包括:数字媒体服务器(DMS,Digital Media Server)、数字媒体播放器(DMP,Digital Media Player)、数字媒体渲染器(DMR,Digital Media Render)和数字媒体控制器(DMC,Digital Media Controller)等;其中,所述DMS用于把多媒体资源在DLNA内共享,所述DMP和DMR用于播放所述DMS共享的多媒体资源;这里,所述DMS和DMR是提供服务的设备,可以被发现和被访问/操作;所述DMP和DMC是控制点,用于发现和访问/操作提供服务的DMS和DMR设备。
所述DLNA多媒体管理采用通用即插即用(UPnP,Universal Plug and Play)协议;而且,所述DMS支持UPnP协议中的内容目录服务(CDS,Content Directory Service)和连接管理服务(CMS,Connection Manager Service)等;所述DMR支持CMS和音/视频传输服务(AVT,AVTransport Service)等。
在电影等音视频媒体共享和播放过程中,按现有DLNA的方案,只能共享和播放音视频媒体文件,而对音视频媒体字幕的共享和播放支持不够;也就是说,只有当音视频媒体文件中带有字幕时,所述DMP和DMR可以播放出字幕;当音视频媒体文件中不带字幕,使用外挂字幕文件时,所述 DMP和DMR不能获得字幕文件,因此不能播放出字幕。
对于外挂字幕文件,现有技术常采用如下方式解决上述问题,即在媒体服务器上把媒体文件和外挂字幕合成新的多媒体文件发送至DMP/DMR播放;但是,现有解决方案要求具有专业的流媒体服务器,而一般家庭内不具有这样的专业设备,因此,现有上述解决方案不便于推广。
发明内容
为解决现有存在的技术问题,本发明实施例提供了一种播放多媒体资源方法、控制器、播放器、渲染器、服务器及存储介质,能够实现同步播放多媒体内容和与所述多媒体内容对应的外挂字幕内容的目的。
本发明实施例的技术方案是这样实现的:
本发明实施例提供了一种播放多媒体资源的方法,应用于数字媒体控制器DMC中;所述方法包括:获取待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;将所述待播放的多媒体文件信息发送至数字媒体渲染器DMR。
其中,所述获取待播放的多媒体文件信息,包括:获取待播放的多媒体文件信息对应的标识信息;发送携带有所述标识信息的多媒体文件请求消息;接收基于所述多媒体文件请求消息生成的多媒体文件响应消息;所述多媒体文件响应消息中携带有与所述标识信息对应的待播放的多媒体文件信息。
上述方案中,所述方法还包括:
获取数字媒体渲染器DMR的播放能力信息;所述播放能力信息包括:所述DMR支持的传输协议信息和多媒体格式信息;
获取数字媒体服务器DMS的传输能力信息;所述传输能力信息包括:所述DMS支持的传输协议信息和多媒体格式信息;
确定所述播放能力信息、传输能力信息、以及所述待播放的多媒体文 件信息的媒体资源能力信息匹配时,控制所述数字媒体渲染器DMR获取并播放所述待播放的多媒体文件信息对应的多媒体内容和外挂字幕内容;所述媒体资源能力信息包括:所述待播放的多媒体文件信息的多媒体格式信息和支持的传输协议信息。
一种播放多媒体资源的方法,应用于数字媒体播放器DMP中;所述方法包括:获取待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;依据所述外挂字幕通用资源标识符URI获取所述待播放的多媒体文件信息所对应的外挂字幕内容。
上述方案中,所述多媒体文件信息还包括多媒体文件通用资源标识符URI,对应地,所述方法还包括:依据所述多媒体文件通用资源标识符URI获取所述待播放的多媒体文件信息所对应的多媒体内容;播放所述待播放的多媒体文件信息所对应的外挂字幕内容和所述多媒体内容。
一种播放多媒体资源的方法,应用于数字媒体渲染器DMR中;所述方法包括:接收待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;基于所述外挂字幕通用资源标识符URI获取待播放的多媒体文件信息对应的外挂字幕内容。
上述方案中,所述多媒体文件信息还包括多媒体文件通用资源标识符URI,对应地,所述方法还包括:依据所述多媒体文件通用资源标识符URI获取所述待播放的多媒体文件信息所对应的多媒体内容;播放所述待播放的多媒体文件信息所对应的外挂字幕内容和所述多媒体内容。
一种播放多媒体资源的方法,应用于数字媒体服务器DMS中;所述方法包括:在多媒体文件信息中设置外挂字幕通用资源标识符URI;存储与多媒体文件信息对应的外挂字幕通用资源标识符URI。
上述方案中,所述方法还包括:接收多媒体文件请求消息;所述多媒体文件请求消息中携带有待播放的多媒体文件信息对应的标识信息;发送 基于所述多媒体文件请求消息生成的多媒体文件响应消息;所述多媒体文件响应消息中携带有与所述标识信息对应的待播放的多媒体文件信息;所述待播放的多媒体文件信息中包含有外挂字幕通用资源标识符URI。
一种数字媒体控制器,包括:
第一获取单元,配置为获取待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
第一发送单元,配置为将所述待播放的多媒体文件信息发送至数字媒体渲染器DMR。
其中,所述第一获取单元包括:
第一获取子单元,配置为获取待播放的多媒体文件信息对应的标识信息;
第一消息发送子单元,配置为发送携带有所述标识信息的多媒体文件请求消息;
第一消息接收子单元,配置为接收基于所述多媒体文件请求消息生成的多媒体文件响应消息;所述多媒体文件响应消息中携带有与所述标识信息对应的待播放的多媒体文件信息。
上述方案中,所述控制器还包括:匹配单元;对应地,
所述第一获取单元,还配置为获取数字媒体渲染器DMR的播放能力信息;所述播放能力信息包括:所述DMR支持的传输协议信息和多媒体格式信息;
还配置为获取数字媒体服务器DMS的传输能力信息;所述传输能力信息包括:所述DMS支持的传输协议信息和多媒体格式信息;
所述匹配单元,配置为确定所述播放能力信息、传输能力信息、以及所述待播放的多媒体文件信息的媒体资源能力信息匹配时,控制所述数字媒体渲染器DMR获取并播放所述待播放的多媒体文件信息对应的多媒体 内容和外挂字幕内容;所述媒体资源能力信息包括:所述待播放的多媒体文件信息的多媒体格式信息和支持的传输协议信息。
一种数字媒体播放器,包括:
第二获取单元,配置为获取待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
第三获取单元,配置为依据所述外挂字幕通用资源标识符URI获取所述待播放的多媒体文件信息所对应的外挂字幕内容。
上述方案中,所述多媒体文件信息还包括多媒体文件通用资源标识符URI,对应地,所述播放器还包括:第一播放单元;
所述第三获取单元,还配置为依据所述多媒体文件通用资源标识符URI获取所述待播放的多媒体文件信息所对应的多媒体内容;
所述第一播放单元,配置为播放所述待播放的多媒体文件信息所对应的外挂字幕内容和所述多媒体内容。
一种数字媒体渲染器,包括:
第一接收单元,配置为接收待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
第四获取单元,配置为基于所述外挂字幕通用资源标识符URI获取待播放的多媒体文件信息对应的外挂字幕内容。
上述方案中,所述多媒体文件信息还包括多媒体文件通用资源标识符URI,对应地,所述渲染器还包括:第二播放单元;
所述第四获取单元,还配置为依据所述多媒体文件通用资源标识符URI获取所述待播放的多媒体文件信息所对应的多媒体内容;
所述第二播放单元,配置为播放所述待播放的多媒体文件信息所对应的外挂字幕内容和所述多媒体内容。
一种数字媒体服务器,包括:
设置单元,配置为在多媒体文件信息中设置外挂字幕通用资源标识符URI;
存储单元,配置为存储与多媒体文件信息对应的外挂字幕通用资源标识符URI。
上述方案中,所述服务器还包括:
第二接收单元,配置为接收多媒体文件请求消息;所述多媒体文件请求消息中携带有待播放的多媒体文件信息对应的标识信息;
第二发送单元,配置为发送基于所述多媒体文件请求消息生成的多媒体文件响应消息;所述多媒体文件响应消息中携带有与所述标识信息对应的待播放的多媒体文件信息;所述待播放的多媒体文件信息中包含有外挂字幕通用资源标识符URI。
本发明实施例所提供播放多媒体资源方法、控制器、播放器、渲染器、服务器及存储介质,通过在多媒体文件信息中携带外挂字幕通用资源标识符(URI,Uniform Resource Identifier),如此,使数字媒体控制器或数字媒体播放器能够基于所述外挂字幕通用资源标识符URI获取到待播放的多媒体文件信息所对应的外挂字幕内容,进而,为实现同步播放多媒体内容和与所述多媒体内容对应的外挂字幕内容奠定基础。
附图说明
图1为本发明实施例播放多媒体资源的方法的实现流程示意图一;
图2为本发明实施例数字媒体控制器的结构示意图;
图3为本发明实施例第一获取单元的结构示意图;
图4为本发明实施例播放多媒体资源的方法的实现流程示意图二;
图5为本发明实施例数字媒体播放器的结构示意图;
图6为本发明实施例播放多媒体资源的方法的实现流程示意图三;
图7为本发明实施例数字媒体渲染器的结构示意图;
图8为本发明实施例播放多媒体资源的方法的实现流程示意图四;
图9为本发明实施例数字媒体服务器的结构示意图;
图10为本发明实施例播放多媒体资源的方法的具体实现的流程示意图一;
图11为本发明实施例播放多媒体资源的方法的具体实现的流程示意图二;
图12为本发明实施例播放多媒体资源的方法的具体实现的流程示意图三。
具体实施方式
在2-Box模型中,所述DMP通过CDS的Browse和Search获取DMS共享多媒体文件信息,并将获取到的多媒体文件信息与自身的播放能力,例如支持的媒体格式和传输协议等进行匹配,进而,根据用户选择,播放相应的可播放媒体。
在3-Box模型中,所述DMC通过CDS的Browse和Search动作获取DMS中共享的多媒体文件信息,并通过CMS获取DMR的播放能力信息,例如支持的媒体格式和传输协议等;进而,使所述DMC根据DMR支持的媒体格式和传输协议,将DMS共享的多媒体文件信息和DMR支持的媒体格式和传输协议进行匹配;当确定匹配后,所述DMC根据用户选择的可播放媒体,通过AVT服务的SetAVTransportURI动作告知DMR要播放的多媒体资源的ID(identity)和URI等,以使所述DMR根据所述DMC的指令,从所述DMS中获取多媒体内容并进行播放。基于上述过程,本发明实施例提供了一种播放多媒体资源的方法、控制器、播放器及渲染器;为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明。
实施例一
图1为本发明实施例播放多媒体资源的方法的实现流程示意图一;所述方法应用于数字媒体控制器DMC中;如图1所示,所述方法包括:
步骤101:获取待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
本实施例中,所述获取待播放的多媒体文件信息,包括:
获取待播放的多媒体文件信息对应的标识信息;
发送携带有所述标识信息的多媒体文件请求消息;
接收基于所述多媒体文件请求消息生成的多媒体文件响应消息;所述多媒体文件响应消息中携带有与所述标识信息对应的待播放的多媒体文件信息。
本实施例中,所述方法应用于包含有所述DMC的DLNA系统中;当所述DLNA系统还包含有DMR和DMS时,所述DMC控制所述DMR播放多媒体内容;具体地,所述DMC向所述DMS获取待播放的多媒体文件信息;
本实施例中,所述DMC向所述DMS获取待播放的多媒体文件信息,包括:
所述DMC获取待播放的多媒体文件信息对应的标识信息;
所述DMC基于所述待播放的多媒体文件信息对应的标识信息向所述DMS发送多媒体文件请求消息;其中,所述多媒体文件请求消息中携带有所述标识信息,以便于依据所述标识信息获取待播放的多媒体文件信息;
所述DMS根据所述多媒体文件请求消息生成多媒体文件响应消息;其中,所述多媒体文件的响应消息中携带有与所述标识信息对应的待播放的多媒体文件信息。
这里,所述待播放的多媒体文件信息中包含有外挂字幕通用资源标识 符URI;由于所述DMS向所述DMC发送的待播放的多媒体文件信息中携带有外挂字幕URI,使得所述DMC能够告知所述DMR待播放的多媒体文件信息所对应的外挂字幕URI,如此,使所述DMR能够依据所述外挂字幕URI获取外挂字幕内容,实现播放多媒体内容的同时播放外挂字幕的目的。
步骤102:将所述待播放的多媒体文件信息发送至数字媒体渲染器DMR。
本实施例中,所述DMC将所述待播放的多媒体文件信息发送至数字媒体渲染器DMR,如此,控制所述DMR获取待播放的多媒体文件信息对应的外挂字幕内容。
上述方案中,所述方法还包括:
获取数字媒体渲染器DMR的播放能力信息;所述播放能力信息包括:所述DMR支持的传输协议信息和多媒体格式信息;
获取数字媒体服务器DMS的传输能力信息;所述传输能力信息包括:所述DMS支持的传输协议信息和多媒体格式信息;
确定所述播放能力信息、传输能力信息、以及所述待播放的多媒体文件信息的媒体资源能力信息匹配时,控制所述数字媒体渲染器DMR获取并播放所述待播放的多媒体文件信息对应的多媒体内容和外挂字幕内容;所述媒体资源能力信息包括:所述待播放的多媒体文件信息的多媒体格式信息和支持的传输协议信息。
本实施例中,所述DMC还需要获取DMR的播放能力信息、DMS的传输能力信息以及待播放的多媒体文件信息的媒体资源能力信息,如此,确定所述播放能力信息、传输能力信息以及媒体资源能力信息是否匹配,当三者匹配时,所述DMC控制所述DMR获取并播放所述待播放的多媒体文件信息对应的多媒体内容和外挂字幕内容。
值得注意的是,当所述待播放的多媒体文件信息对应的多媒体内容存 储于所述DMS中时,所述DMR向所述DMS获取所述多媒体内容;当所述DMS中未存储有所述待播放的多媒体文件信息对应的字幕内容时,所述DMR基于所述外挂字幕通用资源标识符URI获取所述待播放的多媒体文件信息对应的外挂字幕内容,如此,所述DMR能够获取到所述待播放的多媒体文件信息所对应的多媒体内容和外挂字幕内容,为实现同步播放多媒体文件和与多媒体文件对应的字幕内容奠定基础。
这里,本实施例中,所述待播放的多媒体文件信息的多媒体内容与外挂字幕内容对应。
为实现实施例一所述的方法,本发明实施例还提供了一种数字媒体控制器,如图2所示,所述控制器包括:
第一获取单元21,配置为获取待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
第一发送单元22,配置为将所述待播放的多媒体文件信息发送至数字媒体渲染器DMR。
上述方案中,如图3所示,所述第一获取单元21包括:
第一获取子单元211,配置为获取待播放的多媒体文件信息对应的标识信息;
第一消息发送子单元212,配置为发送携带有所述标识信息的多媒体文件请求消息;
第一消息接收子单元213,配置为接收基于所述多媒体文件请求消息生成的多媒体文件响应消息;所述多媒体文件响应消息中携带有与所述标识信息对应的待播放的多媒体文件信息。
上述方案中,所述控制器还包括:匹配单元23;对应地,
所述第一获取单元21,还配置为获取数字媒体渲染器DMR的播放能力信息;所述播放能力信息包括:所述DMR支持的传输协议信息和多媒体 格式信息;
还配置为获取数字媒体服务器DMS的传输能力信息;所述传输能力信息包括:所述DMS支持的传输协议信息和多媒体格式信息;
所述匹配单元23,配置为确定所述播放能力信息、传输能力信息、以及所述待播放的多媒体文件信息的媒体资源能力信息匹配时,控制所述数字媒体渲染器DMR获取并播放所述待播放的多媒体文件信息对应的多媒体内容和外挂字幕内容;所述媒体资源能力信息包括:所述待播放的多媒体文件信息的多媒体格式信息和支持的传输协议信息。
所述第一获取单元21、第一发送单元22以及匹配单元23均可以运行于数字媒体控制器DMC上,可由位于数字媒体控制器DMC上的中央处理器(CPU)、或微处理器(MPU)、或数字信号处理器(DSP)、或可编程门阵列(FPGA)实现。
本发明实施例中提供了一种第一计算机可读存储介质,该存储介质包括一组指令,所述指令用于执行实施例一所述的播放多媒体资源的方法。
实施例二
图4为本发明实施例播放多媒体资源的方法的实现流程示意图二;所述方法应用于数字媒体播放器DMP中;如图4所示,所述方法包括:
步骤401:获取待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
本实施例中,所述多媒体文件信息还包括多媒体文件通用资源标识符URI,对应地,所述方法还包括:
依据所述多媒体文件通用资源标识符URI获取所述待播放的多媒体文件信息所对应的多媒体内容;
播放所述待播放的多媒体文件信息所对应的外挂字幕内容和所述多媒体内容。
本实施例中,所述方法应用于包含有所述DMP的DLNA系统中;当所述DLNA系统还包含有DMS时,所述DMP直接从所述DMS中获取待播放的多媒体文件信息,由于所述待播放的多媒体文件信息中携带有所述多媒体文件通用资源标识符URI和外挂字幕通用资源标识符URI,使得所述DMP能够基于所述多媒体文件通用资源标识符URI和外挂字幕通用资源标识符URI获取待播放的多媒体文件信息所对应的多媒体内容和外挂字幕内容,如此,能够为同步播放多媒体内容和外挂字幕内容奠定基础。
步骤402:依据所述外挂字幕通用资源标识符URI获取所述待播放的多媒体文件信息所对应的外挂字幕内容。
本发明实施例中,所述DMP获取待播放的多媒体文件信息的过程,包括:
所述DMP获取待播放的多媒体文件信息对应的标识信息;
所述DMP基于所述待播放的多媒体文件信息对应的标识信息向所述DMS发送多媒体文件请求消息;
所述DMS根据所述多媒体文件请求消息生成多媒体文件响应消息;其中,所述多媒体文件的响应消息中携带有与所述标识信息对应的待播放的多媒体文件信息。
值得注意的是,本实施例中,所述待播放的多媒体文件信息对应的多媒体内容存储于所述DMS,但所述待播放的多媒体文件信息对应的字幕内容未储存于所述DMS中,因此,所述DMP基于所述多媒体文件通用资源标识符URI向所述DMS中获取所述待播放的多媒体文件信息对应的多媒体内容,基于所述外挂字幕通用资源标识符URI向外挂字幕内容的存储地获取所述待播放的多媒体文件信息对应的外挂字幕内容,如此,所述DMP能够获取到所述待播放的多媒体文件信息所对应的多媒体内容和外挂字幕内容,为实现同步播放多媒体文件和与多媒体文件对应的字幕内容奠定基础。
为实现实施例二所述的方法,本发明实施例还提供了一种数字媒体播放器,如图5所示,所述播放器包括:
第二获取单元51,配置为获取待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
第三获取单元52,配置为依据所述外挂字幕通用资源标识符URI获取所述待播放的多媒体文件信息所对应的外挂字幕内容。
上述方案中,所述多媒体文件信息还包括多媒体文件通用资源标识符URI,对应地,所述播放器还包括:第一播放单元53;
所述第三获取单元52,还配置为依据所述多媒体文件通用资源标识符URI获取所述待播放的多媒体文件信息所对应的多媒体内容;
所述第一播放单元53,配置为播放所述待播放的多媒体文件信息所对应的外挂字幕内容和所述多媒体内容。
所述第二获取单元51和第三获取单元52均可以运行于数字媒体播放器DMP中,可由位于数字媒体播放器DMP上的中央处理器(CPU)、或微处理器(MPU)、或数字信号处理器(DSP)、或可编程门阵列(FPGA)实现;所述第一播放单元53可由位于数字媒体渲染器DMR上的音箱或其他具有播放功能的播放器实现。
本发明实施例中提供了一种第二计算机可读存储介质,该存储介质包括一组指令,所述指令用于执行实施例二所述的播放多媒体资源的方法。
实施例三
图6为本发明实施例播放多媒体资源的方法的实现流程示意图三;所述方法应用于数字媒体渲染器DMR中;如图6所示,所述方法包括:
步骤601:接收待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
本实施例中,所述方法应用于包含有所述DMR的DLNA系统中;当 所述DLNA系统还包含有DMC和DMS时,所述DMR通过所述DMC的控制播放多媒体内容;具体地,所述DMC向所述DMS获取待播放的多媒体文件信息,并将所述待播放的多媒体文件信息发送至所述DMR;所述DMR接收待播放的多媒体文件信息;由于所述DMS中未储存有所述待播放的多媒体文件信息对应的字幕内容,因此,所述多媒体文件信息包含有外挂字幕通用资源标识符URI,如此,使所述DMR能够依据所述外挂字幕通用资源标识符URI获取所述待播放的多媒体文件信息所对应的外挂字幕内容,为实现同步播放多媒体文件和与多媒体文件对应的字幕内容奠定基础。
步骤602:基于所述外挂字幕通用资源标识符URI获取待播放的多媒体文件信息对应的外挂字幕内容。
上述方案中,所述多媒体文件信息还包括多媒体文件通用资源标识符URI,对应地,所述方法还包括:
依据所述多媒体文件通用资源标识符URI获取所述待播放的多媒体文件信息所对应的多媒体内容;
播放所述待播放的多媒体文件信息所对应的外挂字幕内容和所述多媒体内容。
为实现实施例三所述的方法,本发明实施例还提供了一种数字媒体渲染器,如图7所示,所述渲染器包括:
第一接收单元71,配置为接收待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
第四获取单元72,配置为基于所述外挂字幕通用资源标识符URI获取待播放的多媒体文件信息对应的外挂字幕内容。
上述方案中,所述多媒体文件信息还包括多媒体文件通用资源标识符URI,对应地,所述渲染器还包括:第二播放单元73;
所述第四获取单元72,还配置为依据所述多媒体文件通用资源标识符URI获取所述待播放的多媒体文件信息所对应的多媒体内容;
所述第二播放单元73,配置为播放所述待播放的多媒体文件信息所对应的外挂字幕内容和所述多媒体内容。
所述第一接收单元71和第四获取单元72均可以运行于数字媒体渲染器DMR上,可由位于数字媒体渲染器DMR上的中央处理器(CPU)、或微处理器(MPU)、或数字信号处理器(DSP)、或可编程门阵列(FPGA)实现;所述第二播放单元73可由位于数字媒体渲染器DMR上的音箱或其他具有播放功能的播放器实现。
本发明实施例中提供了一种第三计算机可读存储介质,该存储介质包括一组指令,所述指令用于执行实施例三所述的播放多媒体资源的方法。
实施例四
图8为本发明实施例播放多媒体资源的方法的实现流程示意图四;所述方法应用于数字媒体服务器DMS中;如图8所示,所述方法包括:
步骤801:在多媒体文件信息中设置外挂字幕通用资源标识符URI;
本实施例中,所述方法应用于包含有所述DMS的DLNA系统中;当所述DLNA系统还包含有DMC和DMS,也即,所述DLNA系统包括:DMS、DMC和DMR时,所述DMR通过所述DMC的控制播放多媒体内容;具体地,所述DMC向所述DMS获取待播放的多媒体文件信息,并将所述待播放的多媒体文件信息发送至所述DMR;所述DMR接收待播放的多媒体文件信息;由于所述DMS中未储存有所述待播放的多媒体文件信息对应的字幕内容,此时,为实现同步播放多媒体文件和与多媒体文件对应的字幕内容的目的,所述DMS在多媒体文件中设置外挂字幕通用资源标识符URI,如此,使所述DMR能够依据所述外挂字幕通用资源标识符URI获取所述待播放的多媒体文件信息所对应的外挂字幕内容,为实现同步播 放多媒体文件和与多媒体文件对应的字幕内容奠定了基础;
当所述DLNA系统中还包括DMP,也即,所述DLNA系统包括:DMS和DMP时,所述DMP能够直接从所述DMS中获取待播放的多媒体文件信息,当所述DMS中未储存有所述待播放的多媒体文件信息对应的字幕内容,此时,为实现同步播放多媒体文件和与多媒体文件对应的字幕内容的目的,所述DMS在多媒体文件中设置外挂字幕通用资源标识符URI,如此,由于所述待播放的多媒体文件信息中携带有所述多媒体文件通用资源标识符URI和外挂字幕通用资源标识符URI,使得所述DMP能够基于所述多媒体文件通用资源标识符URI和外挂字幕通用资源标识符URI获取待播放的多媒体文件信息所对应的多媒体内容和外挂字幕内容,因此,能够为同步播放多媒体内容和外挂字幕内容奠定基础。
步骤802:存储与多媒体文件信息对应的外挂字幕通用资源标识符URI。
上述方案中,所述方法还包括:
接收多媒体文件请求消息;所述多媒体文件请求消息中携带有待播放的多媒体文件信息对应的标识信息;
发送基于所述多媒体文件请求消息生成的多媒体文件响应消息;所述多媒体文件响应消息中携带有与所述标识信息对应的待播放的多媒体文件信息;所述待播放的多媒体文件信息中包含有外挂字幕通用资源标识符URI。
这里,所述DMS接收多媒体文件请求消息;所述多媒体文件请求消息中携带有待播放的多媒体文件信息对应的标识信息;如此,使得所述DMS能够基于所述标识信息确定待播放的多媒体文件信息;并将携带有与所述标识信息对应的所述待播放的多媒体文件信息的多媒体文件响应消息发送至DMC或DMP,进而为实现同步播放多媒体内容和外挂字幕内容奠定了 基础;其中,所述多媒体文件响应消息是所述DMS基于所述多媒体文件请求消息生成的。
为实现实施例四所述的方法,本发明实施例还提供了一种数字媒体服务器,如图9所示,所述服务器包括:
设置单元91,配置为在多媒体文件信息中设置外挂字幕通用资源标识符URI;
存储单元92,配置为存储与多媒体文件信息对应的外挂字幕通用资源标识符URI。
上述方案中,所述服务器还包括:
第二接收单元93,配置为接收多媒体文件请求消息;所述多媒体文件请求消息中携带有待播放的多媒体文件信息对应的标识信息;
第二发送单元94,配置为发送基于所述多媒体文件请求消息生成的多媒体文件响应消息;所述多媒体文件响应消息中携带有与所述标识信息对应的待播放的多媒体文件信息;所述待播放的多媒体文件信息中包含有外挂字幕通用资源标识符URI。
所述设置单元91、存储单元92、第二接收单元93以及第二发送单元94均可以运行于数字媒体服务器DMS上,可由位于数字媒体服务器DMS上的中央处理器(CPU)、或微处理器(MPU)、或数字信号处理器(DSP)、或可编程门阵列(FPGA)实现。
本发明实施例中提供了一种第四计算机可读存储介质,该存储介质包括一组指令,所述指令用于执行实施例四所述的播放多媒体资源的方法。
实施例五
本发明实施例应用于DLNA中,所述DLNA包括:DMS、DMP、DMR和DMC。
所述DMS中存储有媒体资源,所述媒体资源包括多媒体内容和与多媒 体内容对应的字幕内容;但是,有些媒体内容,例如音视频文件常常不带有字幕内容,此时,将音视频文件对应的字幕内容作为独立的内容,该内容称为外挂字幕内容;当播放不带有字幕内容的音视频文件时,播放设备在读取多媒体内容的同时,还需要读取外挂字幕内容,如此,才能使所述多媒体内容与所述外挂字幕内容同步播放,在播放音视频时显示其对应的字幕。
为了使播放设备能够方便获取外挂字幕内容,在现有item元素中新增外挂字幕属性,如此,实现多媒体内容与所述外挂字幕内容同步播放的目的,以下对具体实现过程做进一步详细说明。
DLNA技术规范中,UPnP中的CDS定义了item元素,其中,所述item元素用于表示多媒体文件信息,在item元素下定义了各种属性,以用于展示该多媒体文件信息的各种特性;其中,所述属性包括但不限于以下:标题、媒体分类、协议信息、多媒体文件URI;这里,所述多媒体文件URI只用于表示多媒体内容文件所在位置,并不能指示多媒体文件内容所对应的外挂字幕内容所在位置,因此,为能够实现播放音视频时显示其对应的外挂字幕的目的,本发明实施例将item元素进行了扩展,以在item元素已有的属性中添加外挂字幕属性,所述外挂字幕属性用于表示外挂字幕URI;
例如,当只有一个外挂字幕内容对应的文件时,所述item元素中增加的外挂字幕属性可以表示为:<subtitle>URI</subtitle>;
当有多个外挂字幕内容对应的文件时,所述item元素中增加的外挂字幕属性可以表示为:<subtitle uri1=”…”uri2=”…”…/>;
如此,扩展后的所述item元素的各属性可以采用如下表示方式:
<item id="18"parentID="13"restricted="0">
<dc:title>Try a little tenderness</dc:title>
<upnp:class>object.item.audioItem.musicTrack</upnp:class>
<resprotocolInfo="http-get:*:audio/mpeg:*"
size="3558000">http://192.168.1.1/video197.mp4</res>
<subtitle url1=”http://192.168.1.1/video197.idx”url2=”http://192.168.1.1/video197.sub”/>
<dc:title>Try a little tenderness</dc:title>
</item>
这里,所述外挂字幕内容的传输协议与多媒体内容的传输协议一致,可以从res的protocolInfo中获取,或者采用DLNA协议提供的其他方式获取。
图10为本发明实施例播放多媒体资源的方法的具体实现的流程示意图一;所述DLNA包括:DMS、DMR和DMC时,如图10所示,所述方法包括:
步骤1001:所述DMC通过UPnP的CDS的Browse/Search动作获取DMS共享的多媒体文件信息;所述共享的多媒体文件信息中包含有多媒体文件URI和外挂字幕URI;
本实施例中,获取DMS共享的多媒体文件信息的步骤包括:
所述DMC通过UPnP的CDS的Browse/Search动作浏览或查找DMS共享的多媒体文件信息;
所述DMS基于Browse/Search动作生成响应消息,并发送至所述DMC。
本实施例中,所述DMS在响应Browse/Search动作的响应消息的输出参数Result上携带有多媒体文件信息,即以item元素表示的多媒体文件信息;而且,所述item元素的属性中扩展有外挂字幕属性,其中,所述挂字幕属性包含有外挂字幕URI;如此,使得所述DMC能够基于所述响应消息获取到多媒体文件信息;其中,所述多媒体文件信息中包含有多媒体文件URI和外挂字幕URI;
步骤1002:所述DMC从共享的多媒体文件信息中获取到待播放的多媒体文件信息;其中,所述待播放的多媒体文件信息中包含有多媒体文件 URI和外挂字幕URI;
步骤1003:所述DMC通过AVT的AVTransportURI动作告知DMR待播放的多媒体文件信息;其中,所述待播放的多媒体文件信息包含有多媒体文件URI、外挂字幕URI以及其他资源信息;
其中,AVTransportURI动作的输入参数AVTransportURIMetaData包含有待播放的多媒体文件信息;其中,所述待播放的多媒体文件信息采用item元素表示,所述item元素的属性扩展有外挂字幕属性,即外挂字幕subtitle属性;也就是说,所以AVTransportURIMetaData参数的待播放的多媒体文件信息中含有外挂字幕subtitle属性;如此,使得所述DMR可以根据该输入参数中的待播放的多媒体文件信息所包含的外挂字幕subtitle属性获知外挂字幕存放的地址,为所述多媒体内容与所述外挂字幕内容同步播放奠定了基础。
步骤1004:当所述DMR收到来自所述DMC的播放指令后,所述DMR基于所述外挂字幕URI获取待播放的多媒体文件信息所对应的外挂字幕内容;同时,基于所述待播放的多媒体文件信息中包含的多媒体文件URI获取多媒体内容,以在播放多媒体内容时显示与所述多媒体内容对应的外挂字幕内容。
图11为本发明实施例播放多媒体资源的方法的具体实现的流程示意图二;所述DLNA包括:DMS和DMP时,如图11所示,所述方法包括:
步骤1101:所述DMP通过UPnP的CDS的Browse/Search动作获取DMS共享的多媒体文件信息;所述共享的多媒体文件信息中包含有多媒体文件URI和外挂字幕URI;
本实施例中,获取DMS共享的多媒体文件信息的步骤包括:
所述DMP通过UPnP的CDS的Browse/Search动作浏览或查找DMS共享的多媒体文件信息;
所述DMS基于Browse/Search动作生成响应消息,并发送至所述DMC。
本实施例中,所述DMS在响应Browse/Search动作的响应消息的输出参数Result上携带有多媒体文件信息,即以item元素表示的多媒体文件信息;而且,所述item元素的属性中扩展有外挂字幕属性,其中,所述挂字幕属性包含有外挂字幕URI;如此,使得所述DMP能够基于所述响应消息获取到多媒体文件信息;其中,所述多媒体文件信息中包含有多媒体文件URI和外挂字幕URI;
步骤1102:所述DMP从共享的多媒体文件信息中获取到待播放的多媒体文件信息;其中,所述待播放的多媒体文件信息中包含有多媒体文件URI和外挂字幕URI;
步骤1103:当所述DMP收到来自用户的播放指令后,所述DMP基于所述外挂字幕URI获取待播放的多媒体文件信息所对应的外挂字幕内容;同时,基于所述待播放的多媒体文件信息中包含的多媒体文件URI获取多媒体内容,以在播放多媒体内容时显示与所述多媒体内容对应的外挂字幕内容。
实施例六
本发明实施例应用于DLNA的3-Box系统中,涉及到的装置包括:DMC、DMR和DMS;其中,所述DMC是控制设备,可以位于手机上;所述DMR和DMS为提供服务的设备;其中,所述DMR提供播放服务,DMS提供媒体共享服务;具体地,所述DMR可以位于电视机上,所述DMS可以位于家庭网络接入服务器(NAS,Network Access Server)设备上。
当所述DLNA的3-Box系统中的装置均处于开启状态时,所述DMC能够检测到所述DMR和所述DMS,随后,按如下方法实现音视频文件与外挂字幕同步播放的目的,如图12所示,所述方法包括:
步骤1201:位于手机上的所述DMC通过UPnP中的CDS和UPnP中 的CMS获知家庭NAS上的DMS的传输能力信息;所述DMC基于所述传输能力信息、通过CDS的Browse动作浏览DMS共享的多媒体文件信息;
本实施例中,所述传输能力信息包括:所述DMS支持的传输协议信息和多媒体格式信息;外挂字幕属性,其中,所述挂字幕属性包含有外挂字幕URI;
步骤1202:所述DMS收到所述Browse动作触发的请求消息后,生成响应消息;所述响应消息中输出参数Result上携带有多媒体文件信息;其中,所述多媒体文件信息包含有多媒体文件URI和外挂字幕URI;
本实施例中,当DMS收到Browse动作触发的请求后,在回复DMC的报文中,通过新增的外挂字幕subtitle属性展示外挂字幕URI,如此,为实现播放多媒体内容时显示与所述多媒体内容对应的外挂字幕内容奠定基础;如下为Browse请求、以及响应请求的过程;具体地:
Request过程:
Browse("3","BrowseDirectChildren","*",3,3,"+dc:title")
Response过程:
Browse("
<?xml version="1.0"encoding="UTF-8"?>
<DIDL-Lite
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"
xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/
http://www.upnp.org/schemas/av/didl-lite.xsd
urn:schemas-upnp-org:metadata-1-0/upnp/
http://www.upnp.org/schemas/av/upnp.xsd">
<item id="5"parentID="3"restricted="0">
<dc:title>Would</dc:title>
<dc:creator>Alice In Chains</dc:creator>
<upnp:class>object.item.audioItem.musicTrack</upnp:class>
<res protocolInfo="http-get:*:audio/x-ms-wma:*"size="90000">
http://10.0.0.1/video197.mp4
</res>
<subtitle>http://10.0.0.1/video197.srt</subtitle>
</item>
</DIDL-Lite>",1,4,18)
步骤1203:所述DMC基于所述响应消息从共享的多媒体文件信息获取待播放的多媒体文件信息;其中,所述待播放的多媒体文件信息中包含有多媒体文件URI和外挂字幕URI;
步骤1204:所述DMC访问所述DMR上的CMS获知所述DMR的播放能力信息,并获取待播放的多媒体文件信息的媒体资源能力信息;随后,所述DMC将所述DMR的播放能力信息、所述DMS的传输能力信息以及所述媒体资源能力信息做匹配,以确定待播放的多媒体文件信息能够在所述DMR中播放;
其中,所述媒体资源能力信息包括:所述待播放的多媒体文件信息的多媒体格式信息和支持的传输协议信息;
所述播放能力信息包括:所述DMR支持的传输协议信息和多媒体格式信息。
步骤1205:当所述播放能力信息、传输能力信息、以及所述待播放的多媒体文件信息的媒体资源能力信息匹配时,所述DMC通过AVT的SetAVTransportURI动作,将所述待播放的多媒体文件信息发送至所述DMR;
其中,发送至所述DMR待播放的多媒体文件信息中包含有多媒体文件 URI和外挂字幕URI;
本实施例中,当用户选择了可播放的媒体资源后,也即待播放的多媒体文件信息,所述DMC通过CMS在DMS和DMR之间建立连接;并通过AVT的SetAVTransportURI动作,告知DMR待播放的多媒体文件信息对应的多媒体文件URI和外挂字幕URI等;其中,所述多媒体文件URI对应的多媒体内容与所述外挂字幕URI对应的外挂字幕内容对应。
下面SetAVTransportURI配置的例子,包括:对现有item元素进行扩展,即将外挂字幕属性添加到item元素的属性中,其中,所述外挂字幕属性用于表示外挂字幕URI;当所述DMR接收到SetAVTransportURI触发的消息后,从消息对应的参数SetAVTransportURI的item元素的外挂字幕subtitle属性中获知待播放的多媒体文件信息对应的相应外挂字幕URI,具体包括:
Request过程:
SetAVTransportURI(5,“http://10.0.0.1/video197.mp4”,
"<?xml version="1.0"encoding="UTF-8"?>
<DIDL-Lite
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"
xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/
http://www.upnp.org/schemas/av/didl-lite.xsd
urn:schemas-upnp-org:metadata-1-0/upnp/
http://www.upnp.org/schemas/av/upnp.xsd">
<item id="5"parentID="3"restricted="0">
<dc:title>Would</dc:title>
<dc:creator>Alice In Chains</dc:creator>
<upnp:class>object.item.audioItem.musicTrack</upnp:class>
<res protocolInfo="http-get:*:audio/x-ms-wma:*"size="90000">
http://10.0.0.1/video197.mp4
</res>
<subtitle>http://10.0.0.1/video197.srt</subtitle>
</item>
</DIDL-Lite>")
Response过程:
SetAVTransportURI()
步骤1206:所述DMR基于所述外挂字幕URI请求待播放的多媒体文件信息对应的外挂字幕内容,并下载至本地;
本实施例中,所述DMR根据步骤1005获得的外挂字幕URI,向对应的源获取外挂字幕内容;这里,URI的外挂字幕位置是统一资源定位符(URL,Uniform Resource Locator地址:http://10.0.0.1/video197.srt
所述URL表示传输协议是HTTP;即所述DMR向该地址做HTTP Get请求,把该URL位置的外挂字幕内容下载到本地。
步骤1207:所述DMR基于所述多媒体文件URI获取待播放的多媒体文件信息对应的多媒体内容,同时播放所述外挂字幕内容与所述多媒体内容。
本实施例中,所述DMR根据获得的多媒体文件URI,此处是URL地址:http://10.0.0.1/video197.mp4,向该地址请求多媒体内容,并获取多媒体内容;这里,所述DMR可以边获取多媒体内容边播放;同时读取相应的外挂字幕内容,以在播放多媒体内容的同时显示外挂字幕。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其 中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述仅是本发明实施例的实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明实施例原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明实施例的保护范围。
工业实用性
本发明实施例通过在多媒体文件信息中携带外挂字幕通用资源标识符(URI,Uniform Resource Identifier),如此,使数字媒体控制器或数字媒体 播放器能够基于所述外挂字幕通用资源标识符URI获取到待播放的多媒体文件信息所对应的外挂字幕内容,进而,为实现同步播放多媒体内容和与所述多媒体内容对应的外挂字幕内容奠定基础。

Claims (22)

  1. 一种播放多媒体资源的方法,所述方法应用于数字媒体控制器DMC中;所述方法包括:
    获取待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
    将所述待播放的多媒体文件信息发送至数字媒体渲染器DMR。
  2. 根据权利要求1所述的方法,其中,所述获取待播放的多媒体文件信息,包括:
    获取待播放的多媒体文件信息对应的标识信息;
    发送携带有所述标识信息的多媒体文件请求消息;
    接收基于所述多媒体文件请求消息生成的多媒体文件响应消息;所述多媒体文件响应消息中携带有与所述标识信息对应的待播放的多媒体文件信息。
  3. 根据权利要求2所述的方法,其中,所述方法还包括:
    获取数字媒体渲染器DMR的播放能力信息;所述播放能力信息包括:所述DMR支持的传输协议信息和多媒体格式信息;
    获取数字媒体服务器DMS的传输能力信息;所述传输能力信息包括:所述DMS支持的传输协议信息和多媒体格式信息;
    确定所述播放能力信息、传输能力信息、以及所述待播放的多媒体文件信息的媒体资源能力信息匹配时,控制所述数字媒体渲染器DMR获取并播放所述待播放的多媒体文件信息对应的多媒体内容和外挂字幕内容;所述媒体资源能力信息包括:所述待播放的多媒体文件信息的多媒体格式信息和支持的传输协议信息。
  4. 一种播放多媒体资源的方法,所述方法应用于数字媒体播放器DMP 中;所述方法包括:
    获取待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
    依据所述外挂字幕通用资源标识符URI获取所述待播放的多媒体文件信息所对应的外挂字幕内容。
  5. 根据权利要求4所述的方法,其中,所述多媒体文件信息还包括多媒体文件通用资源标识符URI,对应地,所述方法还包括:
    依据所述多媒体文件通用资源标识符URI获取所述待播放的多媒体文件信息所对应的多媒体内容;
    播放所述待播放的多媒体文件信息所对应的外挂字幕内容和所述多媒体内容。
  6. 一种播放多媒体资源的方法,所述方法应用于数字媒体渲染器DMR中;所述方法包括:
    接收待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
    基于所述外挂字幕通用资源标识符URI获取待播放的多媒体文件信息对应的外挂字幕内容。
  7. 根据权利要求6所述的方法,其中,所述多媒体文件信息还包括多媒体文件通用资源标识符URI,对应地,所述方法还包括:
    依据所述多媒体文件通用资源标识符URI获取所述待播放的多媒体文件信息所对应的多媒体内容;
    播放所述待播放的多媒体文件信息所对应的外挂字幕内容和所述多媒体内容。
  8. 一种播放多媒体资源的方法,所述方法应用于数字媒体服务器DMS中;所述方法包括:
    在多媒体文件信息中设置外挂字幕通用资源标识符URI;
    存储与多媒体文件信息对应的外挂字幕通用资源标识符URI。
  9. 根据权利要求8所述的方法,其中,所述方法还包括:
    接收多媒体文件请求消息;所述多媒体文件请求消息中携带有待播放的多媒体文件信息对应的标识信息;
    发送基于所述多媒体文件请求消息生成的多媒体文件响应消息;所述多媒体文件响应消息中携带有与所述标识信息对应的待播放的多媒体文件信息;所述待播放的多媒体文件信息中包含有外挂字幕通用资源标识符URI。
  10. 一种数字媒体控制器,所述控制器包括:
    第一获取单元,配置为获取待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
    第一发送单元,配置为将所述待播放的多媒体文件信息发送至数字媒体渲染器DMR。
  11. 根据权利要求10所述的控制器,其中,所述第一获取单元包括:
    第一获取子单元,配置为获取待播放的多媒体文件信息对应的标识信息;
    第一消息发送子单元,配置为发送携带有所述标识信息的多媒体文件请求消息;
    第一消息接收子单元,配置为接收基于所述多媒体文件请求消息生成的多媒体文件响应消息;所述多媒体文件响应消息中携带有与所述标识信息对应的待播放的多媒体文件信息。
  12. 根据权利要求11所述的控制器,其中,所述控制器还包括:匹配单元;对应地,
    所述第一获取单元,还配置为获取数字媒体渲染器DMR的播放能力信 息;所述播放能力信息包括:所述DMR支持的传输协议信息和多媒体格式信息;
    还配置为获取数字媒体服务器DMS的传输能力信息;所述传输能力信息包括:所述DMS支持的传输协议信息和多媒体格式信息;
    所述匹配单元,配置为确定所述播放能力信息、传输能力信息、以及所述待播放的多媒体文件信息的媒体资源能力信息匹配时,控制所述数字媒体渲染器DMR获取并播放所述待播放的多媒体文件信息对应的多媒体内容和外挂字幕内容;所述媒体资源能力信息包括:所述待播放的多媒体文件信息的多媒体格式信息和支持的传输协议信息。
  13. 一种数字媒体播放器,所述播放器包括:
    第二获取单元,配置为获取待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
    第三获取单元,配置为依据所述外挂字幕通用资源标识符URI获取所述待播放的多媒体文件信息所对应的外挂字幕内容。
  14. 根据权利要求13所述的播放器,其中,所述多媒体文件信息还包括多媒体文件通用资源标识符URI,对应地,所述播放器还包括:第一播放单元;
    所述第三获取单元,还配置为依据所述多媒体文件通用资源标识符URI获取所述待播放的多媒体文件信息所对应的多媒体内容;
    所述第一播放单元,配置为播放所述待播放的多媒体文件信息所对应的外挂字幕内容和所述多媒体内容。
  15. 一种数字媒体渲染器,所述渲染器包括:
    第一接收单元,配置为接收待播放的多媒体文件信息;所述待播放的多媒体文件信息包含有外挂字幕通用资源标识符URI;
    第四获取单元,配置为基于所述外挂字幕通用资源标识符URI获取待 播放的多媒体文件信息对应的外挂字幕内容。
  16. 根据权利要求15所述的渲染器,其中,所述多媒体文件信息还包括多媒体文件通用资源标识符URI,对应地,所述渲染器还包括:第二播放单元;
    所述第四获取单元,还配置为依据所述多媒体文件通用资源标识符URI获取所述待播放的多媒体文件信息所对应的多媒体内容;
    所述第二播放单元,配置为播放所述待播放的多媒体文件信息所对应的外挂字幕内容和所述多媒体内容。
  17. 一种数字媒体服务器,所述服务器包括:
    设置单元,配置为在多媒体文件信息中设置外挂字幕通用资源标识符URI;
    存储单元,配置为存储与多媒体文件信息对应的外挂字幕通用资源标识符URI。
  18. 根据权利要求17所述的服务器,其中,所述服务器还包括:
    第二接收单元,配置为接收多媒体文件请求消息;所述多媒体文件请求消息中携带有待播放的多媒体文件信息对应的标识信息;
    第二发送单元,配置为发送基于所述多媒体文件请求消息生成的多媒体文件响应消息;所述多媒体文件响应消息中携带有与所述标识信息对应的待播放的多媒体文件信息;所述待播放的多媒体文件信息中包含有外挂字幕通用资源标识符URI。
  19. 一种第一计算机可读存储介质,该存储介质包括一组指令,所述指令用于执行权利要求1至3任一项所述的播放多媒体资源的方法。
  20. 一种第二计算机可读存储介质,该存储介质包括一组指令,所述指令用于执行权利要求4或5所述的播放多媒体资源的方法。
  21. 一种第三计算机可读存储介质,该存储介质包括一组指令,所述 指令用于执行权利要求6或7所述的播放多媒体资源的方法。
  22. 一种第四计算机可读存储介质,该存储介质包括一组指令,所述指令用于执行权利要求8或9所述的播放多媒体资源的方法。
PCT/CN2015/079968 2014-12-18 2015-05-27 播放多媒体资源方法及其装置、存储介质 WO2016095434A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410795093.1A CN105763918A (zh) 2014-12-18 2014-12-18 播放多媒体资源方法、控制器、播放器、渲染器及服务器
CN201410795093.1 2014-12-18

Publications (1)

Publication Number Publication Date
WO2016095434A1 true WO2016095434A1 (zh) 2016-06-23

Family

ID=56125773

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/079968 WO2016095434A1 (zh) 2014-12-18 2015-05-27 播放多媒体资源方法及其装置、存储介质

Country Status (2)

Country Link
CN (1) CN105763918A (zh)
WO (1) WO2016095434A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542904B (zh) * 2021-07-12 2023-06-02 北京奇艺世纪科技有限公司 一种视频投屏播放方法、装置、电子设备及存储介质
CN114885217A (zh) * 2022-06-14 2022-08-09 中国电信股份有限公司 视频播放方法、装置、电子设备及非易失性存储

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117077A (zh) * 2013-01-17 2013-05-22 广东欧珀移动通信有限公司 一种蓝光播放器碟片外挂字幕显示系统及方法
CN103227950A (zh) * 2013-03-27 2013-07-31 广东欧珀移动通信有限公司 一种视频文件播放方法、终端和服务端
CN103369357A (zh) * 2012-03-27 2013-10-23 宏碁股份有限公司 影音播放字幕的系统和方法
CN104079589A (zh) * 2014-07-24 2014-10-01 广东欧珀移动通信有限公司 一种外挂字幕的显示方法、系统及数字多媒体渲染器

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6760746B1 (en) * 1999-09-01 2004-07-06 Eric Schneider Method, product, and apparatus for processing a data request
WO2010109768A1 (ja) * 2009-03-27 2010-09-30 パナソニック株式会社 ネットワーク制御機器、ネットワーク制御システム、ネットワーク制御方法及びプログラム

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369357A (zh) * 2012-03-27 2013-10-23 宏碁股份有限公司 影音播放字幕的系统和方法
CN103117077A (zh) * 2013-01-17 2013-05-22 广东欧珀移动通信有限公司 一种蓝光播放器碟片外挂字幕显示系统及方法
CN103227950A (zh) * 2013-03-27 2013-07-31 广东欧珀移动通信有限公司 一种视频文件播放方法、终端和服务端
CN104079589A (zh) * 2014-07-24 2014-10-01 广东欧珀移动通信有限公司 一种外挂字幕的显示方法、系统及数字多媒体渲染器

Also Published As

Publication number Publication date
CN105763918A (zh) 2016-07-13

Similar Documents

Publication Publication Date Title
US10945027B2 (en) Systems and methods for networked music playback
US9116893B2 (en) Network connected media gateway for communication networks
US9148756B2 (en) Output of content from the internet on a media rendering device
US9883251B2 (en) Method and apparatus for managing connection between broadcast receiving device and another device connected by network
US8526484B2 (en) Content reproduction apparatus, content receiving apparatus, method of reproducing content, program, and content reproduction system
US10554745B2 (en) Method and apparatus for managing connection between broadcasting reception device and another device which are connected through network
KR101597826B1 (ko) UPnP를 이용하여 장면을 재생하는 방법 및 장치
TWI543594B (zh) 數位媒體播放系統
WO2015180688A1 (zh) 媒体处理方法及设备
WO2016110048A1 (zh) 一种分享媒体内容的方法和装置
WO2014161310A1 (zh) 一种多媒体资源的播放方法及装置
EP2647167B1 (en) Recording in a local network
WO2016095434A1 (zh) 播放多媒体资源方法及其装置、存储介质
DK2647168T3 (en) REGISTERING IN A LOCAL NETWORK
US20140012955A1 (en) Communication System, Communication Device, And Communication Method
US20140082012A1 (en) Methods and systems for enhanced access to multimedia contentt
US10165082B2 (en) Method and apparatus for managing connection between plurality of devices over network
KR20120072100A (ko) 웹 콘텐트 서비스와 홈네트워크의 연동을 위한 웹 미디어 제어 장치 및 그 방법
JP5117599B1 (ja) 制御端末およびネットワークシステム
KR101991787B1 (ko) 홈 네트워크 미디어 전송 협상
TW201237638A (en) Method for playing multimedia file and file sharing system
JP2013009273A (ja) 電子機器、電子機器の制御方法、電子機器の制御プログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15868946

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15868946

Country of ref document: EP

Kind code of ref document: A1