July 19, 2016 at 5:15 am #322029
I’m using Lectora 16.2 and I have a HTML object which contains IFRAME HTML to embed a YouTube video. The HTML includes the appropriate attributes to allow the “full screen” button to appear. This works as expected when I HTML preview and when I HTML publish but when the title is SCORM published and loaded onto an LMS the “full screen” button is disabled.
The button is disabled in IE, Chrome and Firefox.
When I examine the published HTML everything looks correct.
What do I need to do to get a YouTube video’s “full screen” button enabled when the title is SCORM published and running in an LMS?July 19, 2016 at 6:30 am #322037
YouTube player requires every iframe that contains the player to include the “allowfullscreen” parameter. That includes the iframe that your LMS launches the course in. If it does not include that parameter, YouTube will not display the fullscreen button.This post has received 1 vote up.July 19, 2016 at 6:08 pm #322193
Thanks for that but could you please provide more detail as I can’t get the full screen button to enable.
A search of the published output only turned up the IFRAME that contained the video (which did have the allowfullscreen attribute).
I added allowfullscreen as an attribute to all the frames in a001index.html and it made no difference.July 20, 2016 at 2:16 am #322215
I am pretty sure your LMS wraps Lectora content into an iframe of its own. So regardless of how many places you add allowfullscreen to in Lectora, the fullscreen button won’t work until your LMS changes the way it wraps SCORM content. At least this is usually what is going on in cases like this. To confirm, launch the course from the LMS and inspect for any iframes that your LMS creates.This post has received 1 vote up.July 20, 2016 at 5:20 am #322235
An error/warning that the LMS gives that is probably relevant is:
Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://www.youtube.com’) does not match the recipient window’s origin (‘http://127.0.0.1:8080’).
The funny thing if I create a SCO with a different tool then the full screen button is enabled.
At any rate as I have no access to whatever HTML the LMS generates to display content I guess that mean the button cannot ever be activeJuly 20, 2016 at 11:05 am #322272
Interesting. Is there any way to take a peek (as a student) into the course hosted your LMS?July 20, 2016 at 11:08 am #322273
Jennifer ValleyModerator101 pts@jvalley4735
FollowingJuly 20, 2016 at 5:28 pm #322304
Nick WilliamsMember8 pts@nwilliams3743
I had the same issue, and Sergey is correct.
The LMS loads my scorm file as an iFrame, and the scorm file contains it’s own iFrames (videos)
My video (Vimeo) would not display the full screen button unless I add the allowfullscreen line in myself.
Attachments:July 20, 2016 at 5:53 pm #322307
Ok, thanks for the info but could you tell where you added “allowfullscreen”?
Are they screen captures of some screen in your LMS? I have no access to whatever HTML the LMS generates to display the title and I doubt the client would be happy for anyone to edit files in the LMS.
It looks like I’m snookered 🙁August 24, 2016 at 1:13 pm #325145
I am experiencing the same problem when embedding videos from Vimeo. The code to allow full screen is in my External HTML object, but when it is published to ReviewLink, the code has changed to not allow full screen. When I inspect the element in ReviewLink, I have the following code:
<iframe src=”https://…” webkitallowfullscreen=”” mozallowfullscreen”” allowfullscreen=”” frameborder=”1″ height=”366″ width=”650″>
Then, a few lines later as subscript of the above:
<div id=”player” class=”player player-931cc49d-1620-409d-82d5-c29c6a43add1 js-player-fullscreen with-fullscreen with-sticky-custom-logo no-fullscreen-support”><div class=”video-wrapper”>
So, I have no clue if this is a programmer (me) issue, a Lectora issue, or a ReviewLink issue.
Thanks!August 26, 2016 at 12:05 am #325271
I’m 99.9% sure it’s a Lectora issue.
When I SCORM publish (with the “LMS opens the course in a new window” option checked) from v.16 it creates an index html file that includes a FRAMESET with two FRAMES.
First, FRAMES are not valid HTML5 and, secondly, I needed to manually edit the index file to allow full screen video by replacing the FRAMESET with IFRAMES. It’s a PITA because there’s no template file to edit so I need to edit the page every time I publish a title.August 26, 2016 at 7:31 am #325316
Jennifer ValleyModerator101 pts@jvalley4735
I was able to find this issue because it had been reported previously. The development team included a fix in the latest version of Lectora 16.2.2 (came out yesterday). Can someone on this thread let me know if the issue is resolved once Lectora is on the latest version?August 26, 2016 at 9:06 pm #325358
I’ve just installed 16.2.2 and I can confirm that full screen YouTube and Vimeo video does NOT work (I have SCORM 1.2 published the title).
I 99.999% believe the issue is a Lectora one.
The index.html file that Lectora 16.2.2 generates is a HTML5 file (it has the doc type <!DOCTYPE html>).
In HTML5, the FRAMESET and FRAME elements are obsolete are should not be used. See:
The Lectora generated index.html file includes FRAMESET and FRAME???
In my research, full screen video cannot be active until: FRAMESET and FRAME are replaced with IFRAMES with the attribute “allowfullscreen” (plus some appropriate CSS).August 29, 2016 at 12:24 am #325397
The guys at SCORM.COM helped me out with this workaround:
LMS publish the title and locate the …index.html file
Open it with a text editor and at the bottom you should see
<frameset rows="0,*" border="0" frameborder="0" framespacing="0" onResize="ReFlow()">
<frame title="Title 1" name="titlemgrframe" src="a001titlemgr.html" resize="no" scrolling='no' marginwidth='0' marginheight='0' />
<frame title="Title 1" name="contentframe" src="a001content.html" resize="no" />
<p>Your browser does not support frames</p>
The “title” and “src” values above will vary depending on what was set within your Lectora title.
Change it to this:
<iframe name="titlemgrframe" src="a001titlemgr.html" style="position:absolute; border:none;">
<iframe name="contentframe" src="a001content.html" allowfullscreen="true" style="display:block; position:absolute; border:none; width:100vw; height:100vh;">
That’s it! Now save and close the file.
In an LMS published title in which the LMS launches the title in a new window the full screen button will be active on YouTube/Vimeo videos.June 8, 2017 at 4:14 am #359285
hi, can you help me, i did it in the same way but it dont works.
greetings and thx, Marcel
You must be logged in to reply to this topic.