Report any technical problems you discover and discuss solutions.

expand youtube video to full screen

Plus d'informations
il y a 10 ans 9 mois #3211 par julten
Réponse de julten sur le sujet expand youtube video to full screen
If you inspect the code, the youtube embed doesn't contain the allowFullScreen parameter. I think this is a xerte bug when we process the embed code to create our iframe?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 9 mois #3212 par julten
Réponse de julten sur le sujet expand youtube video to full screen
If you can access you install's files, try commenting the conditin at line 130 of youtube.html in modules/xerte/parent_templatesNottingham/models_html5 to force the addition of the allowFullScreen param.

It should then look like:
//if (iframe.allowfullscreen == true) {
html += " allowfullscreen";
//}

Alternatively, to respect situations when it is false in the yotube embed code do this:
if (iframe.allowfullscreen != false) {
html += " allowfullscreen";
}

I thinkit's because it might be undefined or ull in some circumstances, but this doesn't exaplain why Ron's works and ours dont.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 9 mois - il y a 10 ans 9 mois #3213 par ronm
Réponse de ronm sur le sujet expand youtube video to full screen
For me both the YouTube page and the plain text page work in IE10 but in Chrome and Firefox the YouTube page doesn't work but the plain text page doesn't. So it seems like our misc > YouTube page type and embedded player doesn't work reliably now (must be a change at YouTube end or browser changes) but embedding a clip in any other page works fine.

Interestingly in Firefox I get a message to remember the choice:
drive.google.com/file/d/0B4t6SSPcAW7MR3dCbnVhT3kwU0k/view

Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/
Dernière édition: il y a 10 ans 9 mois par ronm.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 9 mois #3214 par 0kee
Réponse de 0kee sur le sujet expand youtube video to full screen
Julian: I add that code as you suggest and let you know. Thanks
Yes Ron. I'm sure it worked in the past so in must be down to some change in how browsers handle this page

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 9 mois #3216 par ronm
Réponse de ronm sur le sujet expand youtube video to full screen
I tried both changes of that code but !=false doesn't seem to work either. However commenting out the condition and clearing browser cache does work e.g.

//if (iframe.allowfullscreen != false) {
html += " allowfullscreen";
//}

Try my example/test again the first page should now work in Chrome and FF as well as IE?

Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 9 mois #3218 par 0kee
Réponse de 0kee sur le sujet expand youtube video to full screen
Hi Ron,
Yes, you're original example is working on full screen for me now. just to clarify.You added
//if (iframe.allowfullscreen != false) {
html += " allowfullscreen";
//}
at line 130 of the youtube embed page? Julian's second example above?

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ronmjultenJohnSmith
Temps de génération de la page : 0.145 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo