Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will this component support onSeek callback? #222

Closed
kitce opened this issue Aug 10, 2017 · 1 comment
Closed

Will this component support onSeek callback? #222

kitce opened this issue Aug 10, 2017 · 1 comment

Comments

@kitce
Copy link

kitce commented Aug 10, 2017

It will be great to use the original player controls and listen to the onSeek event.

@cookpete
Copy link
Owner

If you are playing files, you could use the HTML5 onseeked attribute like so:

<ReactPlayer 
  playing
  controls
  url='http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4' 
  fileConfig={{ attributes: {
    onSeeked: e => console.log(e.target.currentTime)
  }}}
/>

It looks like Vimeo and Wistia players also support seek event listeners, so a universal onSeek prop might make sense, although Facebook and Youtube players don't seem to support it.

david-hub024 pushed a commit to david-hub024/React_VideoPlayer that referenced this issue Dec 23, 2018
david-hub024 pushed a commit to david-hub024/React_VideoPlayer that referenced this issue May 23, 2020
albanqoku added a commit to albanqoku/react-player that referenced this issue Feb 24, 2021
Webmaster1116 added a commit to Webmaster1116/video-player that referenced this issue May 20, 2021
webmiraclepro added a commit to webmiraclepro/video-player that referenced this issue Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants