aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/ui.js
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2017-11-06 19:38:31 +1100
committerSam Potts <me@sampotts.me>2017-11-06 19:38:31 +1100
commit006871074032e5b24408fb654eb2856585c491e1 (patch)
tree7fdfd71a6ff6bc1abef9d343e87e9f9f08a34346 /src/js/ui.js
parent5fe477340b7c446dcbf711daa06d81c725c45b34 (diff)
downloadplyr-006871074032e5b24408fb654eb2856585c491e1.tar.lz
plyr-006871074032e5b24408fb654eb2856585c491e1.tar.xz
plyr-006871074032e5b24408fb654eb2856585c491e1.zip
Started on documentation and aspect ratio option
Diffstat (limited to 'src/js/ui.js')
-rw-r--r--src/js/ui.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/js/ui.js b/src/js/ui.js
index c0448054..aa579d8d 100644
--- a/src/js/ui.js
+++ b/src/js/ui.js
@@ -84,15 +84,17 @@ const ui = {
// Update the UI
ui.checkPlaying.call(this);
+ // Ready for API calls
this.ready = true;
// Ready event at end of execution stack
utils.dispatchEvent.call(this, this.media, 'ready');
// Autoplay
- if (this.config.autoplay) {
+ // TODO: check we still need this?
+ /* if (this.isEmbed && this.config.autoplay) {
this.play();
- }
+ } */
},
// Show the duration on metadataloaded