From f18ce0e6db0c3ad057c7dd238ccf01fb09016a59 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 1 Oct 2013 22:39:53 +0200 Subject: [PATCH] Preliminary support for Rai Replay Not complete yet, need to hook into getPPM() --- raitv.user.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/raitv.user.js b/raitv.user.js index 71b176e..07ac048 100644 --- a/raitv.user.js +++ b/raitv.user.js @@ -29,7 +29,6 @@ function addScript(source) { addScript( function() { - function getURL(name) { var list = document.getElementsByName(name) ; if (list && list[0]) { @@ -100,7 +99,15 @@ function() { // and of course once at the beginning of it all 8-) slReset(); + if (window.replayTv && window.replayTv.vid2data[replayTv.currVideo]) { + urls.std = window.replayTv.vid2data[replayTv.currVideo].h264; + } var sch = document.getElementById("silverlightControlHost"); + if (!sch) { + sch = document.getElementById("SilverlightPlayer"); + sch.style.width = '100%'; + sch.style.height = '100%'; + } if (sch) { // debug console.log(urls); -- 2.32.0.93.g670b81a890