Report any technical problems you discover and discuss solutions.

expand youtube video to full screen

Meer
10 jaren 9 maanden geleden #3211 door julten
Beantwoord door julten in topic 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?

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
10 jaren 9 maanden geleden #3212 door julten
Beantwoord door julten in topic 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.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
10 jaren 9 maanden geleden - 10 jaren 9 maanden geleden #3213 door ronm
Beantwoord door ronm in topic 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/
Laatst bewerkt 10 jaren 9 maanden geleden door ronm.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • 0kee
  • Onderwerp Auteur
  • Offline
  • Senior lid
  • Senior lid
Meer
10 jaren 9 maanden geleden #3214 door 0kee
Beantwoord door 0kee in topic 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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
10 jaren 9 maanden geleden #3216 door ronm
Beantwoord door ronm in topic 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/

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • 0kee
  • Onderwerp Auteur
  • Offline
  • Senior lid
  • Senior lid
Meer
10 jaren 9 maanden geleden #3218 door 0kee
Beantwoord door 0kee in topic 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?

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: ronmjultenJohnSmith
Tijd voor maken pagina: 0.142 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo