Swallow exceptions generated during JSMPEG destroy.
This commit is contained in:
@@ -321,7 +321,11 @@ export class FrigateCardLiveJSMPEG extends LitElement {
|
|||||||
this._refreshPlayerTimerID = undefined;
|
this._refreshPlayerTimerID = undefined;
|
||||||
}
|
}
|
||||||
if (this._jsmpegVideoPlayer) {
|
if (this._jsmpegVideoPlayer) {
|
||||||
|
try {
|
||||||
this._jsmpegVideoPlayer.destroy();
|
this._jsmpegVideoPlayer.destroy();
|
||||||
|
} catch (err) {
|
||||||
|
// Pass.
|
||||||
|
}
|
||||||
this._jsmpegVideoPlayer = undefined;
|
this._jsmpegVideoPlayer = undefined;
|
||||||
}
|
}
|
||||||
if (this._jsmpegCanvasElement) {
|
if (this._jsmpegCanvasElement) {
|
||||||
|
|||||||
Reference in New Issue
Block a user