Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok, so the service descriptor xml (SCPD) contains <code>&lt;actionList&gt;</code> of <code>&lt;action&gt;</code>s with their parameters, which can be <code>in</code> (to the TV) or <code>out</code> (will be in the TV's response to the action). You need to "call" the action, which means that Cling serializes it to SOAP RPC and sends it to the device as HTTP request. In the response, you will get the overall result of the call as with plain HTTP, 200 for OK, 500 for Bad Request, etc. Each code has a specific explanation in context of the particular action call. The response will also hold <code>out</code> parameters as specified in the SCPD.</p> <p>But this all is not as much of your interest when using an abstraction library like Cling. It will do everything for you. Disclaimer: i am not familiar with Cling, just with enough other UPnP libs to know where to look for things.</p> <p>As a TV set, the 3 services you mention will be undoubtely <code>AVTransport</code>,<code>ConnectionManager</code> and <code>RenderingControl</code>. So to present a simple example which will actually do something observable on the TV, let's call <code>RenderingControl.SetVolume</code>. The method you need is <code>org.teleal.cling.support.renderingcontrol.callback.SetVolume</code>. I can't help you to the level of knowing where to obtain the <code>Service</code> parameter, but you should be able to figure out.</p> <p>I am not saying that you don't need to know how UPnP works under the hood. Grabbing the <a href="http://upnp.org/resources/upnpresources.zip" rel="noreferrer">UPnP specs bundle</a> and reading at least the <strong>DeviceArchitecture</strong> pdf is indispensable. And you will definitely need the specs to understand the more complicated services like <code>AVTransport</code>. <em>Hint: don't care about InstanceID and ConnectionID. It's all 0 unless you connect to a very advanced renderer (which the TVs nowadays are not)</em>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload