Re: Query regarding UPNP action



Hello Sir/Madame,
                    As per "http://upnp.org/specs/av/UPnP-av-RenderingControl-v1-Service.pdf"  "As described in Media Renderer device template, the devices’s ConnectionManager::PrepareForConnection() action assigns a InstanceID to the input stream".

    I tried to mute a windows machine in our local network using "Universal-ControlPoint "but it failed so we thought since InstanceID was not correct.Is our understanding is correct?

With Regards,
Tarun R
 


On Thursday 02 June 2016 05:56 PM, Jussi Kukkonen wrote:


On 2 June 2016 at 14:35, tarun.r <tarun r thinkpalm com> wrote:
Hello Sir,
            Thank you for replying. So in my case it was like "PrepareForConnection". If so, is it that I have to initially invoke "PrepareForConnection" to get the "InstanceID" as output result and after that invoke action for Mute or volume UP?

I suggest you go to http://openconnectivity.org/upnp/specifications and download the bundle zip file: the contents should contain some kind of answers to a lot of questions like this (the interesting bits are in the UPnP architecture spec, UPnP AV architecture spec and the AV service specs. The last two are in  "/standardizeddcps/MediaServer_4 and  MediaRenderer_3/" directory).

I think the answer to the specific question is that you should use PrepareForConnection() when it exists but should not rely on the device implementing it. In practice using "0" as InstanceID seems to work everywhere.

Jussi


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]