Inherits <NSObject>.
Protocol providing the AgoraLiveSubscriber class with callbacks.
◆ 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: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:unpublishedByHostUid:
- (void) subscriber: |
|
(AgoraLiveSubscriber *_Nonnull) |
subscriber |
unpublishedByHostUid: |
|
(NSUInteger) |
uid |
|
|
| |
|
optional |
A stream was unpublished by a host with a specific UID.
- Parameters
-
◆ 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 |