Optional
isWhether the player starts playing automatically after loading a source or not. Default is false
.
const player = new Player({
playbackConfig: {
isAutoplayEnabled: true,
},
});
Optional
isWhether background playback is enabled or not.
Default is false
.
When set to true
, playback is not automatically paused
anymore when the app moves to the background.
When set to true
, also make sure to properly configure your app to allow
background playback.
Default is false
.
On Android, MediaControlConfig.isEnabled has to be true
for
background playback to work.
On tvOS, background playback is only supported for audio-only content.
const player = new Player({
playbackConfig: {
isBackgroundPlaybackEnabled: true,
},
});
Optional
isWhether the sound is muted on startup or not. Default value is false
.
const player = new Player({
playbackConfig: {
isMuted: true,
},
});
Optional
isWhether the Picture in Picture mode option is enabled or not. Default is false
.
const player = new Player({
playbackConfig: {
isPictureInPictureEnabled: true,
},
});
Use PictureInPictureConfig.isEnabled instead.
Optional
isWhether time shift / DVR for live streams is enabled or not. Default is true
.
const player = new Player({
playbackConfig: {
isTimeShiftEnabled: false,
},
});
Configures the playback behaviour of the player.