From fccbc939d9fd2643743e55204b668d656ad252c9 Mon Sep 17 00:00:00 2001 From: Joe Meyer Date: Fri, 3 May 2019 09:54:12 -0500 Subject: [PATCH] Adds onPlaybackRateChange to README --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 15274487..8812be89 100644 --- a/README.md +++ b/README.md @@ -303,6 +303,7 @@ var styles = StyleSheet.create({ * [onLoad](#onload) * [onLoadStart](#onloadstart) * [onPictureInPictureStatusChanged](#onpictureinpicturestatuschanged) +* [onPlaybackRateChange](#onplaybackratechange) * [onProgress](#onprogress) * [onSeek](#onseek) * [onRestoreUserInterfaceForPictureInPictureStop](#onrestoreuserinterfaceforpictureinpicturestop) @@ -969,6 +970,23 @@ isActive: true Platforms: iOS +#### onPlaybackRateChange +Callback function that is called when the rate of playback changes - either paused or starts/resumes. + +Property | Type | Description +--- | --- | --- +playbackRate | number | 1 if playback is ongoing and 0 otherwise + +Example: +``` +{ + playbackRate: 0, +} +``` + +Platforms: all + + #### onProgress Callback function that is called every progressUpdateInterval seconds with info about which position the media is currently playing.