setPlayVolume method
Sets the stream playback volume.
Available since: 1.16.0 Description: Set the sound size of the stream, the local user can control the playback volume of the audio stream. When to call: after called startPlayingStream. Restrictions: None. Related APIs: setAllPlayStreamVolume Set all stream volume. Caution: You need to reset after stopPlayingStream and startPlayingStream. This function and the setAllPlayStreamVolume function overwrite each other, and the last call takes effect.
streamIDStream ID.volumeVolume percentage. The value ranges from 0 to 200, and the default value is 100.
Implementation
Future<void> setPlayVolume(String streamID, int volume) async {
return await ZegoExpressImpl.instance.setPlayVolume(streamID, volume);
}