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

Inherits <NSObject>.

Instance Methods

(void) - rtcEngine:rtmpStreamingChangedToState:state:errCode:
 
(void) - publisher:streamPublishedWithUrl:error:
 
(void) - publisher:streamUnpublishedWithUrl:
 
(void) - publisherTranscodingUpdated:
 
(void) - publisher:streamInjectedStatusOfUrl:uid:status:
 

Detailed Description

Protocol providing the AgoraLivePublisher class with callbacks.

Method Documentation

◆ rtcEngine:rtmpStreamingChangedToState:state:errCode:

- (void) rtcEngine: (AgoraRtcEngineKit *_Nonnull)  engine
rtmpStreamingChangedToState: (NSString *_Nonnull)  url
state: (AgoraRtmpStreamingState state
errCode: (AgoraRtmpStreamingErrorCode errCode 
optional

Occurs when the state of the RTMP streaming changes.

Parameters
engineThe AgoraRtcEngineKit object.
urlAddress to which the publisher publishes the stream.
state[AgoraRtmpStreamingState]([AgoraRtmpStreamingState])
errCode[AgoraRtmpStreamingErrorCode]([AgoraRtmpStreamingErrorCode])

◆ publisher:streamPublishedWithUrl:error:

- (void) publisher: (AgoraLivePublisher *_Nonnull)  publisher
streamPublishedWithUrl: (NSString *_Nonnull)  url
error: (AgoraErrorCode)  error 
optional

A stream was published.

Parameters
publisherAgoraRtcEngineKit object.
urlAddress to which the publisher publishes the stream.
errorAgoraErrorCode

◆ publisher:streamUnpublishedWithUrl:

- (void) publisher: (AgoraLivePublisher *_Nonnull)  publisher
streamUnpublishedWithUrl: (NSString *_Nonnull)  url 
optional

A stream was unpublished.

Parameters
publisherAgoraRtcEngineKit object.
urlAddress to which the publisher unpublishes the stream.

◆ publisherTranscodingUpdated:

- (void) publisherTranscodingUpdated: (AgoraLivePublisher *_Nonnull)  publisher
optional

The publisher transcoding was updated.

Parameters
publisherAgoraRtcEngineKit object

◆ publisher:streamInjectedStatusOfUrl:uid:status:

- (void) publisher: (AgoraLivePublisher *_Nonnull)  publisher
streamInjectedStatusOfUrl: (NSString *_Nonnull)  url
uid: (NSUInteger)  uid
status: (AgoraInjectStreamStatus)  status 
optional

The status of the imported external video stream.

Parameters
publisherAgoraRtcEngineKit object.
urlURL address of the imported external video stream added to the live broadcast.
uidUser ID.
statusAgoraInjectStreamStatus.