PlayerConfiguration constructor

const PlayerConfiguration({
  1. String? vo = 'null',
  2. bool osc = false,
  3. bool pitch = false,
  4. String title = 'package:media_kit',
  5. void ready()?,
  6. bool muted = false,
  7. bool async = true,
  8. bool libass = false,
  9. String? libassAndroidFont,
  10. String? libassAndroidFontName,
  11. MPVLogLevel logLevel = MPVLogLevel.error,
  12. int bufferSize = 32 * 1024 * 1024,
  13. List<String> protocolWhitelist = const ['udp', 'rtp', 'tcp', 'tls', 'data', 'file', 'http', 'https', 'crypto'],
})

PlayerConfiguration

Configurable options for customizing the Player behavior.

Implementation

const PlayerConfiguration({
  this.vo = 'null',
  this.osc = false,
  this.pitch = false,
  this.title = 'package:media_kit',
  this.ready,
  this.muted = false,
  this.async = true,
  this.libass = false,
  this.libassAndroidFont,
  this.libassAndroidFontName,
  this.logLevel = MPVLogLevel.error,
  this.bufferSize = 32 * 1024 * 1024,
  this.protocolWhitelist = const [
    'udp',
    'rtp',
    'tcp',
    'tls',
    'data',
    'file',
    'http',
    'https',
    'crypto',
  ],
});