From 5e2b49c34377c10668681ea4a232580a03e189d5 Mon Sep 17 00:00:00 2001 From: Artur Jaworski Date: Tue, 18 Sep 2018 09:45:12 +0200 Subject: [PATCH] readme update --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index c1dd0f0f..f0ea1091 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,7 @@ var styles = StyleSheet.create({ * [onLoadStart](#onloadstart) * [onProgress](#onprogress) * [onTimedMetadata](#ontimedmetadata) +* [onExternalPlaybackChange](#onexternalplaybackchange) ### Methods * [dismissFullscreenPlayer](#dismissfullscreenplayer) @@ -721,6 +722,24 @@ Support for timed metadata on Android MediaPlayer is limited at best and only co Platforms: Android ExoPlayer, Android MediaPlayer, iOS +#### onExternalPlaybackChange +Callback function that is called when external playback mode for current playing video has changed. Mostly useful when connecting/disconnecting to Apple TV – it's called on connection/disconnection. + +Payload: + +Property | Type | Description +--- | --- | --- +isExternalPlaybackActive | boolean | Boolean indicating is external playback mode is active + +Example: +``` +{ + isExternalPlaybackActive: true +} +``` + +Platforms: iOS + ### Methods Methods operate on a ref to the Video element. You can create a ref using code like: ```