FAQ  •  Register  •  Login

execute shell command when select stream

<<

vlad2005

Serviio newbie

Posts: 5

Joined: Fri Jan 16, 2015 8:22 am

Post Fri Jan 16, 2015 8:38 am

execute shell command when select stream

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!
<<

vlad2005

Serviio newbie

Posts: 5

Joined: Fri Jan 16, 2015 8:22 am

Post Fri Jan 16, 2015 9:19 am

Re: execute shell command when select stream

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?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Jan 16, 2015 10:07 am

Re: execute shell command when select stream

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.

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 5 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.