Skip to content

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

@vorillaz

Description

@vorillaz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions