aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/html5.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-04-12 12:19:48 +1000
committerSam Potts <sam@potts.es>2019-04-12 12:19:48 +1000
commitb247093495c3402dbe7c14e3faeff8475f4e277c (patch)
tree8db601f188caf539277f9760ca93d02e9deb442b /src/js/html5.js
parent9ca7b861a925ec0412006f7cc926bfa1859a0daa (diff)
downloadplyr-b247093495c3402dbe7c14e3faeff8475f4e277c.tar.lz
plyr-b247093495c3402dbe7c14e3faeff8475f4e277c.tar.xz
plyr-b247093495c3402dbe7c14e3faeff8475f4e277c.zip
Aspect ratio improvements (fixes #1042, fixes #1366)
Diffstat (limited to 'src/js/html5.js')
-rw-r--r--src/js/html5.js4
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() {