diff --git a/ui/vr_webgl.js b/ui/vr_webgl.js index 7021f247a1..0babfdfe34 100644 --- a/ui/vr_webgl.js +++ b/ui/vr_webgl.js @@ -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_(); });