setVolume method
set volume @Note: In iOS, the volume of the left and right audio channels is consistent; when there is a discrepancy, iOS takes the value of the left channel.
- left: left channel volume
- right: right channel volume
Implementation
Future<void> setVolume({required TTVolume volume}) async {
await engineInstanceMethodChannel.invokeMethod('setVolume', {
'left': volume.left,
'right': volume.right,
});
}