silence all internal play promises

This commit is contained in:
ydylla
2020-03-23 22:50:19 +01:00
parent 3c127afeb9
commit 71928443f3
6 changed files with 42 additions and 10 deletions
+2 -1
View File
@@ -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());
}
});