diff options
author | bobzel <zzzman@gmail.com> | 2020-10-30 20:56:59 +0000 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-30 20:56:59 +0000 |
commit | 38fa32b8448485b4e7ed65a89dfb24502212027c (patch) | |
tree | 4a4891517850f2c96cecb697b9dd25a96417ecc3 /src/client/views/nodes/VideoBox.tsx | |
parent | 1927956186ea5fb56d8f935760ddbf82362230e5 (diff) |
got rid of warning for youtube videos on startup when mousing ot of them before they are ready()
Diffstat (limited to 'src/client/views/nodes/VideoBox.tsx')
-rw-r--r-- | src/client/views/nodes/VideoBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index f1ed4a355..190193351 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -159,7 +159,7 @@ export class VideoBox extends ViewBoxAnnotatableComponent<FieldViewProps, VideoD @action updateTimecode = () => { this.player && (this.layoutDoc._currentTimecode = this.player.currentTime); - this._youtubePlayer && (this.layoutDoc._currentTimecode = this._youtubePlayer.getCurrentTime()); + this._youtubePlayer && (this.layoutDoc._currentTimecode = this._youtubePlayer.getCurrentTime?.()); } componentDidMount() { |