QNAudioFrameListener
Index
Core Methods
Core Methods
OnAudioFrame
- OnAudioFrame: (userId: string, trackId: string, data: ArrayBuffer, bitsPerSample: number, sampleRate: number, channels: number) => void
-
音频数据回调
Parameters-
userId: string
此音频数据所属的用户
-
trackId: string
音频 track id
-
data: ArrayBuffer
音频数据内存指针
-
bitsPerSample: number
位宽,即每个采样点占用位数
-
sampleRate: number
采样率
-
channels : number
声道数
-
文档反馈
(如有产品使用问题,请 提交工单)