diff options
author | Sam Potts <sam@potts.es> | 2019-04-12 18:39:14 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-12 18:39:14 +1000 |
commit | 5fefabe3bddf705f3c3956152882b5ceab44c8dc (patch) | |
tree | 43c1b11c4361e02189ae643f525efb155d8a99d0 /src/js/html5.js | |
parent | 0f3098040d8650a762067d1f1aa5ab520cb9b90c (diff) | |
parent | e281078441ad50c4b0b997b615b48fc0c254f173 (diff) | |
download | plyr-5fefabe3bddf705f3c3956152882b5ceab44c8dc.tar.lz plyr-5fefabe3bddf705f3c3956152882b5ceab44c8dc.tar.xz plyr-5fefabe3bddf705f3c3956152882b5ceab44c8dc.zip |
Merge pull request #1410 from sampotts/develop
v3.5.3
Diffstat (limited to 'src/js/html5.js')
-rw-r--r-- | src/js/html5.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js/html5.js b/src/js/html5.js index 3266a58e..34f0c391 100644 --- a/src/js/html5.js +++ b/src/js/html5.js @@ -6,6 +6,7 @@ import support from './support'; import { removeElement } from './utils/elements'; import { triggerEvent } from './utils/events'; import is from './utils/is'; +import { setAspectRatio } from './utils/style'; const html5 = { getSources() { @@ -43,6 +44,9 @@ const html5 = { const player = this; + // Set aspect ratio if set + setAspectRatio.call(player); + // Quality Object.defineProperty(player.media, 'quality', { get() { |