From 64200804a1e63981593c89abecedd4ae769da3b6 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Wed, 15 Jun 2022 22:15:03 -0400 Subject: got basic demo working --- src/client/views/nodes/VideoBox.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index 794d363f1..b18d3ad1a 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -345,11 +345,11 @@ export class VideoBox extends ViewBoxAnnotatableComponent { // BUGFIX: if seeking when paused, no longer finished // ok this is constantly fired all the time - // if (e && !this._playing && this.player && this.player.paused) { - // console.log('updateTimecode: seeking when paused', e); - // this.player.currentTime = e.target.currentTime; - // this._finished = false; - // } + if (e && !this._playing && this.player && this.player.paused) { + // console.log('updateTimecode: seeking when paused', e); + this.player.currentTime = e.target.currentTime; + this._finished = false; + } this.player && (this.layoutDoc._currentTimecode = this.player.currentTime); try { this._youtubePlayer && (this.layoutDoc._currentTimecode = this._youtubePlayer.getCurrentTime?.()); -- cgit v1.2.3-70-g09d2