Permalink
Browse files

remove control scripts, switch to boxee-api.js

  • Loading branch information...
1 parent 73188a1 commit 3b7d8a9f35c334df210d33bced61bbbe3db245c2 Raymond Cohen committed Oct 5, 2011
@@ -1,26 +0,0 @@
-boxee.apiMinVersion = 7.0;
-boxee.reloadOnPageChange = true;
-boxee.setMode(boxee.KEYBOARD_MODE);
-
-playerState.canPause = true;
-
-function showMessage(message) {
- boxee.showNotification(message, ".", 1);
-}
-
-function updateTimeBuffer(time, duration) {
- playerState.time = time;
- playerState.duration = duration;
-}
-
-function getURL(url) {
- return boxee.getHttp(url);
-}
-
-boxee.onPlay = function() {
- browser.execute('boxee.onPlay();');
-}
-
-boxee.onPause = function() {
- browser.execute('boxee.onPause()');
-}
@@ -5,9 +5,6 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <!-- NOTE that boxee-control URL must be absolute -->
- <meta name="boxee-control" content="http://localhost:3000/javascripts/boxee-control.js" />
-
<link rel="Stylesheet" type="text/css" href="/stylesheets/main.css" />
<link rel="Stylesheet" type="text/css" href="/stylesheets/fullscreen-player.css" />
<link rel="Stylesheet" type="text/css" href="/stylesheets/fullscreen-player-urls.css" />
@@ -1,34 +0,0 @@
-boxee.apiMinVersion = 7.0;
-boxee.reloadOnPageChange = true;
-boxee.setMode(boxee.KEYBOARD_MODE);
-
-playerState.canPause = true;
-
-function showMessage(message) {
- boxee.showNotification(message, ".", 1);
-}
-
-function updateTimeBuffer(time, duration) {
- playerState.time = time;
- playerState.duration = duration;
-}
-
-function getURL(url) {
- return boxee.getHttp(url);
-}
-
-function getXML(url) {
- if (url.substr(0, 3) == 'rss') {
- url = 'http' + url.substring(3);
- }
-
- return getURL(url);
-}
-
-boxee.onPlay = function() {
- browser.execute('boxee.onPlay();');
-}
-
-boxee.onPause = function() {
- browser.execute('boxee.onPause()');
-}
@@ -378,6 +378,8 @@ $(function() {
});
}, 1000);
+ boxeeAPI.keyboardMode();
+
var h = $(window).height();
var w = $(window).width();
if (h == 480 && w == 720) {

0 comments on commit 3b7d8a9

Please sign in to comment.