Fullscreen not working when playing within iframe #148

Closed
tonic20 opened this Issue Feb 27, 2012 · 2 comments

Projects

None yet

2 participants

@tonic20

I found closed month ago issue #119.

But I have absolutely the same issue: Having a video within an iframe. Chrome does nothing when clicking on fullscreen, Firefox goes "full iframe". Both are the latest public versions.

Is is possible to play fullscreen video in iframe without that solution (open a new another window in full screen size)?
What do your think?

Best,
Anton.

@rainboxx

Yes, of course. You have to add the attribute allowfullscreen to the <iframe> tag (with all browser prefixes). Eg.:

<iframe src="..." width="..." height="..." frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>

If you're unable to do this (because the video is already embedded somewhere without your access) you have to go with the workaround (new window in full size).

@tonic20

Thank you!

@tonic20 tonic20 closed this Feb 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment