Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31001
| From | Andrew Poulos <ap_prog@hotmail.com> |
|---|---|
| Subject | Allow full screen |
| Newsgroups | comp.lang.javascript |
| Date | 2016-08-01 15:26 +1000 |
| Message-ID | <w9Cdnc4bs-bBQAPKnZ2dnUU7-WHNnZ2d@westnet.com.au> (permalink) |
I'm creating an elearning course which displays a YouTube video. When I
preview the course in my browser the video's full screen button is enable.
If I load the course into a learning management system (LMS) the full
screen button is disabled. Dr Google tells me that's because the IFRAME
which contains the video or a parent frame does not have the attribute
allowfullscreen.
When I look at the source the LMS creates when it displays the course I
can see that the video is within an IFRAME, which is within a HTML
document, within a FRAME, within a FRAMESET, within another FRAME,
within a another FRAMESET.
I cannot directly edit the source that the LMS creates. I have added the
allowfullscreen attribute to the IFRAME that contains the video and I tried
var frm = window.frameElement;
while (frm) {
frm.setAttribute("allowfullscreen","");
frm = frm.frameElement;
}
but it appears that a FRAMESET returns null.
My question is how do I move "up the tree" though any nested FRAMESET to
add the attribute to all parent FRAMES and, if I do, will the attribute
actually be "noticed" by the video (seeing its been added after the page
has been rendered)?
Andrew Poulos
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Allow full screen Andrew Poulos <ap_prog@hotmail.com> - 2016-08-01 15:26 +1000
Re: Allow full screen Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-01 11:23 +0200
Re: Allow full screen Andrew Poulos <ap_prog@hotmail.com> - 2016-08-02 10:58 +1000
Re: Allow full screen Andrew Poulos <ap_prog@hotmail.com> - 2016-08-02 13:28 +1000
csiph-web