SOAP for set volume level
Posted: Thu Oct 20, 2011 5:20 pm
If you would like to get or set volume level you can use SOAP future integrated with Samsung TV (B-series and up). You need to send xml schema.
Example for set volume (33) at IP (192.168.0.10):
Similar way you can read and set: volume mute, brightness, contrast, sharpness, color temperature.
I use this in my Remote LAN Control app. Maybe it's possible to make script for work with PRV+ (or myButtons).
Example for set volume (33) at IP (192.168.0.10):
Code: Select all
POST /upnp/control/RenderingControl1 HTTP/1.1
SOAPACTION: urn:schemas-upnp-org:service:RenderingControl:1#SetVolume
CONNECTION: close
CONTENT-LENGTH: 368
CONTENT-TYPE: text/xml
HOST: http://192.168.1.10:52235
USER-AGENT: Http/1.1
<?xml version='1.0' encoding='utf-8'?>
<s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'>
<s:Body>
<ns0:SetVolume xmlns:ns0='urn:schemas-upnp-org:service:RenderingControl:1'>
<InstanceID>0</InstanceID>
<DesiredVolume>33</DesiredVolume>
<Channel>Master</Channel>
</ns0:SetVolume>
</s:Body>
</s:Envelope>
I use this in my Remote LAN Control app. Maybe it's possible to make script for work with PRV+ (or myButtons).