Permalink
Browse files

Initial open commit

  • Loading branch information...
1 parent b593dad commit 0a1a881c6dd56346ca4ddf602a1ba99f3f53cd59 Bart van den Ende committed Oct 27, 2013
Showing 654 changed files with 77,136 additions and 2 deletions.
View
@@ -1,2 +1,38 @@
-bartsidee-boxee
-===============
+## Bartsidee Boxee Repository
+
+#### Installation
+Follow these steps to get access to the repo:
+
+1. Open the main boxee menu -> apps -> repositories
+2. Click on the plus sign on the right
+3. Type your personal repo address: **boxee.bartsidee.nl**
+
+#### Apps
+1. [BartsideeTV](https://github.com/bartsidee/bartsidee-boxee/wiki/BartsideeTv)
+2. [Music Player](https://github.com/bartsidee/bartsidee-boxee/wiki/Music-Player)
+3. [Podcasts](https://github.com/bartsidee/bartsidee-boxee/wiki/Podcasts)
+4. [TuneIn](https://github.com/bartsidee/bartsidee-boxee/wiki/TuneIn)
+
+#### Issues
+If you have any issues with the applications or the repo, please use the github issue tracker.
+
+#### Boxee Installer
+Find the EOL installers for OSX, Windows and Linux [here](https://github.com/bartsidee/boxee-packages/.)
+
+#### Application Logs
+If you encounter any problems with any of my apps in the repo, it could be of good use to send your log details. It is much easier to debug the problem this way.
+
+_Settings_
+First make sure you have set the logging to notice level to make sure any is actually logged at the time of the problem.
+Boxee Main Menu -> Settings -> Advanced -> Debug Level -> Notice
+
+_Platform_
+For the boxee platforme versions (pc/mac/linux) you can just copy your log from you boxee userdata. You can find the correct directory for your installation here: Boxee support
+
+_Boxee Box_
+For the boxee box you can not access the filesystem, so you have to get it from a special debug webpage. In your browser open the following link and replace "your boxee ip" with the ip address of your boxee box:
+"Your boxee ip":8080
+
+Press get latest, and download the latest archive found in the list.
+
+You can just includes this with your mail, it will help out big time.
View
@@ -0,0 +1 @@
+## Application Packages
Binary file not shown.
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<app id="bartsidee.music" version="1.9">
+<signature>osGFDR/c1pn7sKTMeas5HytVxkQ+iaTWOl7L5HBBN8O/Vqpq1QMdfYbUlrtkiy6R
+MchQPkjLpeJZkDAsYx/thGY02bTcTypMn/K9lfb2ws0DZKZtDF4DMQB7HaatwVDu
+tjHHYghfp11O6r7zbbB24HRyj3FfLuflwF+JprfVDKAwtYUfn6wT6zAJCMwn9sHB
+9tsS0QCHOqD+I7XuAPAjtsQ9XNyZiYEfW9JDQmwqYo8iypma4ffQjUcNKjasyixW
+TO3/nGmxLB3Po4Ju+y0r75M6KXBiWVdK0d9A7iidJ3uPf6nqeXrJ9Y0Hz8cjLaZ9
+K0NfWTMZ3Kjg0pcPaBmBHw==</signature>
+<authority>dev.bartsidee</authority>
+</app>
Binary file not shown.
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<app id="bartsidee.podcast" version="0.3">
+<signature>MpIP7YVst4lH+hvB2/FC5jSFCuFY/aMNFq7NvqrnoEnxCh1GMKTdJUuBdOZVQuYE
+mDP49FkeKw/qNQPM9jD4qn8KmF6n5fx3otM+IL6uAzbetOfpCxRWwynXSs8S1+k8
+xmRwPyzH/iwCE6xUNEe9fu/oewZ95JURRjW7lDyHZhSu7Eg3NQDIfDkx5mK7Gylx
+9NXQZz7MPJzjyiGG60GDeyAuER5Emytp6M4pMRIsBFZhkE9CB3CCBBdArdIBmG/H
+sqzo8DayQ5rheUbQADP7mLbT9vtYYcsPFupBfr6ey3W4DLYH8tW9JZbnMPyLS37Z
+3hXonMNb3/KiD72nHAI7ig==</signature>
+<authority>dev.bartsidee</authority>
+</app>
Binary file not shown.
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<app id="bartsidee.tunein" version="0.1">
+<signature>VCh7iuKMS8pOKC3SJFmdSeKxSzgA0GNzVnA6IEiynRuf0sK1QUk4RMMn4xtCnJSZ
+ICLjRoRW5VRS5InIMb8XYyfWruFDwkiznOai7uakVzV0FfohpH6dMme9jb/McgFi
+70QlUFqk5DOa53UZ39KrOxslM06FwwOjSzEauKMpQNQc0EoMTTkXIjSczZVqq5gf
+9BbFwVQVwB95Z15azCJWYOJJPRxN3mmbXDL270jIPKz9Qh+1iMOTp2tuSSfgSfxy
+VietpN/wEHnyuHfr6u9+UQouEYOPnQJ17i4OduzCclX7J2mXauG0WVfNFZ1GqN8v
+oJukiweKVp6Re8N9Iai59g==</signature>
+<authority>dev.bartsidee</authority>
+</app>
Binary file not shown.
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<app id="bartsidee.tv" version="2.03">
+<signature>XZYM86+i95359ciR2tOtypVIe9+Ht7mTOf71xAxT9hkkXY5oxtA0Hrk8hUoj3ihR
+ZtNWUWcywMPuQqTLf2b+PhuaIILRB38ATdbEyOMz0vY2XzJ725B6IMYi7sXqVD3R
+j4UohSnzw+sqxAKZAzfJVP7Etv6VjrgJlWV9hYe6TAQU0cf+W25cMSLzOG1J/RNF
+cehtHVx/AYqDguigrE8QBEuoC58lP5BA48VyWt4NOWh3E+IWDrKtL2YzyO3ghVS5
+H09iRJuxHWvUKrFpZbjPC2BuGunczkXplElRqUmG3EAm+x2BE9UWma5ESAVVgpc8
+/UVuqRkUW4eksnAgbu8AmA==</signature>
+<authority>dev.bartsidee</authority>
+</app>
View
@@ -0,0 +1 @@
+## Application Icons
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1,66 @@
+<apps>
+ <app>
+ <id>bartsidee.tunein</id>
+ <name>Tune-In Radio</name>
+ <version>0.1</version>
+ <description>Listen to online radio from tune-in</description>
+ <thumb>http://www.bartsidee.nl/boxee/img/tunein/thumb.png</thumb>
+ <repositoryid>com.bart</repositoryid>
+ <repository>http://boxee.bartsidee.nl</repository>
+ <media>music</media>
+ <copyright>bartsidee</copyright>
+ <email>info@bartsidee.nl</email>
+ <type>skin</type>
+ <startWindow>default</startWindow>
+ <platform>all</platform>
+ <minversion>0.9.14</minversion>
+ </app>
+ <app>
+ <id>bartsidee.tv</id>
+ <name>Bartsidee TV</name>
+ <version>2.03</version>
+ <description>Modular framework to watch tv episodes and more!</description>
+ <thumb>http://boxee.bartsidee.nl/img/tv/thumb.png</thumb>
+ <repositoryid>bartsidee</repositoryid>
+ <repository>http://boxee.bartsidee.nl</repository>
+ <media>video</media>
+ <copyright>bartsidee</copyright>
+ <email>info@bartsidee.nl</email>
+ <type>skin</type>
+ <startWindow>14444</startWindow>
+ <platform>all</platform>
+ <minversion>0.9.14</minversion>
+ </app>
+ <app>
+ <id>bartsidee.podcast</id>
+ <name>Podcasts</name>
+ <version>0.3</version>
+ <description>Listen to online podcast from iTunes</description>
+ <thumb>http://boxee.bartsidee.nl/img/podcast/thumb.png</thumb>
+ <repositoryid>bartsidee</repositoryid>
+ <repository>http://boxee.bartsidee.nl</repository>
+ <media>music</media>
+ <copyright>bartsidee</copyright>
+ <email>info@bartsidee.nl</email>
+ <type>skin</type>
+ <startWindow>14000</startWindow>
+ <platform>all</platform>
+ <minversion>0.9.14</minversion>
+ </app>
+ <app>
+ <id>bartsidee.music</id>
+ <name>Music Player</name>
+ <version>1.10</version>
+ <description>Music player, lets you control your boxee music</description>
+ <thumb>http://boxee.bartsidee.nl/img/music/thumb.png</thumb>
+ <repository>http://boxee.bartsidee.nl</repository>
+ <media>music</media>
+ <copyright>Boxee</copyright>
+ <email>info@bartsidee.nl</email>
+ <type>skin</type>
+ <startWindow>default</startWindow>
+ <platform>all</platform>
+ <minversion>0.9.14</minversion>
+ <maxversion>1.0.00</maxversion>
+ </app>
+</apps>
View
@@ -0,0 +1,15 @@
+## JS Player files
+Boxee has a native video player, but also allows to wrap its player around a flash player object on a regular website.
+
+To make sure the control commands of the user are propagated to this website, boxee inserts a JS script file into the page that can act as a bridge. Translating the remote key presses to actual clicks.
+
+Find in this directory some JS files used for playback.
+
+
+
+
+
+
+
+
+
View
@@ -0,0 +1,167 @@
+boxee.multiDoc = true;
+boxee.enableLog(true);
+boxee.autoChoosePlayer=false;
+boxee.renderBrowser=true;
+boxee.setCanSetVolume(false);
+
+var btn_x = 16;
+var btn_y = 374;
+var bbc_x1 = 7;
+var bbc_x2 = 633;
+var bbc_y = 390;
+var has_hd = true;
+var has_active = false;
+var play_started = false;
+var hd_notified = false;
+var hd_check = "(function(){if(document.getElementsByClassName('hd-available').length>0){return 1}})()";
+
+var player_ref = 'iplayer.models.Emp.getInstance()';
+
+bbc = {
+
+ isInitialised: function()
+ {
+ if (this.execute('isInitialised()') == 'true') return true;
+ else return false;
+ },
+
+ play: function()
+ {
+ if (!this.isPlaying())
+ {
+ width = boxee.getActiveWidget().width;
+ height = boxee.getActiveWidget().height;
+ this.click(width/2, height/2);
+ //this.execute('play()');
+ }
+ },
+
+ isPlaying: function()
+ {
+ if (this.execute('_isPlaying') == 'true') return true;
+ else return false;
+ },
+
+ execute: function(str)
+ {
+ return browser.execute(player_ref+'.'+str);
+ },
+
+ isActive: function()
+ {
+ if (typeof boxee.getActiveWidget() == 'object') return true;
+ else return false;
+ },
+
+ click: function(x, y)
+ {
+ boxee.getActiveWidget().click(x, y);
+ boxee.getActiveWidget().mouseMove( - 1, -1);
+ }
+
+}
+
+boxee.onInit = function() {
+ browser.setCookie(".bbc.co.uk", "BBCPGstat", "0%3A-");
+}
+
+boxee.onDocumentLoaded = function()
+{
+ _findplayer = setInterval(function(){
+ boxee.getWidgets().forEach(function(widget) {
+ id = widget.getAttribute('id');
+ src = widget.getAttribute('src');
+ if (id.indexOf('bbc_') != -1 && src.indexOf('www.bbc.co.uk/emp') != -1) {
+ boxee.renderBrowser = false;
+ widget.setCrop(0, 0, 0, 35);
+ boxee.notifyConfigChange(widget.width, widget.height-35);
+ browser.invalidate();
+ widget.setActive();
+ startPlayer();
+ clearInterval(_findplayer);
+ }
+ });
+ },1000);
+}
+
+function startPlayer() {
+ _waitForPlayer = setInterval(function() {
+ if (bbc.isPlaying())
+ {
+ boxee.setCanPause(true);
+ boxee.setCanSkip(true);
+ clearInterval(_waitForPlayer);
+ }
+ if (bbc.isActive() && bbc.isInitialised())
+ bbc.play()
+ },4000);
+}
+
+boxee.onActivateExt = function(mode) {
+ has_active = false;
+ play_started = false;
+ boxee.setCanSkip(false);
+ boxee.setCanPause(false);
+ //boxee.getActiveWidget().setActive(false);
+ if (has_hd) {
+ has_hd = false;
+ boxee.showNotification("Switching to HD...", ".", 5);
+ browser.execute('iplayer.episode.gotoHDUrl()');
+ } else {
+ has_hd = false;
+ boxee.showNotification("Switching to default stream...", ".", 5);
+ browser.navigate(boxee.getParam('src'));
+ }
+}
+
+function bbcHdAvailable() {
+ if (browser.execute(hd_check) == '1') {
+ boxee.enableExt(0, "Toggle HD", "http://dir.boxee.tv/apps/common/icons/icons_hd.png");
+ if (!hd_notified) {
+ hd_notified = true;
+ boxee.showNotification("This video is available in HD.", ".", 10);
+ }
+ }
+}
+
+function bbcGetLocation() {
+ for (x = bbc_x1; x < bbc_x2; x += 1) {
+ p = boxee.getActiveWidget().getPixelData(x, bbc_y);
+ if ((p.r == 51) && (p.g == 51) && (p.b == 51)) return x;
+ }
+ return bbc_x2;
+}
+
+function bbcGetSeek(seek) {
+ var x = bbcGetLocation() + (seek);
+ if (seek > 0 && x > bbc_x2) x = bbc_x2;
+ else if (seek < 0 && x < bbc_x1) x = bbc_x1;
+ return x;
+}
+
+boxee.onPlay = function()
+{
+ //bbc.play();
+ bbc.click(btn_x, btn_y);
+}
+
+boxee.onPause = function()
+{
+ bbc.click(btn_x, btn_y);
+}
+
+boxee.onSkip = function() {
+ boxee.getActiveWidget().click(bbcGetSeek(30), bbc_y);
+}
+
+boxee.onBigSkip = function() {
+ boxee.getActiveWidget().click(bbcGetSeek(60), bbc_y);
+}
+
+boxee.onBack = function() {
+ boxee.getActiveWidget().click(bbcGetSeek( - 30), bbc_y);
+}
+
+boxee.onBigBack = function() {
+ boxee.getActiveWidget().click(bbcGetSeek( - 60), bbc_y);
+}
Oops, something went wrong.

0 comments on commit 0a1a881

Please sign in to comment.