From 3c9d17819a07ac35fde4ea014af2cbdbfd75ddb6 Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Wed, 12 Dec 2018 12:45:02 +0200 Subject: [PATCH] dispatch stop command if error is critical --- src/routes/Player/Video/stremio-video/HTMLVideo.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/routes/Player/Video/stremio-video/HTMLVideo.js b/src/routes/Player/Video/stremio-video/HTMLVideo.js index a7a3eb178..2d5b211a6 100644 --- a/src/routes/Player/Video/stremio-video/HTMLVideo.js +++ b/src/routes/Player/Video/stremio-video/HTMLVideo.js @@ -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());