dispatch stop command if error is critical

This commit is contained in:
NikolaBorislavovHristov 2018-12-12 12:45:02 +02:00
parent 3fa17159bb
commit 3c9d17819a

View file

@ -93,6 +93,10 @@ var HTMLVideo = function(container) {
message: message,
critical: critical
});
if (error.critical) {
self.dispatch('command', 'stop');
}
};
function onPausedChanged() {
events.emit('propChanged', 'paused', getPaused());