registerPlayer static method
Binds this target's player. backgroundAudioDeclared is whether the
build declared what the platform needs to keep playing in the
background -- UIBackgroundModes: audio, a media-playback foreground
service -- as the binding found it in the running application.
Implementation
static void registerPlayer(DVMediaPlayerFactory factory,
{bool? backgroundAudioDeclared}) {
_player = factory;
if (backgroundAudioDeclared != null) {
_backgroundAudioDeclared = backgroundAudioDeclared;
}
}