Fix autoplay

This commit is contained in:
Omar Roth 2018-11-27 16:52:27 -06:00
parent 6540742c76
commit 7ab9d741bf

View File

@ -338,12 +338,9 @@ if (bpb) {
player.ready(function() {
var promise = player.play();
if (promise === undefined) {
bpb.show();
} else {
promise.then(function() {
bpb.show();
}, function() {
if (promise !== undefined) {
promise.then(_ => {
}).catch(error => {
bpb.show();
});
}