command method

Future<void> command(
  1. List<String> command
)

Invokes command for the internal libmpv instance of this Player. Please use this method only if you know what you are doing, existing methods in Player implementation are suited for the most use cases.

See:

Implementation

Future<void> command(List<String> command) async {
  if (disposed) {
    throw AssertionError('[Player] has been disposed');
  }
  await waitForPlayerInitialization;
  await waitForVideoControllerInitializationIfAttached;

  await _command(command);
}