Skip to content

Conversation

@hilsonshrestha
Copy link
Contributor

Does this PR close any open issues?

x

Give a longer description of what this PR addresses and why it's needed

  1. Refactor how replay works
  2. Add Video/audio/provenance speed syncing

Instead of passing time related props and handling time separately on each component, this PR introduces a hook to let components subscribe to replay events (play, pause, timeupdate).
The hook handles media elements (video and audio) and provenance timeline.
If media elements aren't present, the hook uses starts its own timer.

The timeupdate event gives the current time of the timeline. The timing information is prioritized as: video > audio > provenance timeline, meaning that video's time is prioritized over others if available.

This PR also fixes the issue when seeking is done while media is playing.

Provide pictures/videos of the behavior before and after these changes (optional)

Are there any additional TODOs before this PR is ready to go?

x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant