Skip to content

Disable seek bar #640

@obuw

Description

@obuw

I am trying to control the behavior of the player controls, by disabling the seek bar. This is possible in some other players, but unfortunately doesn't seem to be the case on react-player.

Ideally, if the onSeek function were to return an event, I could call event.preventDefault(); But sadly that's not the case.

I don't want to disable the controls completely, since I still want the volume and fullscreen buttons.

Is there any way I can control the functionality of the seek bar, perhaps by editing the source? I'm only interested in the regular video player, not youtube/facebook/etc. Should I be looking at FilePlayer.js ?

Worst case, I'll have to disable controls and then make my own overlay buttons, but I'd like the use the existing controls if at all possible.

Any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions