PlayerConfiguration
The player configuration.
See
Properties
metaData?
optionalmetaData:ContentMetaData
The content metadata.
userId?
optionaluserId:string
The unique identifier for the current user.
startTimeMs?
optionalstartTimeMs:number
The start time of the stream in milliseconds.
autoPlay
autoPlay:
boolean
Set to true for playing the stream as soon as it is loaded.
source
The playback source.
If more than one source is available for the same content, the player will select the source best suited to the current device.
To support Chromecast, provide multiple sources for the same content. Since Chromecast doesn't support protected HLS, you must also provide a DASH source for protected content on iOS devices.
drm?
optionaldrm:DrmConfiguration
The DRM configuration.
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.
preferredTextLanguage?
optionalpreferredTextLanguage:string
The language code for the preferred text language. If this is specified, subtitles will be enabled at startup.
preferredAudioLanguage?
optionalpreferredAudioLanguage:string
The language code for the preferred audio language.
liveConfiguration?
optionalliveConfiguration:LiveConfiguration
The live configuration to tweak live latency and others.
secondaryDisplayBehaviour?
optionalsecondaryDisplayBehaviour:SecondaryDisplayBehaviour
⚠️ Only on iOS. For Android check: AndroidPlayerConfiguration.secondaryDisplayBehaviour The behavior of the player when a secondary display is connected. Defaults to SecondaryDisplayBehaviour.Never.
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.
android?
optionalandroid:AndroidPlayerConfiguration
Player options specific to the Android platform.
apple?
optionalapple:ApplePlayerConfiguration
Player options specific to iOS and tvOS platforms.
web?
optionalweb:WebPlayerConfiguration
Player options specific to Web platform.