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

askaliuk picture askaliuk  路  3Comments

gfviegas picture gfviegas  路  3Comments

zhulduz picture zhulduz  路  3Comments

dingyaguang117 picture dingyaguang117  路  4Comments

aagiulian picture aagiulian  路  3Comments