MPVPlayer constructor
MPVPlayer({})
Implementation
MPVPlayer({
this.mpvArgs = const [],
this.debug = false,
this.verbose = false,
this.socketURI = '/tmp/MPV_Dart.sock',
this.audioOnly = false,
this.autoRestart = true,
this.timeUpdate = 1,
this.binary,
}) {
socketURI =
Platform.isWindows ? '\\\\.\\pipe\\mpvserver' : '/tmp/MPV_Dart.sock';
mpvArgs = utils.mpvArguments(audioOnly, mpvArgs);
socket = IPCInterface(debug: debug);
_errorHandler = ErrorHandler();
}