player icon indicating copy to clipboard operation
player copied to clipboard

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

Open vorillaz opened this issue 1 year ago • 0 comments

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.

vorillaz avatar Jul 01 '24 19:07 vorillaz