Hello together,
i have a problem with a youtubevideo like this:
I will embedded this youtube video in xibo with this link:
<iframe width="640" height="360" src="https://www.youtube.com/embed/jAH7nw5UrAwautoplay=1" frameborder="0" allowfullscreen></iframe>
i put the autoplay=1 in the code but the video does not start from alone
or musst i put before autoplay a â?â
Thank you for Tipps
Best regards
Kussel
Peter
January 25, 2017, 10:59am
2
Missing â?â
Yup
ie it should be:
<iframe width="640" height="360" src="https://www.youtube.com/embed/jAH7nw5UrAw?autoplay=1" frameborder="0" allowfullscreen></iframe>
On android player there is more to it (Autoplay Embedded Youtube Videos ) but on windows clients it should work with ?autoplay=1
Hi Peter, thanks you for your answer. I will try it at afternoon today. I will copy your link in xibo in the embedded partâŚ(HTML zum Einbetten) right?
and the other parts âCustom Style Sheetsâ and "HEAD " i do nothingâŚok?
And its an windows client.
Peter
January 25, 2017, 12:36pm
4
Thatâs correct yes, it should autoplay in layout designer as well.
Peter ok. thnaks. And it´s so that when the youtube video is comming in xibo it would play automatically and the play button is not thereâŚist this also right?
Peter
January 25, 2017, 1:55pm
6
Thatâs also correct, it play automatically once layout is loaded.
Hello Peter,
thanks for your answersâŚit´s going on so. But the full size of the Screen is not. Only the video in youtube.
is this right?
Peter
January 26, 2017, 9:02am
8
The width and height you specify in the iframe along with region size to which you add this embedded item will have impact on how big it is.
Hi,
I have problem with autoplay embedded video in android. It is not supporting to android device.but we can manually play video.
I tried this link
Please help me.
Thanks,
Mahesh
Peter
July 3, 2017, 9:32am
10
I assume youâve tried the script posted in topic few months ago?
If that does not work for you, then Iâm afraid we do not have a good alternative, weâre aware that the workaround does not work on all devices, as stated in the topic with it.
Hi Peter,
That script is working fine. but i want to pass videoId value.In script having only one video.
before i used this
frame.Attributes[âsrcâ] = Application[âlinkâ].ToString();
frame.Visible = true;
iframe id=âframeâ name=âmyIframeâ runat=âserverâ style=âwidth:100%; height:700px; margin-top:-50pxâ>
how can i pass the frame src value to script?
function onYouTubeIframeAPIReady() {
player = new YT.Player(âplayerâ, {
height: â720â,
width: â1280â,
----------> videoId: âonldzSzdqlMâ,
events: {
âonReadyâ: onPlayerReady
}
});
}
Thanks,
Mahesh.
Hello, The auto play works fine with my, but i am trying to use 2 videos from youtube in the same screen, but they donât play at the same time. one plays then stops and the other start playing and stop then the other plays and âŚ
Peter
January 23, 2018, 2:05pm
14
Is that on Android device?
It could be that your device does not support 2 (or more) concurrently playing videos, you could check that with file based videos in two regions.
1 Like
yes, its android i well see that, thanks
How do you implement a youtube video to play at specific time, i tried on the code and works but no when we tryout on xiboâŚ
Peter
March 16, 2018, 12:25pm
17
You can add âstartâ to the playerVars in the script.
To recap, the example script with various playVars set and start at 15s of the video
html to embed
<!-- BROWSER=edge -->
<div id="player"></div>
script
<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 onYouTubeIframeAPIReady() {
player = new YT.Player('player', {
height: '1080',
width: '1920',
videoId: 'a329D581TAw',
playerVars: {
'playlist': 'a329D581TAw',
'start': 15,
'loop': 1,
'controls' : 0,
'rel' : 0,
'fs' : 0,
'showinfo' : 0,
'cc_load_policy' : 0,
'iv_load_policy' : 3,
'modestbranding' : 1
},
events: {
'onReady': onPlayerReady
}
});
}
function onPlayerReady(event) {
event.target.playVideo();
}
</script>
Hello,
i have a fresh CMS 2.3.3 installation.
The xibo-player is on a fresh Win10 system
This is my Code:
<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 onYouTubeIframeAPIReady() {
player = new YT.Player('player', {
height: '951',
width: '1622',
videoId: 'FWNtu3w1yWM',
playerVars: {
'playlist': 'FWNtu3w1yWM',
'start': 1,
'loop': 0,
'controls' : 0,
'rel' : 0,
'fs' : 0,
'showinfo' : 0,
'cc_load_policy' : 0,
'iv_load_policy' : 3,
'modestbranding' : 1
},
events: {
'onReady': onPlayerReady
}
});
}
function onPlayerReady(event) {
event.target.playVideo();
}
</script>
But the youtube video did not start
alex
May 8, 2020, 10:25pm
20
You need to add to the HTML section of the widget
<!-- BROWSER=edge -->
<div id="player"></div>
Thank you for the tip Alex.
Now it works
Can you edit the FAQ section here.
https://xibo.org.uk/docs/setup/autoplay-embedded-youtube-videos
This is what i have found with google.
alex
May 11, 2020, 7:05am
22
That guide is for Android devices which donât need that hint, but yes I will update it.