Server for the "Play video on Dreambox" android app.
Accepts an URL, runs youtube-dl on it to extract the video URL and lets the Dreambox satellite receiver play this file.
Point your web server's document root to the www/
directory.
Altenatively symlink the www/play.php
file into your document root
directory.
You can adjust the path to youtube-dl
and the Dreambox host name
or IP address by creating a config file in data/config.php
.
Simply copy data/config.php.dist
onto data/config.php
and adjust it.
If your dreambox web interface is password protected, add the username
and password to the $dreamboxUrl
configuration variable:
$dreamboxUrl = 'http://user:pass@dreambox';
Send the web site URL via POST to play.php
:
$ curl -XPOST --data http://example.org/page.htm\ -H 'Content-type: text/plain'\ http://proxy.example.org/play.php
You can test it on command line, too:
$ php www/play.php http://example.org/page.htm
Testing the URL selection without playing on the dreambox is possible:
$ php www/play.php http://example.org/page.htm --dry-run
This application is available under the AGPL v3 or later.
Written by Christian Weiske, cweiske@cweiske.de