setMuted method

Future<void> setMuted(
  1. bool muted
)

Sets whether or not video should be muted.

This method doesn't affect volume value.

See also VideoPlayerValue.isMuted.

Implementation

Future<void> setMuted(bool muted) async {
  value = value.copyWith(isMuted: muted);
  await _applyMuted();
}