Agora RTC Objective-C API Reference  Refactor
Instance Methods
<AgoraLiveSubscriberDelegate> Protocol Reference

Inherits <NSObject>.

Instance Methods

(void) - subscriber:publishedByHostUid:streamType:
 
(void) - subscriber:streamTypeChangedTo:byHostUid:
 
(void) - subscriber:unpublishedByHostUid:
 
(void) - subscriber:firstRemoteVideoDecodedOfHostUid:size:elapsed:
 
(void) - subscriber:videoSizeChangedOfHostUid:size:rotation:
 

Detailed Description

Protocol providing the AgoraLiveSubscriber class with callbacks.

Method Documentation

◆ subscriber:publishedByHostUid:streamType:

- (void) subscriber: (AgoraLiveSubscriber *_Nonnull)  subscriber
publishedByHostUid: (NSUInteger)  uid
streamType: (AgoraMediaType)  type 
optional

A stream was published by a host with a specific UID.

Parameters
subscriberAgoraLiveSubscriber
uidUser ID of the host
typeAgoraMediaType

◆ subscriber:streamTypeChangedTo:byHostUid:

- (void) subscriber: (AgoraLiveSubscriber *_Nonnull)  subscriber
streamTypeChangedTo: (AgoraMediaType)  type
byHostUid: (NSUInteger)  uid 
optional

The stream type was changed by a host with a specific UID.

Parameters
subscriberAgoraLiveSubscriber
typeAgoraMediaType
uidUser ID of the host

◆ subscriber:unpublishedByHostUid:

- (void) subscriber: (AgoraLiveSubscriber *_Nonnull)  subscriber
unpublishedByHostUid: (NSUInteger)  uid 
optional

A stream was unpublished by a host with a specific UID.

Parameters
subscriberAgoraLiveSubscriber
uidUser ID of the host

◆ subscriber:firstRemoteVideoDecodedOfHostUid:size:elapsed:

- (void) subscriber: (AgoraLiveSubscriber *_Nonnull)  subscriber
firstRemoteVideoDecodedOfHostUid: (NSUInteger)  uid
size: (CGSize)  size
elapsed: (NSInteger)  elapsed 
optional

The first frame of the remote user was displayed successfully.

Parameters
subscriberLive subscriber.
uidRemote user id.
sizeSize of video stream.
elapsedTime elapsed (ms) from the beginning of the session.

◆ subscriber:videoSizeChangedOfHostUid:size:rotation:

- (void) subscriber: (AgoraLiveSubscriber *_Nonnull)  subscriber
videoSizeChangedOfHostUid: (NSUInteger)  uid
size: (CGSize)  size
rotation: (NSInteger)  rotation 
optional

The video size and rotational change of the specified user.

Parameters
subscriberLive subscriber
uidUser ID
sizeNew video size
rotationNew video rotation