Video.js: Full Screen Button Not Always Working

Created on 18 Apr 2016  路  5Comments  路  Source: videojs/video.js

Description

When clicking the full screen button on the player, the video sometimes does not expand.

Steps to reproduce

Place video in iframe, embed iframe, click button for fullscreen

Results

Expected

The player to expand full-screen

Actual

In cases where the video player is the only player on the page and being used as the 'poster' for an article, full screen behaves properly. In cases where it is in the body of an article or there are other iframe players on the page, the player does not expand. As each player is running on its own URL in an iframe, there shouldn't be an issue of JS confusion.

Error output

N/A

Additional Information

versions

videojs

Most recent (5.8)

browsers

Error tested consistently in Chrome & Safari

OSes

Most recent OS X (10.11.4)

plugins

https://github.com/googleads/videojs-ima

Most helpful comment

Thanks very much @mister-ben 馃憤 stupid mistake

All 5 comments

Do you have an allowfullscreen attribute on your iframe?

Thanks very much @mister-ben 馃憤 stupid mistake

Also: if you happen to have an iframe nesting another iframe containing a page with videojs content (yeah. THAT happened)... you need to add the allowfullscreen attribute to _both_ iframes.

Haha, yeah, you'd need allowfullscreen all the way down.

Good times.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

frog23 picture frog23  路  25Comments

gkatsev picture gkatsev  路  25Comments

thijstriemstra picture thijstriemstra  路  26Comments

CoWinkKeyDinkInc picture CoWinkKeyDinkInc  路  26Comments

lostboy7 picture lostboy7  路  24Comments