registerPlayer static method

void registerPlayer(
  1. DVMediaPlayerFactory factory, {
  2. bool? backgroundAudioDeclared,
})

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;
  }
}