CR fixes
This commit is contained in:
@@ -2260,6 +2260,10 @@ class PlaybackManager {
|
||||
}, function () {
|
||||
// TODO: show error message
|
||||
self.stop(player);
|
||||
loading.hide();
|
||||
}).catch(() => {
|
||||
player.destroy();
|
||||
loading.hide();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -143,10 +143,7 @@ function setCurrentSrc(instance, elem, options) {
|
||||
events.trigger(instance, 'pause');
|
||||
}
|
||||
},
|
||||
'onError': () => {
|
||||
instance.destroy();
|
||||
loading.hide();
|
||||
}
|
||||
'onError': () => reject(),
|
||||
},
|
||||
playerVars: {
|
||||
controls: 0,
|
||||
|
||||
Reference in New Issue
Block a user