Page 1 of 1

remote control via http-commandline

PostPosted: Wed Mar 26, 2014 10:53 am
by EPIX
First of all: you did a great job ! Serviio is really good & very stylish too ;-)

I'd like to integrate serviio into my home-automation, for this reason I'd have to controll at least
- volume
- source (selection of different online-streams) and Playlists

via a simple http-command, just like
http:\\IP_serviio\volume=50
or
http:\\IP_serviio\source=onlinestream?playstream=2

I tried a litte bit, I can switch to the Onlinestreams when I use
http:\\IP_serviio:23424/mediabrowser/#/browse/A_OF?title=Online&b=Home&b=Musik&bid=0&bid=A
so I guess my feature-wishes could be possible.

If I had to use a API - i read the documentation but I did not find the solution - maybe you could just turn me in the right direction ;-)
The only problem use a API is the login/authorisation: if it is as complicated as written in den CDS-API I could not implement it on my homecontrol-server
For me it would be enough to use a specific port because my router to the WWW will not open this port to the WWW - that is secure enough
(or a simple test-"password")

Re: remote control via http-commandline

PostPosted: Fri Mar 28, 2014 12:50 am
by zip
CDS API is the way to browse / play.

For volume, that is not supported and is a feature of clients rather than the server.

Re: remote control via http-commandline

PostPosted: Fri Mar 28, 2014 10:51 am
by EPIX
For volume, that is not supported and is a feature of clients rather than the server.

I just thought because there is a volume control in the "play"-screen - there is no way to claim control to this shifter?

Re: remote control via http-commandline

PostPosted: Fri Mar 28, 2014 3:39 pm
by zip
You'd have to invoke some javascript if you want to control the MediaBrowser web app. No idea how :-)

Re: remote control via http-commandline

PostPosted: Mon Oct 11, 2021 10:22 am
by jeffrey1gardner
You'd have to invoke some javascript if you want to control the MediaBrowser domyessay web app.


You can also take the approach of wrapping the entire contents of a script in a function and having that outer function use strict mode.