aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/html5.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-03-29 11:18:08 +1100
committerGitHub <noreply@github.com>2020-03-29 11:18:08 +1100
commit2f26c80c8884911db7029b8f9fcf4e8e0c5e57d6 (patch)
treebb14cbfd13f3006fc0e7a73248ff8c07947d5ff8 /src/js/html5.js
parentbe3ffc1f96ea830ad77d3cc4213b700ad91c416c (diff)
parent6a1d6f13a2581228b6ec64887bef4be8f9fed2b0 (diff)
downloadplyr-2f26c80c8884911db7029b8f9fcf4e8e0c5e57d6.tar.lz
plyr-2f26c80c8884911db7029b8f9fcf4e8e0c5e57d6.tar.xz
plyr-2f26c80c8884911db7029b8f9fcf4e8e0c5e57d6.zip
Merge pull request #1739 from ydylla/ignore-internal-play-promises
Ignore internal play promises
Diffstat (limited to 'src/js/html5.js')
-rw-r--r--src/js/html5.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/html5.js b/src/js/html5.js
index 0591a709..6e8c6483 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 { silencePromise } from './utils/promise';
import { setAspectRatio } from './utils/style';
const html5 = {
@@ -101,7 +102,7 @@ const html5 = {
// Resume playing
if (!paused) {
- player.play();
+ silencePromise(player.play());
}
});