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
@override
Future<void> setBackgroundKeepAlive(bool enabled) async {
await methodChannel.invokeMethod('setBackgroundKeepAlive', enabled);
}