Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.

TOPIC:

expand youtube video to full screen 8 years 6 months ago #3211

  • julten
  • julten's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 137
  • Thank you received: 18
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?

Please Log in or Create an account to join the conversation.

expand youtube video to full screen 8 years 6 months ago #3212

  • julten
  • julten's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 137
  • Thank you received: 18
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.

Please Log in or Create an account to join the conversation.

expand youtube video to full screen 8 years 6 months ago #3213

  • ronm
  • ronm's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 844
  • Thank you received: 247
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/

Please Log in or Create an account to join the conversation.

Last edit: by ronm.

expand youtube video to full screen 8 years 6 months ago #3214

  • 0kee
  • 0kee's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 73
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

expand youtube video to full screen 8 years 6 months ago #3216

  • ronm
  • ronm's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 844
  • Thank you received: 247
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/

Please Log in or Create an account to join the conversation.

expand youtube video to full screen 8 years 6 months ago #3218

  • 0kee
  • 0kee's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 73
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

Moderators: ronmjultenJohnSmith
Time to create page: 0.054 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search