From 27dd00680a3cfdeafc82b5c9d6c8b605a28fcca8 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 10 Aug 2015 23:43:59 +0200 Subject: [PATCH 1/1] initial version 0.1.0 --- .gitignore | 3 +++ README.rst | 66 +++++++++++++++++++++++++++++++++++++++++++++++ bootstrap.js | 11 ++++++++ data/play-32.png | Bin 0 -> 473 bytes development.rst | 45 ++++++++++++++++++++++++++++++++ icon.png | Bin 0 -> 473 bytes index.js | 65 ++++++++++++++++++++++++++++++++++++++++++++++ package.json | 30 +++++++++++++++++++++ 8 files changed, 220 insertions(+) create mode 100644 .gitignore create mode 100644 README.rst create mode 100644 bootstrap.js create mode 100644 data/play-32.png create mode 100644 development.rst create mode 100644 icon.png create mode 100644 index.js create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..92e016c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.html +*.xpi +/dist/ diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..5dfb1bd --- /dev/null +++ b/README.rst @@ -0,0 +1,66 @@ +********************** +Play video on Dreambox +********************** + +Firefox addon (extension) that adds a "Play on Dreambox" button to the +toolbar. +Pressing it plays the video of the current tab on your Dreambox__ satellite +receiver. + +Works fine with a Dreambox `DM7080 HD`__. + +__ http://www.dream-multimedia-tv.de/products +__ http://www.dream-multimedia-tv.de/dm7080-hd + +.. contents:: + + +Configuration options +===================== +In the addons manager + +youtube-dl path + Full path to the ``youtube-dl`` executable, e.g. ``/usr/bin/youtube-dl`` +Dreambox IP/host name + IP address of your dreambox satellite receiver, e.g. ``192.168.1.21`` + + +Dependencies +============ +``youtube-dl`` + for video URL extraction. + + Installable on a standard Debian/Ubuntu system via:: + + $ apt-get install youtube-dl + + https://github.com/rg3/youtube-dl + + +License +======= +``playVideoOnDreambox`` is licensed under the `AGPL v3`__ or later. + +__ http://www.gnu.org/licenses/agpl.html + + +Homepage +======== +Web site + http://cweiske.de/playVideoOnDreambox.htm +Source code + http://git.cweiske.de/playVideoOnDreambox.git + + Mirror: https://github.com/cweiske/playVideoOnDreambox + + +Author +====== +Written by Christian Weiske, cweiske@cweiske.de + + +Alternatives +============ +- `MovieStreamer v1.3 - Internet-Filme auf der Box abspielen.`__ + +__ http://www.dream-multimedia-tv.de/board/index.php?page=Thread&threadID=17776 diff --git a/bootstrap.js b/bootstrap.js new file mode 100644 index 0000000..4866564 --- /dev/null +++ b/bootstrap.js @@ -0,0 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +"use strict"; + +const { utils: Cu } = Components; +const rootURI = __SCRIPT_URI_SPEC__.replace("bootstrap.js", ""); +const COMMONJS_URI = "resource://gre/modules/commonjs"; +const { require } = Cu.import(COMMONJS_URI + "/toolkit/require.js", {}); +const { Bootstrap } = require(COMMONJS_URI + "/sdk/addon/bootstrap.js"); +const { startup, shutdown, install, uninstall } = new Bootstrap(rootURI); diff --git a/data/play-32.png b/data/play-32.png new file mode 100644 index 0000000000000000000000000000000000000000..c74bb35ebeb6faa46493c38c2f69294228c1530e GIT binary patch literal 473 zcmV;~0Ve*5P)@jLJ-kUv`xHHh{MLO8T!pm(Oc$Lq{eEsL0(HAx0VMM&tF>EDDwW9Paww(3 z2*94@&)!`w7iO~=zVGX879h1+O;)Rwm{OxaHwuMm@jLJ-kUv`xHHh{MLO8T!pm(Oc$Lq{eEsL0(HAx0VMM&tF>EDDwW9Paww(3 z2*94@&)!`w7iO~=zVGX879h1+O;)Rwm{OxaHwuMm", + "engines": { + "firefox": ">=38.0a1", + "fennec": ">=38.0a1" + }, + "license": "AGPlv3+", + "preferences": [ + { + "name": "youtubedlPath", + "title": "youtube-dl path", + "description": "Full path to youtube-dl binary", + "type": "string", + "value": "/usr/bin/youtube-dl" + }, + { + "name": "dreamboxHost", + "title": "Dreambox IP/host name", + "description": "IP or DNS name of your dreambox", + "type": "string", + "value": "dreambox" + } + ] +} -- 2.30.2