Commit 443bf88c authored by Ash Mishra's avatar Ash Mishra
Browse files

Adds fullscreenOptions to iOS

parent 0580f271
Loading
Loading
Loading
Loading
+29 −0
Changes for README.md: 29 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -228,6 +228,8 @@ var styles = StyleSheet.create({
* [allowsExternalPlayback](#allowsexternalplayback)
* [audioOnly](#audioonly)
* [bufferConfig](#bufferconfig)
* [fullscreen (deprecated)](#fullscreen)
* [fullscreenOptions](#fullscreenOptions)
* [ignoreSilentSwitch](#ignoresilentswitch)
* [muted](#muted)
* [paused](#paused)
@@ -305,6 +307,33 @@ bufferConfig={{

Platforms: Android ExoPlayer

#### fullscreen (deprecated)

Controls whether the player enters fullscreen on play. Use fullscreenOptions for extended behaviour.

Platforms: iOS

#### fullscreenOptions

Controls behaviour of the player entering fullscreen, such as forcing landscape playback on portrait devices

Property | Type | Description
--- | --- | ---
enabled | boolean | determines whether to enter fullscreen on video play
preferredOrientation | landscape, portrait, default | Defaults to the current device orientation; otherwise will force fullscreen video playback into landscape or portrait
autorotate | boolean | determines whether the video player will rotate to the preferredOrientation automatically

Example with default values
```
fullscreenOptions={{ 
  enabled: false,
  preferredOrientation: 'default'
  autorotate: true 
}}
```

Platforms: iOS

#### ignoreSilentSwitch
Controls the iOS silent switch behavior
* **"inherit" (default)** - Use the default AVPlayer behavior
+78 −78

File changed.

Contains only whitespace changes.