diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-11-09 17:50:42 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-11-09 17:50:42 +0100 |
| commit | 634abd7cec252e61dd171ffbbaa83dec87062bd1 (patch) | |
| tree | 2141f45cdd3ea3427636ffeaa7baabf15fbb3583 /animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.video.js | |
| parent | 1b4da06342d36e5db84f2c6a6c0904c1a20be028 (diff) | |
subtitles in transcript. clicking them seeks video
Diffstat (limited to 'animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.video.js')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.video.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.video.js b/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.video.js index 252a278..da1e0ed 100644 --- a/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.video.js +++ b/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.video.js @@ -34,11 +34,11 @@ class FullscreenVideo extends Component { this.handleEnd = this.handleEnd.bind(this) } componentDidMount() { - const { video_start_ts } = this.props.element.settings - const seconds = timestampToSeconds(video_start_ts) || 0.0 + const video_start_ts = timestampToSeconds(this.props.element.settings.video_start_ts) || 0.0 + // TODO: here you can add the current play time modulo ... this.setState({ - video_start_ts: seconds, - seek: seconds, + seek: video_start_ts, + video_start_ts, }) } componentDidUpdate(prevProps) { |
