setMixWithOthers method

void setMixWithOthers(
  1. bool mixWithOthers
)

Enable or disable audio mixing with other sound within device.

Implementation

void setMixWithOthers(bool mixWithOthers) {
  if (videoPlayerController == null) {
    throw StateError("The data source has not been initialized");
  }

  videoPlayerController!.setMixWithOthers(mixWithOthers);
}