|
Agora RTC Objective-C API Reference
Refactor
|
Inherits <NSObject>.
Instance Methods | |
| (instancetype _Nonnull) | - initWithLiveKit: |
| (void) | - setDelegate: |
| (void) | - subscribeToHostUid:mediaType:view:renderMode:videoType: |
| (void) | - unsubscribeToHostUid: |
The AgoraLiveSubscriber class manages all actions related to live broadcast subscribing.
| - (instancetype _Nonnull) initWithLiveKit: | (AgoraLiveKit *_Nonnull) | kit |
Initializes an AgoraLiveSubscriber object.
| kit | AgoraLiveKit |
| - (void) setDelegate: | (_Nullable id< AgoraLiveSubscriberDelegate >) | delegate |
Sets the delegate.
| delegate | AgoraLiveSubscriberDelegate |
| - (void) subscribeToHostUid: | (NSUInteger) | uid | |
| mediaType: | (AgoraMediaType) | mediaType | |
| view: | (VIEW_CLASS *_Nullable) | view | |
| renderMode: | (AgoraVideoRenderMode) | mode | |
| videoType: | (AgoraVideoStreamType) | videoType | |
Subscribes to a host.
| uid | User ID of the host |
| mediaType | AgoraMediaType |
| view | View to render |
| mode | AgoraVideoRenderMode |
| videoType | AgoraVideoStreamType |
| - (void) unsubscribeToHostUid: | (NSUInteger) | uid |
Unsubscribes from a host.
| uid | User ID of the host |