Aller au contenu

Hc Lite + Sonos


Julien Lemare

Messages recommandés

 Pas en lua donc oublies le Plugin de Krikroff mais, c'est possible en "string"...

 

Exemple pour un "stop" :

POST /MediaRenderer/AVTransport/Control HTTP/1.1
Content-Length: 266
SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#Stop"

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:Stop xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Stop></s:Body></s:Envelope>0x0D0x0A0x0D0x0A 

Exemple pour un "play" :

POST /MediaRenderer/AVTransport/Control HTTP/1.1
Content-Length: 266
SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#Play"

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:Play xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Play></s:Body></s:Envelope>0x0D0x0A0x0D0x0A

Dans le vd

Renseigner l'ip du play et port : 1400

Lien vers le commentaire
Partager sur d’autres sites

Oui, ip du play à  commander + port : 1400

 

pour d'autres commandes...

 

Tirés du forum officiel :

 

 

Play 

Code: POST /MediaRenderer/AVTransport/Control HTTP/1.1 
Content-Length: 266 
SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#Play" 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:Play xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Play></s:Body></s:Envelope>0x0D0x0A0x0D0x0A

Stop 

Code: POST /MediaRenderer/AVTransport/Control HTTP/1.1 
Content-Length: 266 
SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#Stop" 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:Stop xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Stop></s:Body></s:Envelope>0x0D0x0A0x0D0x0A 

Pause 

Code: POST /MediaRenderer/AVTransport/Control HTTP/1.1 
Content-Length: 267 
SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#Pause" 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:Pause xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Pause></s:Body></s:Envelope>0x0D0x0A0x0D0x0A 

Previous 

Code: POST /MediaRenderer/AVTransport/Control HTTP/1.1 
Content-Length: 270 
SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#Previous" 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:Previous xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Previous></s:Body></s:Envelope>0x0D0x0A0x0D0x0A 

Next 

Code: POST /MediaRenderer/AVTransport/Control HTTP/1.1 
Content-Length: 266 
SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#Next" 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:Next xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Next></s:Body></s:Envelope>0x0D0x0A0x0D0x0A 

Mute 

Code: POST /MediaRenderer/RenderingControl/Control HTTP/1.1 
Content-Length: 314 
SOAPACTION: "urn:schemas-upnp-org:service:RenderingControl:1#SetMute" 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:SetMute xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><InstanceID>0</InstanceID><Channel>Master</Channel><DesiredMute>1</DesiredMute></u:SetMute></s:Body></s:Envelope>0x0D0x0A0x0D0x0A 

UnMute 

Code: POST /MediaRenderer/RenderingControl/Control HTTP/1.1 
Content-Length: 314 
SOAPACTION: "urn:schemas-upnp-org:service:RenderingControl:1#SetMute" 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:SetMute xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><InstanceID>0</InstanceID><Channel>Master</Channel><DesiredMute>0</DesiredMute></u:SetMute></s:Body></s:Envelope>0x0D0x0A0x0D0x0A 

Volume 

Code: POST /MediaRenderer/RenderingControl/Control HTTP/1.1 
Content-Length: 324 
SOAPACTION: "urn:schemas-upnp-org:service:RenderingControl:1#SetVolume" 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:SetVolume xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><InstanceID>0</InstanceID><Channel>Master</Channel><DesiredVolume>_sliderValue_</DesiredVolume></u:SetVolume></s:Body></s:Envelope>0x0D0x0A0x0D0x0A

 

Lien vers le commentaire
Partager sur d’autres sites

@ Shad :

 

 

 

Ungroup zone option 1 
Code: POST /MediaRenderer/AVTransport/Control HTTP/1.1 
Content-Length: 310 
SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#BecomeCoordinatorOfStandaloneGroup" 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:BecomeCoordinatorOfStandaloneGroup xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID></u:BecomeCoordinatorOfStandaloneGroup></s:Body></s:Envelope>0x0D0x0A0x0D0x0A

Ungroup zone option 2 
This one proved to be a bit more stable for some users. 
Code: POST /MediaRenderer/AVTransport/Control HTTP/1.1 
Content-Length: 344 
SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI" 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID>,<CurrentURI></CurrentURI>,<CurrentURIMetaData></CurrentURIMetaData></u:SetAVTransportURI></s:Body></s:Envelope>0x0D0x0A0x0D0x0A

Group to zone 
First check <your sonos ip>:1400/status/topology the UUID of your main zone, e.g: RINCON_000E58226B1601400 

Code: POST /MediaRenderer/AVTransport/Control HTTP/1.1 
Content-Length: 377 
SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI" 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID>,<CurrentURI>x-rincon:RINCON_000E58226B1601400</CurrentURI>,<CurrentURIMetaData></CurrentURIMetaData></u:SetAVTransportURI></s:Body></s:Envelope>0x0D0x0A0x0D0x0A

 

@ Julien...je test et t'envoie le vd

Lien vers le commentaire
Partager sur d’autres sites

Fais un essais.

Dans l'appli sonos, envoi une musique dans la SDB seulement. 

Relève l'ip de la Play ( apparement 1.232 )

 

Laisse la musique se diffuser, pendant ce temps sur la hcL vérifie l'ip et appuis sur "pause"...

Lien vers le commentaire
Partager sur d’autres sites

Alors c'est bon ^^

 

Mais ca ne fonctionne que si c'est 2 musique différentes..

 

2 groupes différents en fait

 

 

Mon souhait est de controller les play sur la même musique, coupler a des detecteurs, je me déplace et le son me suit 

 

 

JE ME SUIT MAL EXPRIMER !!!

 

En fait l'idéal serait de MUTE différents HP et non de mettre PAUSE ;-)

 

Ok je sort, et vais trés loinnnnn

Lien vers le commentaire
Partager sur d’autres sites

:)

Oui, tu peux rajouter le commande "mute" au vd et d'autres commandes même (playlist, radio...etc )!

 

Tu peux aussi ( si tu ne veux pas "grouper/dégrouper ) utiliser plusieurs vd. ( mais attention au risque de décalage de son. )

Lien vers le commentaire
Partager sur d’autres sites

×
×
  • Créer...