CMS Version: 3.0.3 Self hosted Docker Install
Player Version: 3 R307.0 XIBO for windows
Hello,
I’m trying to create a layout which features a YouTube live stream, but I’m running into issues. While the preview of the module displays the live stream as intended, players in production either display the background of the layout with no YouTube/stream/video (or audio), or the player shows a YouTube error.
I’ve attempted multiple solutions.
I’ve followed the information found on the official Autoplay Embedded Youtube Videos. This process does not show any player, only the background on the layout.
I’ve created an HTML page on my website which hosts a YouTube embed of the live stream with all the necessary parameters (auto start, full screen, etc.). Then, I used a webpage module to display the webpage. This method works in preview, however in production, I get an error from YouTube. Note: the page works as expected when viewed in a browser on the windows player machine. The YouTube error is only present when XIBO player for windows attempts to access the page.
I’ve tried using an HTML package but the documentation wasn’t clear enough for me to deduce if this is an appropriate solution and how to implement it correctly.
Same with HLS video stream. I see an rtmp URL on the YouTube Stream admin, but that URL doesn’t seem to be what XIBO is looking for.
Is it possible to show a YouTube live stream on a windows player? Any guidance would be greatly appreciated
<script>
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var player;
function onYouTubePlayerAPIReady() {
player = new YT.Player('player', {
height: '1080',
width: '1920',
events: {
'onReady': onPlayerReady,
}
});
}
function onPlayerReady(event) {
event.target.loadPlaylist({list:'abcdefg', listType: 'playlist'});
event.target.setLoop(true);
}
</script>
You will have to change my script to something that matches yours, I have added a playlist since our customer keeps uploading their Youtube channel with new video which in our case is more Easy to run the playlist.
PS i have tried this with a live stream for testing and it worked.
I’m having the same exact issue as OP. I tried your suggestion to no avail; while I can get the live video to play in the preview window, it doesn’t work on any of my signs.
The YouTube player will work and videos will play, but not live steams.
Unfortunately the HLS widget does not function on any of my machines, either.