Merge pull request #1057 from genglei01/master

Add allowsExternalPlayback Property for ios
This commit is contained in:
Hampton Maxwell
2018-06-10 10:56:14 -07:00
committed by GitHub
4 changed files with 19 additions and 0 deletions

View File

@@ -219,6 +219,7 @@ var styles = StyleSheet.create({
```
### Configurable props
* [allowsExternalPlayback](#allowsexternalplayback)
* [ignoreSilentSwitch](#ignoresilentswitch)
* [muted](#muted)
* [paused](#paused)
@@ -235,6 +236,13 @@ var styles = StyleSheet.create({
* [useTextureView](#usetextureview)
* [volume](#volume)
#### allowsExternalPlayback
Indicates whether the player allows switching to external playback mode such as AirPlay or HDMI.
* **true (default)** - allow switching to external playback mode
* **false** - Don't allow switching to external playback mode
Platforms: iOS
#### ignoreSilentSwitch
Controls the iOS silent switch behavior
* **"inherit" (default)** - Use the default AVPlayer behavior