-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(FEC-7476): error handling #36
Conversation
…nto error_handling_refactor asd the commit.
@@ -217,7 +218,7 @@ export default class DashAdapter extends BaseMediaSourceAdapter { | |||
*/ | |||
_removeBindings(): void { | |||
this._shaka.removeEventListener('adaptation', this._onAdaptation); | |||
this._shaka.removeEventListener('error', this._onError); | |||
this._shaka.removeEventListener('error', this._onError.bind(this)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use arrow function () => this._onError
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@OrenMe - so i will change all of the bindings...
ignoring video tag errors
…nto error_handling_refactor
src/dash-adapter.js
Outdated
@@ -3,6 +3,7 @@ import shaka from 'shaka-player'; | |||
import {BaseMediaSourceAdapter} from 'playkit-js' | |||
import {Track, VideoTrack, AudioTrack, TextTrack} from 'playkit-js' | |||
import {Utils} from 'playkit-js' | |||
import {Error, Severity} from 'playkit-js' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need separate class for Severity?
As I see it, it should be a static prop on the Error class.
Error.Severity.CRITICAL
src/dash-adapter.js
Outdated
reject(error); | ||
this._onError(error); | ||
reject(new Error( | ||
error.everity.CRITICAL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
Description of the Changes
Firing an error from the dash adapter, ignoring video element errors.
CheckLists