AgoraIO-Community / VideoUIKit-Web-React

A Web library to simply integrate Agora Video Calling or Live Video Streaming to your website with just a few lines of code.
MIT License
50 stars 40 forks source link

[QUESTION] having a listener or callback when a call is started propertly #26

Closed elenitaex5 closed 1 year ago

elenitaex5 commented 1 year ago

Hi! I'm been researching in code and documentation but I have a doubt about it. There's a listener or a callback we could include for when a call is propertly initialized (with no errors)? We need to track and log the moment of starting a video call but I'm not sure if there's something we can use in UI Kit

EkaanshArora commented 1 year ago

You can listen to connection-state-change, when the current state is "CONNECTED" it means the channel is joined successfully.

elenitaex5 commented 1 year ago

THANKS