CN104320718A - Method and device for avoiding conflict of a plurality of DMC push media players - Google Patents

Method and device for avoiding conflict of a plurality of DMC push media players Download PDF

Info

Publication number
CN104320718A
CN104320718A CN201410494467.6A CN201410494467A CN104320718A CN 104320718 A CN104320718 A CN 104320718A CN 201410494467 A CN201410494467 A CN 201410494467A CN 104320718 A CN104320718 A CN 104320718A
Authority
CN
China
Prior art keywords
dmc
control
action
dmr
service
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201410494467.6A
Other languages
Chinese (zh)
Other versions
CN104320718B (en
Inventor
任超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410494467.6A priority Critical patent/CN104320718B/en
Publication of CN104320718A publication Critical patent/CN104320718A/en
Application granted granted Critical
Publication of CN104320718B publication Critical patent/CN104320718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6402Address allocation for clients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • H04N21/6587Control parameters, e.g. trick play commands, viewpoint selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8355Generation of protective data, e.g. certificates involving usage data, e.g. number of copies or viewings allowed
    • H04N21/83555Generation of protective data, e.g. certificates involving usage data, e.g. number of copies or viewings allowed using a structured language for describing usage rules of the content, e.g. REL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8543Content authoring using a description language, e.g. Multimedia and Hypermedia information coding Expert Group [MHEG], eXtensible Markup Language [XML]

Abstract

The invention discloses a method for avoiding conflict of a plurality of DMC push media players. The method is applied to a DLNA (digital living network alliance) home entertainment network, and comprises the following steps: firstly classifying a service and an action for defining a UPnP (Universal Plug and Play) protocol to divide into a control action and an uncontrolled action, sending a request to a DMR (digital media renderer) in advance to apply for control right before a DMC (digital media controller) executes the control action on the DMR, recording an IP address of the DMC applying for the control right by the DMR, and only executing the control action sent by the IP address, wherein the DMR at most records a set of DMC equipment with the control right at the same time, the DMR filters the control action of the DMC without the control right, but can receive other state request actions. Through the adoption of the method, the control conflict is effectively avoided when the DMR is controlled by a plurality of DMCs, the relationship among a plurality of control equipment is optimized, the status of chaotic control is changed, and the use experience is greatly promoted.

Description

A kind of method and device avoiding multiple DMC propelling movement media play to produce conflict
Technical field
The present invention relates to the technical field that network multimedia is interconnected, particularly a kind of method and device avoiding multiple DMC propelling movement media play to produce conflict.
Background technology
DLNA DLNA full name is DIGITAL LIVING NETWORK ALLIANCE, is intended to, by integrating existing technology and procotol, make the equipment in same net territory, can realize striding equipment multimedia freely.In recent years, DLNA technology obtains and develops widely, increasing media device, and audiovisual terminals or playing platform all support DLNA.This technology allows equipment under network connection state, can find the equipment having other functions, and checks and to play to certain player with the media resource in sharing service device.The type of DLNA device mainly contains DMP (digital media player), DMR (Digital Media renderer), DMS (digital media server) and DMC (digital media controller).Wherein, DMS is used for store and management media resource, makes other equipment can get media content easily by network; Comprising DLNA Control Point (control point) in DMC equipment, for browsing the media information of DMS, getting the metadata information of media from DMS, and play by interactive controlling propelling movement media the media content selected to DMR; DMR is the media player not possessing DMC function, and DMP is the media player with DMC function.
In DLNA framework, do not specify the quantity of permission equipment in a network segment, that is, DLNA supports that multiple DMC exists simultaneously, and accesses multiple equipment simultaneously.This feature enhances the availability of DLNA: as DMS, can be found by multiple DMC, and resource can be provided for multiple DMR; As DMR, can be found by multiple DMC equally, and the media of these DMC propelling movement can be received; As DMC, equipment all in the network segment can be found, can be accessed them, or push media resource.But, when multiple DMC is connected to a DMR simultaneously, because the DMC implementation method of each manufacturer is different, likely in propelling movement process, produce conflict.Such as DMC1 and DMC2 is connected to DMR1 jointly, DMC1 pushes media and plays to DMR1, now send STOP action to DMR1 by DMC2, DMC2 is there is at control DMR1 because DMC1 does not know in the network segment, therefore DMC1 is after determining DMR1 broadcasting stopping, may continue to push next media play, the problem causing DMR1 to stop occurs.Now, DMC1 and DMC2 just creates conflict in control.
Summary of the invention
First object of the present invention is that the shortcoming overcoming prior art is with not enough, provides a kind of method avoiding multiple DMC to push media play generation conflict.The present invention is by expansion UPnP protocol, provide a kind of method avoiding producing control hazard, the method allows multiple DMC to control DMR, but specify in the same period simultaneously, DMC needs by applying for that control obtains the Play Control to DMR, other do not have the DMC of control can only get the change of DMR state or parameter, and can not carry out Play Control to it.This method invention effectively avoids control hazard, optimizes the relation between multiple control appliance, changes and controls chaotic situation, greatly improve experience.
Another object of the present invention is that the shortcoming overcoming prior art is with not enough, provides a kind of device avoiding multiple DMC to push media play generation conflict.
First object of the present invention is achieved through the following technical solutions:
Avoid multiple DMC push media play produce conflict a method, be applied in DLNA home entertainment network with solve multiple DMC simultaneously control DMR there is the problem of control hazard, comprise the following steps:
S1, according to UPnP general plug-and-play protocol definition service and action, classification process is done to former protocol contents, be divided into ' control action ' and ' non-controlling action ', wherein control action refers to the action needing application control before DMC calls DMR, non-controlling action refers to the action not needing before DMC calls DMR to apply for control, and action represents the order completing specific function that client sends;
S2, DMC add DLNA network, and select a DMR as renderer;
S3, DMC send arbitrary action command to DMR, and judge whether to belong to control action, if judge to belong to control action, then enter next step S4;
S4, DMC send request control action X_ControlApplication to DMR, and this action definition, under AVTransport service, is used for applying for control to DMR;
S5, DMR receive after right of asking for application according to the request of DMC control record management Protocol answers DMC control;
S6, DMC receive after the application of DMR control successfully replys, and continue to send control action to DMR, complete the order of specific function.
Preferably, in described step 1, control action comprises
Urn:schemas-upnp-org:service:RenderingControl:1 service in everything and
All ' set ' actions in urn:schemas-upnp-org:service:AVTransport:1 service, and ' Stop ', ' Play ', ' Pause ', ' Record ', ' Seek ', ' Next ', ' Previous ' action.
Preferably, in described step 1, non-controlling action comprises
Urn:schemas-upnp-org:service:ConnectionManager:1 service in everything and
All ' get ' actions in urn:schemas-upnp-org:service:AVTransport:1 service.
Preferably, in described step S5, DMC control record management agreement is specially:
G51, DMR terminal sets up proprietary variable, is used for the IP address of the DMC recording current acquire the right of control;
After G52, DMR terminal receives control right request action X_ControlApplication, the IP address of action source DMC and proprietary variable are compared, if not identical and apply for DMR control success, then upgrade the value of proprietary variable;
G53, DMR terminal receives control action, is compared in the IP address of action source DMC and proprietary variable, if identical, then performs this control action, otherwise ignores this control action;
G54, DMR terminal receives non-controlling action, directly performs this non-controlling action.
Preferably, described step S2 is specially:
S21, DMC to add after DLNA network first addressing and obtain IP address;
S22, DMC are to the URL address of the type of the Controlling vertex annunciator on DLNA network, identifier UUID, the service provided and device description and service describing;
S23, DLNA network control point obtains the URL of device description and service describing, is fetched the information of device description and service describing by URL;
S24, DMC send action request to DMR device service.
Preferably, if DMC judges to belong to non-controlling action to the action command that DMR sends in described step S3, then can directly to DMR sends this action command without the need to applying for DMR control.
Preferably, when in described step S4, DMC initiates to apply for that control is the situation that there is UI user interactions to DMR, namely user initiatively needs to apply for control by DMC when DMR sends action command, and DMC does not need to apply for control when trend DMR sends action command.
Another object of the present invention is achieved through the following technical solutions:
Avoid multiple DMC push media play produce conflict a device, be applied in DLNA home entertainment network with solve multiple DMC simultaneously control DMR there is the problem of control hazard, comprise the following units:
UPnP protocol classifying content processing unit, the service that this unit defines according to UPnP general plug-and-play protocol and action, classification process is done to former protocol contents, be divided into ' control action ' and ' non-controlling action ', wherein control action refers to the action needing application control before DMC calls DMR, non-controlling action refers to the action not needing before DMC calls DMR to apply for control, and action represents the order completing specific function that client sends;
DMC initialization unit, this unit is used for the initialization that DMC adds DLNA network, and selects a DMR as renderer;
DMC action command judging unit, this unit is used for DMC and sends arbitrary action command to DMR, and judges whether to belong to control action, if judge to belong to control action, then goes to DMR control request unit;
DMR control request unit, this unit is used for DMC and sends request control action X_ControlApplication to DMR, and this action definition, under AVTransport service, is used for applying for control to DMR;
Control record management protocol element, this unit is used for DMR and receives after right of asking for application according to the request of control record management Protocol answers DMC control;
DMC control action transmitting element, this unit is used for DMC and receives after the application of DMR control successfully replys, and continues to send control action to DMR, completes the order of specific function.
Preferably, in described UPnP protocol classifying content processing unit, control action comprises
Urn:schemas-upnp-org:service:RenderingControl:1 service in everything and
All ' set ' actions in urn:schemas-upnp-org:service:AVTransport:1 service, and ' Stop ', ' Play ', ' Pause ', ' Record ', ' Seek ', ' Next ', ' Previous ' action.
Preferably, in described UPnP protocol classifying content processing unit, non-controlling action comprises
Urn:schemas-upnp-org:service:ConnectionManager:1 service in everything and
All ' get ' actions in urn:schemas-upnp-org:service:AVTransport:1 service.
Preferably, described control record management protocol element comprises following modules:
Proprietary variable sets up module, and this module is used for DMR terminal and sets up proprietary variable, is used for the IP address of the DMC recording current acquire the right of control;
Proprietary variable update module, this module is used for after DMR terminal receives control right request action X_ControlApplication, the IP address of action source DMC and proprietary variable are compared, if not identical and apply for DMR control success, then upgrade the value of proprietary variable;
Action source IP address correction verification module, this module is used for after DMR terminal receives control action, is compared in the IP address of action source DMC and proprietary variable, if identical, then performs this control action, otherwise ignore this control action;
Non-controlling action executing module, this module is used for DMR terminal and is receiving non-controlling action, directly performs this non-controlling action.
Preferably, described DMC initialization unit comprises following modules:
Addressed module, this module is used for DMC and adds after DLNA network first addressing and obtain IP address;
Find module, this module is for the URL address of DMC to the type of the Controlling vertex annunciator on DLNA network, identifier UUID, the service provided and device description and service describing;
Describing module, this module is used for the URL that DLNA network control point obtains device description and service describing, is fetched the information of device description and service describing by URL;
Control module, this module is used for DMC and sends action request to DMR device service.
Preferably, if DMC judges to belong to non-controlling action to the action command that DMR sends in described DMC action command judging unit, then can directly to DMR sends this action command without the need to applying for DMR control.
Preferably, when in described DMR control request unit, DMC initiates to apply for that control is the situation that there is UI user interactions to DMR, namely user initiatively needs to apply for control by DMC when DMR sends action command, and DMC does not need to apply for control when trend DMR sends action command.
The present invention has following advantage and effect relative to prior art:
1, the present invention needs by applying for that control obtains the Play Control to DMR by regulation DMC, other do not have the DMC of control can only get the change of DMR state or parameter, Play Control can not be carried out to it, effectively avoid control hazard, optimize the relation between multiple control appliance, change and control chaotic situation, greatly improve experience.
2, this method invention is completely based on DLNA and UPnP protocol, has good compatibility.
3, this method invention extends UPnP protocol simultaneously, possesses the feature being simple and easy to realize.
Accompanying drawing explanation
Fig. 1 is a kind of method flow diagram avoiding multiple DMC to push media play generation conflict in the present embodiment one;
Fig. 2 is that in the present embodiment one, DMC adds workflow diagram after DLNA network;
Fig. 3 is a kind of structure drawing of device avoiding multiple DMC to push media play generation conflict in the present embodiment two.
Embodiment
For making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Embodiment one
Refer to Fig. 1, Fig. 1 avoids multiple DMC to push media play to produce the method flow diagram conflicted in the present invention.Shown in Fig. 1 avoid multiple DMC push media play produce conflict method, be applied in DLNA home entertainment network with solve multiple DMC simultaneously control DMR there is the problem of control hazard, specifically comprise the following steps:
● step S1, according to UPnP general plug-and-play protocol definition service and action, classification process is done to former protocol contents, be divided into ' control action ' and ' non-controlling action ', wherein control action refers to the action needing application control before DMC calls DMR, non-controlling action refers to the action not needing before DMC calls DMR to apply for control, and action represents the order completing specific function that client sends.
First the category defining " control action " and " non-controlling action " is needed, DMC is front to DMR transmission " control action ", need first to apply for control to DMR, send " non-controlling action " front, without the need to applying for or having control, directly perform this action.
" control action " comprising:
1, the everything in urn:schemas-upnp-org:service:RenderingControl:1 service;
2, all " set " actions in urn:schemas-upnp-org:service:AVTransport:1 service, and " Stop ", " Play ", " Pause ", " Record ", " Seek ", " Next ", " Previous " action.
" non-controlling action " comprising:
1, the everything in urn:schemas-upnp-org:service:ConnectionManager:1 service;
2, all " get " actions in urn:schemas-upnp-org:service:AVTransport:1 service.
Foregoing is service and the action of UPnP protocol definition; when the present invention needs application control in order to clear and definite; former protocol contents has been done to classify process; be divided into " control action " (needing before namely calling to apply for control) and " non-controlling action " (without the need to applying for control before calling); sorting technique belongs to the expansion to UPnP protocol, is also the technology point that the present invention needs to protect simultaneously.
Wherein, UPnP is the abbreviation of UPnP (Universal Plug and Play), be mainly used in the intelligent interconnection intercommunication of equipment, UPnP protocol is used not need device driver, it may operate in operating system platform nearly all at present, and making to build device interoperability easily in office, family and other public places becomes possibility.Any equipment of UPnP maximum contribution is once even connect to the Net, all equipment on network just can know have new equipment to add at once, and these equipment can communicate mutually each other, more can directly use or control it, all do not need artificial setting, completely plug and play.
● step S2, DMC add DLNA network, and select a DMR as renderer;
DMC also will complete following flow process after adding DLNA network in the present embodiment, as DMC in figure adds after DLNA network shown in workflow diagram, specific as follows:
Step S21, DMC to add after DLNA network first addressing and obtain IP address;
Usually, the general process of a UPnP device addressing is: the message first sending DHCPDiscover to Dynamic Host Configuration Protocol server, if within the time of specifying, equipment does not receive DHCP Offer and receives the response, and equipment must use AUTO-IP to complete the acquisition of IP address.The IP address of static configuration can certainly be used.
Step S22, DMC are to the URL address of the type of the Controlling vertex annunciator on DLNA network, identifier UUID, the service provided and device description and service describing;
After the DMC equipment be connected on network determines IP address, will enter and find the operational phase.Device discovery is the first step that UPnP realizes.Device discovery is by simply finding that agreement SSDP has come.When an equipment joins in network, discovery procedure allows equipment to inform to the Controlling vertex on network the service that it provides, and when a control point joins in network, device discovery procedure allows control point to find interested equipment on network.In both cases, basic exchange message finds message exactly.Find that message comprises some customizing messages of equipment or the information of a certain service, such as its type, identifier UUID (Universally Unique Identifier) etc.
Step S23, DLNA network control point obtain the URL of device description and service describing, are fetched the information of device description and service describing by URL;
After control point finds an equipment, this equipment of dominating pair of vertices only may know the UPnP type of equipment or service, and the UUID of equipment and the URL address of device description, also need to know more information.The information of device description and service describing from finding the URL obtaining device description message, can be fetched in control point by URL.
Wherein, device description is the description of UPnP to a certain equipment, represents in xml form, and device description comprises manufacturer's information, module title and numbering, sequence number etc.Can comprise multiple logical device for a physical equipment, multiple logical device both can be that a root device wherein embeds multiple equipment, also can be that the mode of multiple root device exists.Device description is provided by equipment manufacturers, adopts XML to describe, follows UPnP framework agreement.
Service describing comprises a series of content, specifically has the state in service operation moment, running time etc.Service describing is also provided by equipment manufacturers, adopts XML to describe, follows UPnP framework agreement.
Wherein, URL is the abbreviation of Uniform Resource Location, is translated into " URL(uniform resource locator) ".Image point is said, URL Internet is used for the character string of descriptor resource, mainly be used on various WWW CLIENT PROGRAM and server program, adopt URL can describe various information resources with a kind of unified form, comprise file, the address of server and catalogue etc.
Step S24, DMC send action request to DMR device service.
After receiving equipment and service describing, control point can send action to these services, and simultaneously control point also can the current state of poll services.Action is sent to device service by control point, and after action completes or be failed, service returns corresponding result or error message.
In order to control an equipment, control point sends an action to device service, and this is generally send a suitable control message by control point to the control URL address of service.Service then can be moved this and respond, and returns relevant result or mistake.
● step S3, DMC send arbitrary action command to DMR, and judge whether to belong to control action, if judge to belong to control action, then enter next step S4;
If DMC judges to belong to non-controlling action to the action command that DMR sends, then can directly to DMR sends this action command without the need to applying for DMR control.
● step S4, DMC send request control action X_ControlApplication to DMR, and this action definition, under AVTransport service, is used for applying for control to DMR.
When DMC initiates to apply for that control is the situation that there is UI user interactions to DMR, namely user initiatively needs to apply for control by DMC when DMR sends action command, and DMC does not need to apply for control when trend DMR sends action command.
● step S5, DMR receive after right of asking for application according to the request of DMC control record management Protocol answers DMC control;
Wherein DMC control record management agreement is specially:
G51, DMR terminal sets up proprietary variable, is used for the IP address of the DMC recording current acquire the right of control;
After G52, DMR terminal receives control right request action X_ControlApplication, the IP address of action source DMC and proprietary variable are compared, if not identical and apply for DMR control success, then upgrade the value of proprietary variable;
G53, DMR terminal receives control action, is compared in the IP address of action source DMC and proprietary variable, if identical, then performs this control action, otherwise ignores this control action;
G54, DMR terminal receives non-controlling action, directly performs this non-controlling action.
● step S6, DMC receive after the application of DMR control successfully replys, and continue to send control action to DMR, complete the order of specific function.
In sum, the present invention is by expansion UPnP protocol, provide a kind of method avoiding producing control hazard, same permission multiple DMC control DMR, but within the same period, DMC needs by applying for that control obtains the Play Control to DMR, and other do not have the DMC of control can only get the change of DMR state or parameter, can not carry out Play Control to it.Sum up, the method has following principle:
1.DMC, before control DMR, first need send request and apply for control to DMR;
The IP address of the DMC of 2.DMR record application control, and only perform the control action of this IP address transmission;
3. the same time, DMR records at most the DMC equipment that one has control;
4.DMR need filter out the control action of the DMC not having control, but can receive other status request actions.
Embodiment two
Refer to Fig. 3, Fig. 3 is a kind of structure drawing of device avoiding multiple DMC to push media play generation conflict in the present embodiment.Shown in Fig. 3 avoid multiple DMC push media play produce conflict device, be applied in DLNA home entertainment network with solve multiple DMC simultaneously control DMR there is the problem of control hazard.
The device avoiding multiple DMC to push media play generation conflict in the present embodiment disclosed in Fig. 3 specifically comprises with lower unit:
1, UPnP protocol classifying content processing unit,
The service that this unit defines according to UPnP general plug-and-play protocol and action, classification process is done to former protocol contents, be divided into ' control action ' and ' non-controlling action ', wherein control action refers to the action needing application control before DMC calls DMR, non-controlling action refers to the action not needing before DMC calls DMR to apply for control, and action represents the order completing specific function that client sends.
Wherein, control action comprises
Urn:schemas-upnp-org:service:RenderingControl:1 service in everything and
All ' set ' actions in urn:schemas-upnp-org:service:AVTransport:1 service, and ' Stop ', ' Play ', ' Pause ', ' Record ', ' Seek ', ' Next ', ' Previous ' action.
Non-controlling action comprises
Urn:schemas-upnp-org:service:ConnectionManager:1 service in everything and
All ' get ' actions in urn:schemas-upnp-org:service:AVTransport:1 service.
2, DMC initialization unit,
This unit is used for the initialization that DMC adds DLNA network, and selects a DMR as renderer.
This DMC initialization unit comprises following modules again:
Addressed module, this module is used for DMC and adds after DLNA network first addressing and obtain IP address;
Find module, this module is for the URL address of DMC to the type of the Controlling vertex annunciator on DLNA network, identifier UUID, the service provided and device description and service describing;
Describing module, this module is used for the URL that DLNA network control point obtains device description and service describing, is fetched the information of device description and service describing by URL;
Control module, this module is used for DMC and sends action request to DMR device service.
3, DMC action command judging unit,
This unit is used for DMC and sends arbitrary action command to DMR, and judges whether to belong to control action, if judge to belong to control action, then goes to DMR control request unit.
Meanwhile, if judge to belong to non-controlling action, then can directly to DMR sends this action command without the need to applying for DMR control.
4, DMR control request unit,
This unit is used for DMC and sends request control action X_ControlApplication to DMR, and this action definition, under AVTransport service, is used for applying for control to DMR.
Usually, when in this unit, DMC initiates to apply for that control is the situation that there is UI user interactions to DMR, namely user initiatively needs to apply for control by DMC when DMR sends action command, and DMC does not need to apply for control when trend DMR sends action command.
5, control record management protocol element,
This unit is used for DMR and receives after right of asking for application according to the request of control record management Protocol answers DMC control.
This control record management protocol element specifically comprises following modules again:
Proprietary variable sets up module, and this module is used for DMR terminal and sets up proprietary variable, is used for the IP address of the DMC recording current acquire the right of control;
Proprietary variable update module, this module is used for after DMR terminal receives control right request action X_ControlApplication, the IP address of action source DMC and proprietary variable are compared, if not identical and apply for DMR control success, then upgrade the value of proprietary variable;
Action source IP address correction verification module, this module is used for after DMR terminal receives control action, is compared in the IP address of action source DMC and proprietary variable, if identical, then performs this control action, otherwise ignore this control action;
Non-controlling action executing module, this module is used for DMR terminal and is receiving non-controlling action, directly performs this non-controlling action.
6, DMC control action transmitting element, this unit is used for DMC and receives after the application of DMR control successfully replys, and continues to send control action to DMR, completes the order of specific function.
It should be noted that in said apparatus embodiment, included unit and module are carry out dividing according to function logic, but are not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each device and unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
Above-described embodiment is the present invention's preferably execution mode; but embodiments of the present invention are not restricted to the described embodiments; change, the modification done under other any does not deviate from Spirit Essence of the present invention and principle, substitute, combine, simplify; all should be the substitute mode of equivalence, be included within protection scope of the present invention.

Claims (14)

1. avoid multiple DMC push media play produce conflict a method, be applied in DLNA home entertainment network with solve multiple DMC simultaneously control DMR there is the problem of control hazard, it is characterized in that, comprise the following steps:
S1, according to UPnP general plug-and-play protocol definition service and action, classification process is done to former protocol contents, be divided into ' control action ' and ' non-controlling action ', wherein control action refers to the action needing application control before DMC calls DMR, non-controlling action refers to the action not needing before DMC calls DMR to apply for control, and action represents the order completing specific function that client sends;
S2, DMC add DLNA network, and select a DMR as renderer;
S3, DMC send arbitrary action command to DMR, and judge whether to belong to control action, if judge to belong to control action, then enter next step S4;
S4, DMC send request control action X_ControlApplication to DMR, and this action definition, under AVTransport service, is used for applying for control to DMR;
S5, DMR receive after right of asking for application according to the request of DMC control record management Protocol answers DMC control;
S6, DMC receive after the application of DMR control successfully replys, and continue to send control action to DMR, complete the order of specific function.
2. a kind of method avoiding multiple DMC to push media play generation conflict according to claim 1, is characterized in that: in described step 1, control action comprises
Urn:schemas-upnp-org:service:RenderingControl:1 service in everything and
All ' set ' actions in urn:schemas-upnp-org:service:AVTransport:1 service, and ' Stop ', ' Play ', ' Pause ', ' Record ', ' Seek ', ' Next ', ' Previous ' action.
3. a kind of method avoiding multiple DMC to push media play generation conflict according to claim 1, is characterized in that: in described step 1, non-controlling action comprises
Urn:schemas-upnp-org:service:ConnectionManager:1 service in everything and
All ' get ' actions in urn:schemas-upnp-org:service:AVTransport:1 service.
4., according to the arbitrary a kind of described method avoiding multiple DMC to push media play generation conflict of claims 1 to 3, it is characterized in that, in described step S5, DMC control record management agreement is specially:
G51, DMR terminal sets up proprietary variable, is used for the IP address of the DMC recording current acquire the right of control;
After G52, DMR terminal receives control right request action X_ControlApplication, the IP address of action source DMC and proprietary variable are compared, if not identical and apply for DMR control success, then upgrade the value of proprietary variable;
G53, DMR terminal receives control action, is compared in the IP address of action source DMC and proprietary variable, if identical, then performs this control action, otherwise ignores this control action;
G54, DMR terminal receives non-controlling action, directly performs this non-controlling action.
5., according to the arbitrary a kind of described method avoiding multiple DMC to push media play generation conflict of claims 1 to 3, it is characterized in that, described step S2 is specially:
S21, DMC to add after DLNA network first addressing and obtain IP address;
S22, DMC are to the URL address of the type of the Controlling vertex annunciator on DLNA network, identifier UUID, the service provided and device description and service describing;
S23, DLNA network control point obtains the URL of device description and service describing, is fetched the information of device description and service describing by URL;
S24, DMC send action request to DMR device service.
6., according to arbitrary a kind of described avoid multiple DMC the to push method that media play produces conflict of claims 1 to 3, it is characterized in that:
If in described step S3, DMC judges to belong to non-controlling action to the action command that DMR sends, then can directly to DMR sends this action command without the need to applying for DMR control.
7., according to the arbitrary a kind of described method avoiding multiple DMC to push media play generation conflict of claims 1 to 3, it is characterized in that:
When in described step S4, DMC initiates to apply for that control is the situation that there is UI user interactions to DMR, namely user initiatively needs to apply for control by DMC when DMR sends action command, and DMC does not need to apply for control when trend DMR sends action command.
8. avoid multiple DMC push media play produce conflict a device, be applied in DLNA home entertainment network with solve multiple DMC simultaneously control DMR there is the problem of control hazard, it is characterized in that, comprise the following units:
UPnP protocol classifying content processing unit, the service that this unit defines according to UPnP general plug-and-play protocol and action, classification process is done to former protocol contents, be divided into ' control action ' and ' non-controlling action ', wherein control action refers to the action needing application control before DMC calls DMR, non-controlling action refers to the action not needing before DMC calls DMR to apply for control, and action represents the order completing specific function that client sends;
DMC initialization unit, this unit is used for the initialization that DMC adds DLNA network, and selects a DMR as renderer;
DMC action command judging unit, this unit is used for DMC and sends arbitrary action command to DMR, and judges whether to belong to control action, if judge to belong to control action, then goes to DMR control request unit;
DMR control request unit, this unit is used for DMC and sends request control action X_ControlApplication to DMR, and this action definition, under AVTransport service, is used for applying for control to DMR;
Control record management protocol element, this unit is used for DMR and receives after right of asking for application according to the request of control record management Protocol answers DMC control;
DMC control action transmitting element, this unit is used for DMC and receives after the application of DMR control successfully replys, and continues to send control action to DMR, completes the order of specific function.
9. a kind of device avoiding multiple DMC to push media play generation conflict according to claim 8, is characterized in that: in described UPnP protocol classifying content processing unit, control action comprises
Urn:schemas-upnp-org:service:RenderingControl:1 service in everything and
All ' set ' actions in urn:schemas-upnp-org:service:AVTransport:1 service, and ' Stop ', ' Play ', ' Pause ', ' Record ', ' Seek ', ' Next ', ' Previous ' action.
10. a kind of device avoiding multiple DMC to push media play generation conflict according to claim 8, is characterized in that: in described UPnP protocol classifying content processing unit, non-controlling action comprises
Urn:schemas-upnp-org:service:ConnectionManager:1 service in everything and
All ' get ' actions in urn:schemas-upnp-org:service:AVTransport:1 service.
11. according to Claim 8 to 10, arbitrary described a kind of multiple DMC propelling movement media play of avoiding produced the device conflicted, and it is characterized in that, described control record management protocol element comprises following modules:
Proprietary variable sets up module, and this module is used for DMR terminal and sets up proprietary variable, is used for the IP address of the DMC recording current acquire the right of control;
Proprietary variable update module, this module is used for after DMR terminal receives control right request action X_ControlApplication, the IP address of action source DMC and proprietary variable are compared, if not identical and apply for DMR control success, then upgrade the value of proprietary variable;
Action source IP address correction verification module, this module is used for after DMR terminal receives control action, is compared in the IP address of action source DMC and proprietary variable, if identical, then performs this control action, otherwise ignore this control action;
Non-controlling action executing module, this module is used for DMR terminal and is receiving non-controlling action, directly performs this non-controlling action.
12. according to Claim 8 to 10, arbitrary described a kind of multiple DMC propelling movement media play of avoiding produced the device conflicted, and it is characterized in that, described DMC initialization unit comprises following modules:
Addressed module, this module is used for DMC and adds after DLNA network first addressing and obtain IP address;
Find module, this module is for the URL address of DMC to the type of the Controlling vertex annunciator on DLNA network, identifier UUID, the service provided and device description and service describing;
Describing module, this module is used for the URL that DLNA network control point obtains device description and service describing, is fetched the information of device description and service describing by URL;
Control module, this module is used for DMC and sends action request to DMR device service.
13. according to Claim 8 to 10, arbitrary described a kind of multiple DMC propelling movement media play of avoiding produced the device conflicted, and it is characterized in that:
If in described DMC action command judging unit, DMC judges to belong to non-controlling action to the action command that DMR sends, then can directly to DMR sends this action command without the need to applying for DMR control.
14. according to Claim 8 to 10, arbitrary described a kind of multiple DMC propelling movement media play of avoiding produced the device conflicted, and it is characterized in that:
When in described DMR control request unit, DMC initiates to apply for that control is the situation that there is UI user interactions to DMR, namely user initiatively needs to apply for control by DMC when DMR sends action command, and DMC does not need to apply for control when trend DMR sends action command.
CN201410494467.6A 2014-09-24 2014-09-24 It is a kind of to avoid multiple DMC from pushing the method and device that media play produces conflict Active CN104320718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410494467.6A CN104320718B (en) 2014-09-24 2014-09-24 It is a kind of to avoid multiple DMC from pushing the method and device that media play produces conflict

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410494467.6A CN104320718B (en) 2014-09-24 2014-09-24 It is a kind of to avoid multiple DMC from pushing the method and device that media play produces conflict

Publications (2)

Publication Number Publication Date
CN104320718A true CN104320718A (en) 2015-01-28
CN104320718B CN104320718B (en) 2017-07-25

Family

ID=52375875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410494467.6A Active CN104320718B (en) 2014-09-24 2014-09-24 It is a kind of to avoid multiple DMC from pushing the method and device that media play produces conflict

Country Status (1)

Country Link
CN (1) CN104320718B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105206292A (en) * 2015-09-11 2015-12-30 广东欧珀移动通信有限公司 Multi-control-side control response method and device for play side
CN107277132A (en) * 2017-06-15 2017-10-20 深圳Tcl新技术有限公司 DLNA push processing method, multimedia reception end and storage medium
CN110784770A (en) * 2018-07-31 2020-02-11 佳能株式会社 Communication apparatus, control method of communication apparatus, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355470A (en) * 2007-07-26 2009-01-28 华为技术有限公司 System, method and apparatus for implementing business continuity in household network circumstance
US20120036221A1 (en) * 2010-08-03 2012-02-09 Canon Kabushiki Kaisha Transmission apparatus, transmission method, and transmission system
CN102446529A (en) * 2010-09-13 2012-05-09 索尼公司 Signal processing apparatus and signal processing method
CN102667885A (en) * 2009-09-30 2012-09-12 法国电信 Remote control methods and devices using a UPNP service
CN103457925A (en) * 2012-05-28 2013-12-18 正文科技股份有限公司 Presenter, controller and management method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355470A (en) * 2007-07-26 2009-01-28 华为技术有限公司 System, method and apparatus for implementing business continuity in household network circumstance
CN102667885A (en) * 2009-09-30 2012-09-12 法国电信 Remote control methods and devices using a UPNP service
US20120036221A1 (en) * 2010-08-03 2012-02-09 Canon Kabushiki Kaisha Transmission apparatus, transmission method, and transmission system
CN102446529A (en) * 2010-09-13 2012-05-09 索尼公司 Signal processing apparatus and signal processing method
CN103457925A (en) * 2012-05-28 2013-12-18 正文科技股份有限公司 Presenter, controller and management method thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105206292A (en) * 2015-09-11 2015-12-30 广东欧珀移动通信有限公司 Multi-control-side control response method and device for play side
CN107277132A (en) * 2017-06-15 2017-10-20 深圳Tcl新技术有限公司 DLNA push processing method, multimedia reception end and storage medium
CN107277132B (en) * 2017-06-15 2021-07-06 深圳Tcl新技术有限公司 DLNA (digital Living network alliance) pushing processing method, multimedia receiving end and storage medium
CN110784770A (en) * 2018-07-31 2020-02-11 佳能株式会社 Communication apparatus, control method of communication apparatus, and storage medium

Also Published As

Publication number Publication date
CN104320718B (en) 2017-07-25

Similar Documents

Publication Publication Date Title
EP2311259B1 (en) Apparatus and method for sharing a bookmark with other user in a home network
JP4721600B2 (en) Numerous home network software architectures to bridge
US9137292B2 (en) Remote management of DLNA system
US9883251B2 (en) Method and apparatus for managing connection between broadcast receiving device and another device connected by network
US10554745B2 (en) Method and apparatus for managing connection between broadcasting reception device and another device which are connected through network
CN105323628B (en) Cross-screen playing method and system based on DLNA (digital Living network alliance), browser end device and playing device
US20090160626A1 (en) Method for Setting Home Code in Network System and Device for Network
KR100461740B1 (en) Broadcast discovery in a network having one or more 1394 buses
KR20050077672A (en) Method and system for relay media file
KR20050098926A (en) Method and system for reacting to a change of a upnp device
CN103391277A (en) Media playing method, device and system
WO2010115337A1 (en) Method, control point, apparatus and communication system for configuring access right
US8005915B2 (en) Method for providing download and upload service in network control system
US8176343B2 (en) Method for providing information for power management of devices on a network
CN104320718A (en) Method and device for avoiding conflict of a plurality of DMC push media players
EP1895715A2 (en) Method and apparatus for managing a home network
US9948748B2 (en) Method of receiving/transmitting event message, controlled device, and control point
KR101329668B1 (en) Contents sharing system and method using push server
Heredia An introduction to the DLNA architecture: network technologies for media devices
US8782717B2 (en) Method of restoring AV session and a control point for the same
CN103081402A (en) Method and system for securing access to configuration information stored in universal plug and play data models
JP2009088765A (en) Network system, relay device and relay program
Peng et al. A media resources sharing system based on DLNA
CN104506508B (en) A kind of the file information synchronous method and relevant device
CN117793448A (en) Screen projection method and device based on DLNA

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: Guangdong Opel Mobile Communications Co., Ltd.