mirror of
https://github.com/videojs/video.js.git
synced 2025-01-13 10:32:26 +02:00
2988f6ae53
If a player is fluid and does not have a width set, and preload is set to none, the height of the player is zero. This includes where preload is forced to none by mobile Chrome as in #3606. * If the player has the .vjs-fluid class when initialised, fluid is set to true, so adding the class behaves the same as {fluid: true} in the setup options. * The fluid(bool) setter calls player.updateStyleEl_(). Otherwise it won't be triggered in createEl() if an aspect ratio is not also set. * Corrects the test for a set videoWidth() in updateStyleEl_() - videoWidth() returns 0 if the width is unknown. This allows the default 16:9 to kick in rather than using 0:0. |
||
---|---|---|
.. | ||
api | ||
require | ||
unit | ||
globals-shim.js | ||
index.html | ||
karma.conf.js |