setVolume method

  1. @override
Future<void> setVolume(
  1. int textureId,
  2. double volume
)
override

Sets the volume to a range between 0.0 and 1.0.

Implementation

@override
Future<void> setVolume(int textureId, double volume) async {
  var controller =
      VideoPlayerWinPlatform.instance.getPlayerByTextureId(textureId);
  await controller?.setVolume(volume);
}