From d4a659a64163f154e18962b3c8caf2976671aa9d Mon Sep 17 00:00:00 2001 From: Hampton Maxwell Date: Fri, 8 Jun 2018 21:08:51 -0700 Subject: [PATCH] Update background instructions for iOS --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e89da265..8830175d 100644 --- a/README.md +++ b/README.md @@ -262,9 +262,11 @@ Determine whether the media should continue playing while the app is in the back * **false (default)** - Don't continue playing the media * **true** - Continue playing the media -iOS support is currently broken until background service support is added [#797](https://github.com/react-native-community/react-native-video/issues/797) +To use this feature on iOS, you must: +*[Enable Background Audio](https://developer.apple.com/library/archive/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/AudioSessionBasics/AudioSessionBasics.html#//apple_ref/doc/uid/TP40007875-CH3-SW3) +*Set the ignoreSilentSwitch prop to "ignore" -Platforms: Android ExoPlayer, Android MediaPlayer +Platforms: Android ExoPlayer, Android MediaPlayer, iOS #### playWhenInactive Determine whether the media should continue playing when notifications or the Control Center are in front of the video.