adjustCustomAudioPublishVolume abstract method
Adjusts the volume of the custom audio track played remotely.
Ensure you have called the createCustomAudioTrack method to create a custom audio track before calling this method. If you want to change the volume of the audio played remotely, you need to call this method again.
trackId
The audio track ID. Set this parameter to the custom audio track ID returned in createCustomAudioTrack.volume
The volume of the audio source. The value can range from 0 to 100. 0 means mute; 100 means the original volume.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. < 0: Failure.
Implementation
Future<void> adjustCustomAudioPublishVolume(
{required int trackId, required int volume});