Wednesday, June 10, 2026
HomeiOS Developmentagora.io - Agora iOS SDK : displaying a loading display when an...

agora.io – Agora iOS SDK : displaying a loading display when an viewers joins a channel

[ad_1]

With Agora iOS SDK, I want to present a loading display when an viewers is becoming a member of a channel. If the host isn’t broadcasting, I’d then like to indicate a message that host is offline. Nonetheless, I’m not positive which AgoraRtcEngineDelegate API I want to make use of to realize this.

Here’s what I’ve tried thus far.

I attempted to make use of AgoraVideoRemoteState which is up to date by remoteVideoStateChangedOfUid callback when a distant video state adjustments. I set the preliminary worth of AgoraVideoRemoteState to nil (displaying a loading display at this level) and up to date it to .decoding to indicate a streaming display if the host is on-line. Nonetheless, Agora doesn’t appear to fireside remoteVideoStateChangedOfUid if the host is offline when the viewers joins a channel which is resulting in the loading display not being up to date.

Is there any API to establish whether or not the host is offline when an viewers joins a channel.

Thanks prematurely!

ref:
AgoraVideoRemoteState: https://docs.agora.io/en/live-streaming/APIpercent20Reference/oc/Constants/AgoraVideoRemoteState.html

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments