PlayerConfiguration constructor

const PlayerConfiguration({
  1. String? vo = 'null',
  2. bool osc = false,
  3. bool pitch = false,
  4. String? title,
  5. void ready()?,
  6. MPVLogLevel logLevel = MPVLogLevel.none,
  7. int bufferSize = 32 * 1024 * 1024,
  8. List<String> protocolWhitelist = const ['file', 'tcp', 'tls', 'http', 'https', 'crypto', 'data'],
})

PlayerConfiguration

Configurable options for customizing the Player behavior.

Implementation

const PlayerConfiguration({
  this.vo = 'null',
  this.osc = false,
  this.pitch = false,
  this.title,
  this.ready,
  this.logLevel = MPVLogLevel.none,
  this.bufferSize = 32 * 1024 * 1024,
  this.protocolWhitelist = const [
    'file',
    'tcp',
    'tls',
    'http',
    'https',
    'crypto',
    'data',
  ],
});