ZegoPlayAudioRecorder Class Reference
Inherits from | NSObject |
---|---|
Declared in | zego-api-play-audio-recorder-oc.h |
+ sharedInstance
获取ZegoPlayAudioRecorder 单例
+ (instancetype)sharedInstance
Return Value
ZegoPlayAudioRecorder 单例对象
Declared In
zego-api-play-audio-recorder-oc.h
– setPlayAudioRecorderDelegate:
设置音频数据的回调
- (void)setPlayAudioRecorderDelegate:(id<ZegoPlayAudioRecorderDelegate>)delegate
Parameters
delegate |
音频数据代理 |
---|
Discussion
未设置代理,不会有音频数据回调
Declared In
zego-api-play-audio-recorder-oc.h
– enablePlayAudioRecorder:sampleRate:channels:
设置是否开启拉流音频数据回调
- (void)enablePlayAudioRecorder:(BOOL)enable sampleRate:(int)rate channels:(int)channels
Parameters
enable |
开启 |
---|---|
channels |
数据通道数,取值0,1,2,0表示使用原数据通道数 |
sampleRate |
数据采样率,取值 0, 16000, 32000, 44100, 48000,0表示使用原数据采样率,不做采样转换 |
Declared In
zego-api-play-audio-recorder-oc.h