isBackgroundPlaybackEnabled property

  1. @JsonKey(name: 'isBackgroundPlaybackEnabled')
bool isBackgroundPlaybackEnabled
final

Specifies if 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.

This is only supported on iOS.

Implementation

@JsonKey(name: 'isBackgroundPlaybackEnabled')
final bool isBackgroundPlaybackEnabled;