diff --git a/src/dash-adapter.js b/src/dash-adapter.js index a57570d6..ad9ed0fe 100644 --- a/src/dash-adapter.js +++ b/src/dash-adapter.js @@ -1214,6 +1214,9 @@ export default class DashAdapter extends BaseMediaSourceAdapter { } this._trigger(EventType.ERROR, new Error(error.severity, error.category, error.code, error.data)); DashAdapter._logger.error(error); + if (error.severity === Error.Severity.CRITICAL) { + this.destroy(); + } } }