Hallyunoona
Forum Replies Created
-
Forum: Plugins
In reply to: [Youtube WebTv] JSNot sure what the problem might be for you as I didn’t have this problem myself but we had problems running this plug in ourselves and have had to tweak quite a bit but it is now working, would you like a copy of our code to try?
If you want to pop an E-mail to [email protected] and i’ll ping it over to you?
Cant guarantee it will help you, but it definitely works at our end!
Forum: Plugins
In reply to: [Youtube WebTv] Found a bug (plus a fix!)(Marking as resolved because it doesn’t need a response, but I didn’t know how else was best to let you know!)
Forum: Plugins
In reply to: [Youtube WebTv] Embed doesn't workI’ve managed to get this working, but it may have been a bit hacky.
My problem was the videos weren’t loading and my browser’s console was telling me ‘yt_WebTv_channel is undefined”.It looks like onYouTubePlayerAPIReady() was triggering before yt_WebTv_channel had been defined in the php file somehow.
To get it working, I removed:
function onYouTubePlayerAPIReady() { carica_ytWebTv_playlist(yt_WebTv_channel); };
from ytWebTV_player.js
(just to remove the error)
then I changed line 108 in youtube-web-tv.php from:$HTML = '<div id="ytWebTv_player"></div><script>var ytWebTv_channel=' . $id . ';' . load_channel($id) . '</script>';
to
$HTML = '<div id="ytWebTv_player"></div><script>var yt_WebTv_channel=' . $id . ';' . load_channel($id) . 'setTimeout(function() { carica_ytWebTv_playlist(yt_WebTv_channel); }, 500);' . '</script>';
so it’s now calling carica_ytWebTv_playlist after half a second.
I know it’s hacky and wouldn’t work if there was a delay loading the youtube API, but it got it working for now!Your plugin is absolutely amazing, thank you for it!