video.js icon indicating copy to clipboard operation
video.js copied to clipboard

video won't fullscreen from iframe

Open jemoreno opened this issue 13 years ago • 9 comments

I have a video embedded in the blackboard LMS that will load and play perfectly, except it will not go fullscreen. This video is being pulled from another server and fed via an iframe tag. I have tried everything I can think of to make it fullscreen to no avail. Even after adding allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" to the iframe tag the fullscreen button will not fire the video to fullscreen, however, when I access this iframe from firefox I can right click the video and play fullscreen. I believe this is because the browser is pulling from the video tag and this is a feature of the browser. Could it be that the js is not talking to the parent frame? Any thoughts appreciated. firefoxvideo

jemoreno avatar Aug 22 '13 16:08 jemoreno

That's interesting. Is there somewhere I can see this happening live? After adding allowfullscreen it should work (though you don't need the ='true' part)

heff avatar Oct 08 '13 18:10 heff

You could see it at the codepen preview of the videojs skins http://codepen.io/heff/pen/EarCt

But in my case, after adding the allowfullscreen to the iframe, it worked.

Ninerian avatar Nov 08 '13 09:11 Ninerian

Yeah, the codepen preview doesn't have allowfullscreen on their iframes, and I'm not sure how to get them to add that.

heff avatar Nov 08 '13 16:11 heff

I sent codepen a feedback about it.

gkatsev avatar Nov 08 '13 19:11 gkatsev

And codepen just enabled this!

gkatsev avatar Nov 08 '13 21:11 gkatsev

That's awesome.

heff avatar Nov 08 '13 22:11 heff

@jemoreno were you ever able to figure this out? I'm stuck in the same situation. It only happens with the video.js plugin loaded, using the regular HTML5 method works.

pedrumgolriz avatar Mar 12 '14 13:03 pedrumgolriz

Still haven't found a solution

jemoreno avatar Jun 16 '14 17:06 jemoreno

The codepen example works for me now. http://codepen.io/heff/pen/EarCt

If there's a specific example where the allowfullscreen attributes aren't working for you, a live example might help figure it out. Even if you put allowfullscreen on one iframe, if that iframe is in another iframe that doesn't have it, it still won't work.

heff avatar Jun 16 '14 18:06 heff