summaryrefslogtreecommitdiff
path: root/smarttv-client/Javascript/Urls.js
diff options
context:
space:
mode:
Diffstat (limited to 'smarttv-client/Javascript/Urls.js')
-rw-r--r--smarttv-client/Javascript/Urls.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/smarttv-client/Javascript/Urls.js b/smarttv-client/Javascript/Urls.js
index 3df8f3e..79dda05 100644
--- a/smarttv-client/Javascript/Urls.js
+++ b/smarttv-client/Javascript/Urls.js
@@ -1,3 +1,28 @@
+/*
+function onYouTubePlayerReady(playerId) {
+ Yt.ytPlyr = document.getElementById(playerId);
+
+ Main.debug("onYouTubePlayerReady() playerId: " + playerId + ", player: " + Main.ytPlyr);
+ player.addEventListener("onStateChange", "onPlayerStateChange");
+ player.addEventListener("onError", "onPlayerError");
+ player.setSize(960, 540);
+// player.cueVideoById(videoId);
+ //player.loadVideoById(videoId);
+
+};
+
+var Yt = {
+ ytPlyr : null
+};
+Yt.onPlayerError= function (error) {
+
+};
+
+Yt.onPlayerStateChange = function (state) {
+
+};
+*/
+
var UrlsFetcher = {
qualities : {17 : "144p", 36 : "240p", 18 : "360p", 22 : "720p", 37 : "1080p" },
preference : [36, 18, 22, 37],