mderrick / react-html5video

A customizeable HTML5 Video React component with i18n and a11y.
http://mderrick.github.io/react-html5video/
MIT License
459 stars 123 forks source link

Override Scrub Method #49

Closed drsmall closed 8 years ago

drsmall commented 8 years ago

I'd like to disable scrubbing when the user tries to watch part of the video they haven't reached. So if I have a method that calculates that, how can I override he default seeking method with my own?

mderrick commented 8 years ago

You can override the default seekbar by simply creating your own component and providing it as a child as mentioned in this section.

I'd recommend that you simply look at the original seekbar, and the props it receives then utilise them to build your own custom seek bar logic.