Page 1 of 1

execute shell command when select stream

PostPosted: Fri Jan 16, 2015 8:38 am
by vlad2005
Hi!
I want to develop an sopcast plugin that allow to select channels from TV.
I want some suggestions about changing sopcast url when change selection on tv, because mediaplayer from tv don't "understand" sop url.
For example, suposing that i have an sopcast url sop://.....bla/111, when select from tv that item, on server stop current playback and start new one using sp-sc-auth.
Practically, all items point to same url: http://127.0.0.1:8902, but somehow need to change sopcast url from where grab stream.
Thanks!

Re: execute shell command when select stream

PostPosted: Fri Jan 16, 2015 9:19 am
by vlad2005
An ideea, maybe give an url to each item wich is processes by server and then redirect to http://127.0.0.1:8902
For example:
http://localhost/?stream=1
When click on this item, request is send to webserver that make all work (execute shell, restart stream and so) then redirect to address where stream is available for TV.
Can this work?

Re: execute shell command when select stream

PostPosted: Fri Jan 16, 2015 10:07 am
by zip
That's not how DLNA works ... you need to give URLs while browsing, not when you click play. You wont be able to do what you want, I'm afraid.