Skip to content

Commit

Permalink
fix(UI): Fix unhandled error when playing VR (shaka-project#6679)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed May 28, 2024
1 parent e51cd3b commit 35cd411
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/vr_webgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ shaka.ui.VRWebgl = class {
}).tickNow().tickEvery(1 / frameRate);
});
this.eventManager_.listen(this.video_, 'pause', () => {
this.activeTimer_.stop();
if (this.activeTimer_) {
this.activeTimer_.stop();
}
this.activeTimer_ = null;
this.renderGL_();
});
Expand Down

0 comments on commit 35cd411

Please sign in to comment.