PlayerConfiguration
The player configuration.
See
Properties
android?
optionalandroid:AndroidPlayerConfiguration
Player options specific to the Android platform.
apple?
optionalapple:ApplePlayerConfiguration
Player options specific to iOS and tvOS platforms.
autoPlay
autoPlay:
boolean
Set to true for playing the stream as soon as it is loaded.
drm?
optionaldrm:DrmConfiguration
The DRM configuration.
liveConfiguration?
optionalliveConfiguration:LiveConfiguration
The live configuration to tweak live latency and others.
metaData?
optionalmetaData:ContentMetaData
The content metadata.
nowPlaying?
optionalnowPlaying:NowPlayingConfiguration
The react-native-prestoplay-now-playing plugin configuration.
This plugin allows users to control stream playback via media controls in the notification center or on the lock screen for iOS and Android.
preferredAudioLanguage?
optionalpreferredAudioLanguage:string
The language code for the preferred audio language.
preferredTextLanguage?
optionalpreferredTextLanguage:string
The language code for the preferred text language. If this is specified, subtitles will be enabled at startup.
remoteTextTracks?
optionalremoteTextTracks: [RemoteTextTrack]
The side-loaded text tracks. Use Player.getTrackManager to select a text track.
remoteThumbnailTracks?
optionalremoteThumbnailTracks: [RemoteThumbnailTrack]
The side-loaded thumbnail tracks.
Use the react-native-prestoplay-thumbnails plugin to display thumbnails.
secondaryDisplayBehaviour?
optionalsecondaryDisplayBehaviour:SecondaryDisplayBehaviour
The behavior of the player when a secondary display is connected. Defaults to SecondaryDisplayBehaviour.Never.
source
source:
Source
The playback source.
startTimeMs?
optionalstartTimeMs:number
The start time of the stream in milliseconds.
userId?
optionaluserId:string
The unique identifier for the current user.