Inherits <NSObject>.
The AgoraLivePublisher class manages all actions related to live broadcast publishing.
◆ setDelegate:
Sets the delegate.
- Parameters
-
◆ initWithLiveKit:
- (instancetype _Nonnull) initWithLiveKit: |
|
(AgoraLiveKit *_Nonnull) |
kit |
|
◆ setMediaType:
- (void) setMediaType: |
|
(AgoraMediaType) |
mediaType |
|
Sets the media type.
- Parameters
-
◆ addStreamUrl:transcodingEnabled:
- (void) addStreamUrl: |
|
(NSString *_Nullable) |
url |
transcodingEnabled: |
|
(BOOL) |
transcodingEnabled |
|
|
| |
Adds a stream URL.
This method is used for CDN live. It adds the URL to which the host publishes the stream. Note: This method only adds one URL each time it is called.
- Parameters
-
url | URL to which the host publishes the stream. |
transcodingEnabled | * True: Enable transcoding. False: Disable transcoding. |
◆ removeStreamUrl:
- (void) removeStreamUrl: |
|
(NSString *_Nullable) |
url |
|
Removes a stream URL.
This method is used for CDN live. It removes the URL to which the host publishes the stream. Note: This method only removes one URL each time it is called.
- Parameters
-
url | URL to which the host publishes the stream. |
◆ publish
◆ unpublish
◆ switchCamera
Switches between front and rear cameras.