AgoraIO / API-Examples

Play with AgoraSDK and have fun! Everything you need to start learning Agora.
294 stars 217 forks source link

engine.muteLocalAudioStream(true), it doesn't work. #369

Closed Hyun-Jegal closed 16 hours ago

Hyun-Jegal commented 8 months ago

When reading an audio file and sending audio data using engine.pushExternalAudioFrame(...), audio is played from the speaker. What should I do to prevent sound from the speaker at this time? Even if you use engine.muteLocalAudioStream(true), it doesn't work.

plutoless commented 8 months ago

if you just would like to play audio file and share it across channel, you may choose to use our mediaplayer apis to open and play it. you don't need to use pushExternalAudioFrame to do this yourself.