setAudioPlayoutVolume method

Future<void> setAudioPlayoutVolume(
  1. int volume
)

Set the volume of the video, ranging from 0 to 100.

设置视频声音 0~100

Implementation

Future<void> setAudioPlayoutVolume(int volume) async {
  if (_isNeedDisposed) return;
  await _initPlayer.future;
  await _vodPlayerApi.setAudioPlayOutVolume(IntPlayerMsg()
    ..value = volume
    ..playerId = _playerId);
}