webrtc-android播放声音

找了好久,没找到API,真想吐槽文档匮乏&demo代码混乱。。。

  /**
   * Enables/disables playout of received audio streams. Enabled by default.
   *
   * Note that even if playout is enabled, streams will only be played out if
   * the appropriate SDP is also applied. The main purpose of this API is to
   * be able to control the exact time when audio playout starts.
   */
  public void setAudioPlayout(boolean playout) {
    nativeSetAudioPlayout(playout);
  }

参考:https://github.com/WebKit/webkit/blob/master/Source/ThirdParty/libwebrtc/Source/webrtc/sdk/android/api/org/webrtc/PeerConnection.java

你可能感兴趣的:(Android,webrtc)