When using the Agora RTC SDK to implement a real-time call or interactive streaming, to listen for the status of a user's microphone and camera in a channel, you can use the Agora RTM SDK.
You can use the following functions of the Agora RTM SDK to listen for the status of a user's microphone and camera in a channel:
addOrUpdateLocalUserAttributes to add or update the attributes of the local user's microphone and camera.getUserAttributesByKeys to get the attributes of a specified user's microphone and camera, which can be used to show the microphone and camera status.createChannelAttribute to create and return an IRtmChannelAttribute instance.Call addOrUpdateChannelAttributes to add or update the attributes of all users' microphones and cameras in a specified channel.
Call getChannelAttributesByKeys to get the attributes of all users' microphones and cameras in a specified channel, which can be used to show the microphone and camera status.
Refer to the following documents for detailed integration guide and API reference: