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

  subscriber | AgoraLiveSubscriber
  uid | User ID of the host
  type | AgoraMediaType

## ◆ 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

  subscriber | AgoraLiveSubscriber
  type | AgoraMediaType
  uid | User 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

  subscriber | AgoraLiveSubscriber
  uid | User 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

  subscriber | Live subscriber.
  uid | Remote user id.
  size | Size of video stream.
  elapsed | Time 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

  subscriber | Live subscriber
  uid | User ID
  size | New video size
  rotation | New video rotation