ZegoAudioLivePlayerDelegate Protocol Reference

Conforms to NSObject
Declared in ZegoAudioRoomApi-Player.h

– onPlayStateUpdate:stream: required method

播放流事件

- (void)onPlayStateUpdate:(int)stateCode stream:(ZegoAudioStream *)stream

Parameters

stateCode

播放状态码

stream

流信息

Declared In

ZegoAudioRoomApi-Player.h

– onPlayQualityUpate:quality:

观看质量更新

- (void)onPlayQualityUpate:(NSString *)streamID quality:(ZegoApiPlayQuality)quality

Parameters

streamID

观看流ID

quality

quality 参考ZegoApiPlayQuality定义

Declared In

ZegoAudioRoomApi-Player.h

– onRemoteMicStatusUpdate:ofStream:reason:

  • 远端麦克风状态通知
    1. 仅拉 UDP 流有效;
    1. 当房间内其他流的麦克风状态发生改变,如其他用户调用了 EnableMic (true/false) 后,会收到该 API 回调通知。 *
- (void)onRemoteMicStatusUpdate:(int)status ofStream:(NSString *)streamID reason:(int)reason

Parameters

status

参考 zego-api-defines-oc.h 中 ZegoAPIDeviceStatus 的定义

streamID

流的唯一标识

reason

参考 zego-api-defines-oc.h 中 ZegoAPIDeviceErrorReason 的定义

Declared In

ZegoAudioRoomApi-Player.h

– onRecvRemoteAudioFirstFrame:

接收到远端音频的首帧通知

- (void)onRecvRemoteAudioFirstFrame:(NSString *)streamID

Parameters

streamID

流ID

Declared In

ZegoAudioRoomApi-Player.h