AgoraIO-Extensions / react-native-agora

React Native around the Agora RTC SDKs for Android and iOS agora
https://www.agora.io
MIT License
622 stars 228 forks source link

1009: An error occurs when starting the playback device. Check the playback device. #674

Closed 345ml closed 11 months ago

345ml commented 1 year ago

This is a question.

I am encountering an error in the title. This error occurs irregularly and I do not know in what case this is reproduced.

https://github.com/AgoraIO-Extensions/react-native-agora/blob/762259b81587da7c9970e36834f087ee9c910950/src/AgoraBase.ts#L404C2-L404C2

This error can be seen in the onError event when joinChannel is executed.

I cannot guess the cause by looking at the error description. I do not know the procedure to reproduce the error. Is it related to audio devices?

Do you happen to know anything about this?

Environment

LichKing-2234 commented 1 year ago

is this error make some thing not working?

345ml commented 1 year ago

@LichKing-2234 Thanks.

I have implemented the onError event to close the channel if it catches an error.

Therefore, I have not checked if the call continues normally after the error occurs.

That's why, I did not consider the case where the connection continues after the error occurs. It would be worth a try for that.

mk0116 commented 1 year ago

I am consistently encountering a sequence of errors, specifically error codes 1009, 1011, and 1012, while running the application. Intriguingly, this set of errors always occur twice, in the following order: onError 1009 onError 1011 onError 1012 onError 1009 onError 1011 onError 1012 This issue is consistently reproducible (100%) when the device receives an incoming call. The errors occur even when the call is not answered, merely ringing, and a new session is started in the application.

mk0116 commented 1 year ago

When this occurs, I can hear the voices of other players, but my voice isn't being transmitted to them.

LichKing-2234 commented 1 year ago

the microphone will be occupied when the device receives an incoming call.

stale[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.