setBackgroundKeepAlive method
Opts the session into a background keep-alive for off-device playback such as casting. Defaults to a no-op on platforms where not implemented.
Implementation
Future<void> setBackgroundKeepAlive(bool enabled) {
return Future.value();
}