setVolume method

  1. @override
Future<void> setVolume(
  1. String playerId,
  2. double volume
)
override

Sets the volume (amplitude).

0 is mute and 1 is the max volume. The values between 0 and 1 are linearly interpolated.

Implementation

@override
Future<void> setVolume(String playerId, double volume) {
  return _call(
    'setVolume',
    playerId,
    <String, dynamic>{
      'volume': volume,
    },
  );
}