AgoraStreamingDelegate 协议
| Conforms to | NSObject |
|---|---|
| Declared in | AgoraStreamingKit.h |
– onInitializedKitError:
初始化 AgoraStreamingKit 失败。
- (void)onInitializedKitError:(AgoraInitializeError)error参数
error |
初始化 AgoraStreamingKit 出错的原因,详见 AgoraInitializeError |
|---|
Declared In
AgoraStreamingKit.h
– onStartStreamingSuccess
推送媒体流成功回调。
- (void)onStartStreamingSuccess详情
调用 startStreaming 方法推送媒体流成功后,Kit 会触发该回调。
Declared In
AgoraStreamingKit.h
– onStartStreamingFailure:message:
推送媒体流失败回调。
- (void)onStartStreamingFailure:(AgoraStartStreamingError)error message:(NSString *)msg参数
error |
失败的错误码,详见 AgoraStartStreamingError |
|---|---|
msg |
失败的说明。 |
详情
调用 startStreaming 方法推送媒体流失败后,Streaming Kit 触发该回调。你可以从该回调中
获取失败的错误码 error 和失败的说明 msg。
Declared In
AgoraStreamingKit.h
– onMediaStreamingFailure:message:
推流过程中,媒体流出错回调。
- (void)onMediaStreamingFailure:(AgoraMediaStreamingError)error message:(NSString *)msg参数
error |
媒体流出错的错误码,详见 AgoraMediaStreamingError |
|---|---|
msg |
媒体流出错的说明。 |
详情
用 startStreaming 方法开始推送媒体流后,当推送的媒体流出错时,Kit 会触发该回调,向你报告错误码和说明。请根据错误码和说明排查问题。
Declared In
AgoraStreamingKit.h
– onStreamingConnectionStateChanged:
推送媒体流状态改变。
- (void)onStreamingConnectionStateChanged:(AgoraStreamingConnectionState)state参数
state |
推送媒体流的状态,详见 AgoraStreamingConnectionState |
|---|
详情
推流过程中,当推送媒体流状态发生改变时,Streaming Kit 触发该回调。你可以从该回调中获取当前推流状态。
Declared In
AgoraStreamingKit.h
– agoraStreamingKit:didOutputVideoFrame:
已获取视频帧回调。
- (void)agoraStreamingKit:(AgoraStreamingKit *)streamingKit didOutputVideoFrame:(CVPixelBufferRef)pixelBuffer参数
streamingKit |
|
|---|---|
pixelBuffer |
视频帧信息,详见 CVPixelBufferRef |
详情
Agora Streaming Kit 每次接收到一帧视频帧时,都会触发该回调,报告视频帧信息。
Declared In
AgoraStreamingKit.h
– agoraStreamingKit:didOutputAudioFrame:
已获取音频帧回调。
- (void)agoraStreamingKit:(AgoraStreamingKit *)streamingKit didOutputAudioFrame:(CMSampleBufferRef)sampleBuffer参数
streamingKit |
|
|---|---|
sampleBuffer |
音频帧信息,详见 CMSampleBufferRef |
详情
Agora Streaming Kit 每次接收到一帧音频帧时,都会触发该回调,报告音频帧信息。
Declared In
AgoraStreamingKit.h
