Extend useMediaRemote
hook methods and update the duration
, clipStartTime
and clipEndTime
of the player.
#1330
Labels
feature
New feature or request
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 theduration
,clipStartTime
andclipEndTime
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.The text was updated successfully, but these errors were encountered: