Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend useMediaRemote hook methods and update the duration, clipStartTime and clipEndTime of the player. #1330

Closed
vorillaz opened this issue Jul 1, 2024 · 0 comments
Labels
feature New feature or request

Comments

@vorillaz
Copy link

vorillaz commented Jul 1, 2024

Related Problem:

Hi there, I am trying to build a video trimming component on top of the @vidstack/react package. I would like to dynamically change some state values from the <Player /> component which are exposed through props.

Describe:

Specifically, I think it would be great if the useMediaRemote hook could update the duration, clipStartTime and clipEndTime of the player, essentially I want to play a fragment of a video, update the progress bar and so on.
I could reuse the built-in components for autoplaying and ending the video in the player.

Alternatives:

If I could somehow manipulate the state without prop passing to the <Player />, that would be considered an alternative as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants