setPlayVolume method
- String streamID,
- int volume
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.
streamID
Stream ID.volume
Volume 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);
}