-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTC callbacks UserMuteVideo,RemoteVideoStateChanged and UserEnableVideo are not triggered. #94
Comments
can you share a code snippet? |
@EkaanshArora I have been facing issues customizing design view with the default import of the package, So, I used separate components to customize the design accordingly to requirements. Everything is working fine except some callbacks. Working callbacks are EndCall, UserJoined, UserOffline. But UserMuteVideo,RemoteVideoStateChanged and UserEnableVideo are not triggered when the remote user is pausing/resuming the video. You can see the code snippet in other comment. |
|
This looks like a bug, I’m out of office so I can try and fix this next week. In the meantime you can access the engine from the RtcContext and attach the event listener manually. |
@EkaanshArora Can you share any example for How can I attach a listener manually from RtcContext? |
@EkaanshArora Can you share any update or steps so that I can use RTC event in my application? |
You can look at this file for an example of how to access the rtcEngine. function AddEvent() {
const {RtcEngine} = useContext(RtcContext);
useEffect(()=>{
RtcEngine.addListener('RemoteVideoStateChanged', (uid, state, reason, elapsed) => {
// do things
})
},[])
return null
}
// render it in your tree
...
<AddEvent />
</MinUidConsumer>
</View> I'll try and fix this in the coming week, so you can just use the callbacks object. |
I have been trying to use agora's RTC Callbacks to detect remote user's video stream status using UserMuteVideo,RemoteVideoStateChanged and UserEnableVideo callbacks but I am unable to get any callback triggered when the remote user is pausing/resuming the video.
The text was updated successfully, but these errors were encountered: