cookpete / react-player

A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion
https://cookpete.github.io/react-player
MIT License
9.26k stars 1.15k forks source link

Unable to trigger onPause while playing vimeo video #630

Closed akasht4f closed 5 years ago

akasht4f commented 5 years ago

Current Behavior

When i play vimeo video clicking on thumbnail , it triggers onReady and onSeek callbacks, but not onPause while pausing video.

Expected Behavior

I want to change user's view to swiper based on onPause callback and when user plays video back again it seeks and plays to where video was been paused.

Steps to Reproduce

  1. Use provided vimeo video link and sample piece of code to reproduce issue.

Other Information

<ReactPlayer ref={this.reactPlayer} url={video.href} height="100%" width="100%" playsinline controls loop={false} playing onReady={() => { this.reactPlayer .current .seekTo(this.props.startFrom, "seconds") }} onPause={() => { this.onStateChangeVideo({ data: 2, time: 0, }) }} onSeek={()=> { this.onStateChangeVideo({ data: 1, time: 0, }) }} onEnded={() => { this.onStateChangeVideo({ data: 1, time: 0, }) }}

akasht4f commented 5 years ago

As this issue was temporarily with vimeo api itself, so closing it.

https://github.com/vimeo/player.js/issues/417