实时音视频

  • 实时音视频 > API 文档 > iOS >QNRemoteAudioTrackDelegate

    QNRemoteAudioTrackDelegate

    最近更新时间:2022-06-07 23:45:29

    远端音频 Track 回调代理,可通过 QNRemoteAudioTrack.delegate 进行设置,用来实现远端音频 Track 数据及开关静默的回调。
    Index
    Core Methods
    Core Methods
    didGetAudioBuffer
    • - (void)remoteAudioTrack:(QNRemoteAudioTrack *)remoteAudioTrack didGetAudioBuffer:(AudioBuffer *)audioBuffer bitsPerSample:(NSUInteger)bitsPerSample sampleRate:(NSUInteger)sampleRate;
    • 远端音频 Track 的数据回调

      Parameters
      • remoteAudioTrack: QNRemoteAudioTrack

        远端音频 Track

      • audioBuffer: AudioBuffer

        音频数据

      • bitsPerSample: NSUInteger

        音频数据位数

      • sampleRate: NSUInteger

        音频采样率

    didMuteStateChanged
    • - (void)remoteAudioTrack:(QNRemoteAudioTrack *)remoteAudioTrack didMuteStateChanged:(BOOL)isMuted;
    • 远端音频 Track 静默的回调

      Parameters
    以上内容是否对您有帮助?
  • Qvm free helper
    Close