diff options
| author | bob <bcz@cs.brown.edu> | 2019-07-22 17:08:25 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-07-22 17:08:25 -0400 |
| commit | c351d0d4f6f4e8492cade7d3056e516178f4a138 (patch) | |
| tree | 9f3d3ee3d4210220cc0aa4a97769af10d56ed854 /src/client/views/nodes | |
| parent | e87727dd111a5370a064e675b9b7c966cb84dfb0 (diff) | |
fixed seeking for html video player element
Diffstat (limited to 'src/client/views/nodes')
| -rw-r--r-- | src/client/views/nodes/VideoBox.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index 83ad2a3b3..5624d41a9 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -65,6 +65,7 @@ export class VideoBox extends DocComponent<FieldViewProps, VideoDocument>(VideoD @action public Seek(time: number) { this._youtubePlayer && this._youtubePlayer.seekTo(Math.round(time), true); + this.player && (this.player.currentTime = time); } @action public Pause = (update: boolean = true) => { |
