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

need onPaused event on iOS platform. #193

Closed
xing-zheng opened this issue Apr 22, 2016 · 5 comments
Closed

need onPaused event on iOS platform. #193

xing-zheng opened this issue Apr 22, 2016 · 5 comments

Comments

@xing-zheng
Copy link

In fullscreen mode, It's unable to pause video by pressing the built-in pause button.

Please fire onPause event, so that we have an opportunity to invoke "this.setState({paused: true});

@shanealsingh
Copy link

@xing-zheng For the time being I just put an invisible button over the native one and control playback that way.

@xing-zheng
Copy link
Author

@shanealsingh Thank you!

@corbt
Copy link
Contributor

corbt commented May 27, 2016

The onPlaybackRateChange callback should give you what you need -- it'll return 1 if playback is ongoing and 0 otherwise. I'm using it for this and it seems to work.

@mattapperson
Copy link
Contributor

closing due to suggestions made

@flexdhana
Copy link

flexdhana commented Oct 31, 2016

Thanks @corbt it helps me.. for others, here is the example based on @corbt suggestion.

  _onPlaybackRateChange = (event) => {
         console.log("_onPlaybackRateChange : "+event.playbackRate)
  };

 <Video
        source={{uri: "video.mp4"}}
       onPlaybackRateChange={this._onPlaybackRateChange.bind(this)}
  />

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

5 participants