Play Video/Audio stream from console or on tv start

Ideas and dreaming will go this forum

arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Play Video/Audio stream from console or on tv start

Post by arris69 »

hi,
played a bit around with messagebox stuff and upnp.
result are some network captures, so it's easy to start video play from shellscript with netcat.
this is just a proof of concept, feel free to implement it in some way.
(see actions and parameters: /mtd_rwarea/dlna_web_root/dmr/AVTransport1.xml)

set the url: (CurrentURI), CurrentURIMetaData, normaly it should provide some information about the media but its' not a "must" but can't be empty.

Code: Select all

POST /upnp/control/AVTransport1 HTTP/1.1
SOAPACTION: urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI
Connection: close
Content-Length: 619
Content-Type: text/xml
Host: 192.168.1.51:52235
User-Agent: HttpSamyGO/1.1

<?xml version='1.0' encoding='UTF-8' standalone='no' ?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><CurrentURI>http://75.101.165.227:8080/app/iLJy+VD9xyYqv5jtERGBijAeiqUmYWqCFzy4Li6gM0uMzI8pYoRWTxqp+UxEy14ibHGOrLpqJTkjI+WE6Q6lbQ6e2+1X96ToH8lGCv0f4f88M0jxU6S6z4SwC8KOCoMhscRxjOiy4CJVzNNeCGQxpw==.mp4</CurrentURI><CurrentURIMetaData><DIDL-Lite></DIDL-Lite></CurrentURIMetaData></u:SetAVTransportURI></s:Body></s:Envelope>
start playing: InstanceID, Speed.

Code: Select all

POST /upnp/control/AVTransport1 HTTP/1.1
SOAPACTION: urn:schemas-upnp-org:service:AVTransport:1#Play
Connection: close
Content-Length: 321
Content-Type: text/xml
Host: 192.168.1.51:52235
User-Agent: HttpSamyGO/1.1

<?xml version='1.0' encoding='UTF-8' standalone='no' ?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><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>
stop playing: needs just InstanceID.

Code: Select all

POST /upnp/control/AVTransport1 HTTP/1.1
SOAPACTION: urn:schemas-upnp-org:service:AVTransport:1#Stop
Connection: close
Content-Length: 305
Content-Type: text/xml
Host: 192.168.1.51:52235
User-Agent: HttpSamyGO/1.1

<?xml version='1.0' encoding='UTF-8' standalone='no' ?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:Stop xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID></u:Stop></s:Body></s:Envelope>
happy coding
arris
User avatar
erdem_ua
SamyGO Admin
Posts: 3126
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: Play Video/Audio stream from console or on tv start

Post by erdem_ua »

Our TVs could play videos from within SOAP messages? Impressive :)
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Play Video/Audio stream from console or on tv start

Post by juusso »

Few months ago here was a request for this kind of hack with award of $200 (or smth like it). Is this offer still active? :D
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
User avatar
erdem_ua
SamyGO Admin
Posts: 3126
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: Play Video/Audio stream from console or on tv start

Post by erdem_ua »

I think it's for C5000 series.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Play Video/Audio stream from console or on tv start

Post by juusso »

Yes, might you are right.

Why this hack shouldn`t work on C series TV if we successfully use send messages to TV tool from B series on C Tv`s.
From this point of view i think the invention of arris might work on C series aswell. IMHO.
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Play Video/Audio stream from console or on tv start

Post by arris69 »

erdem_ua wrote:I think it's for C5000 series.
i did the test on B7020.
it shuld work with any device what supports "upnp-renderer?"

in theory also pause, seek, volume control etc. is supported but think some functions needs extra info about the media in CurrentURIMetaData

hth
arris
User avatar
erdem_ua
SamyGO Admin
Posts: 3126
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: Play Video/Audio stream from console or on tv start

Post by erdem_ua »

I was talking about $200 bounty :D
jw1001
Posts: 166
Joined: Mon Dec 07, 2009 4:58 pm

Re: Play Video/Audio stream from console or on tv start

Post by jw1001 »

Well, your "Content-Length: 532" seems wrong. My editor counts 543, plus 20 bytes for end-of-line characters (CRLF). That would cause message rejection.

Post Reply

Return to “[B] Brainstorm”