Play constructor

Play({
  1. bool events = true,
  2. bool osc = false,
  3. bool gui = false,
  4. String? vo,
  5. bool pitch = false,
  6. String? libmpv,
  7. String? title,
  8. void ready()?,
})

Implementation

Play({
  bool events = true,
  bool osc = false,
  bool gui = false,
  String? vo,
  bool pitch = false,
  String? libmpv,
  String? title,
  void Function()? ready,
}) {
  play_core.Play.ensureInitialized();
  player = Player(
    configuration: PlayerConfiguration(
      // events: events,
      osc: osc,
      // vid: gui,
      vo: vo,
      pitch: pitch,
      // libmpv: libmpv,
      title: title ?? "",
      ready: ready,
    ),
  );
}