title: Custom audio device in android WebRTC using libjingle
body: <p>I am developing native android WebRTC client that is suppoded to stream audio from custom device (I am getting audio stream via Bluetooth from that device). I am using libjingle library to implement WebRTC and I wonder if and how it is possible to hook up custom audio stream to audio track?</p>
  
  <p>Currently I am adding default audio track like this:</p>
  
  <pre><code>localMS = factory.createLocalMediaStream("ARDAMS");
  
  AudioSource audioSource = factory.createAudioSource(new MediaConstraints());
  localMS.addTrack(factory.createAudioTrack("ARDAMSa0", audioSource));
  </code></pre>
  
  <p>I saw that there is WebRtcAuidioRecord (<a href="https://github.com/pristineio/webrtc-android/blob/master/libjingle_peerconnection/src/main/java/org/webrtc/voiceengine/WebRtcAudioRecord.java" rel="nofollow noreferrer">https://github.com/pristineio/webrtc-android/blob/master/libjingle_peerconnection/src/main/java/org/webrtc/voiceengine/WebRtcAudioRecord.java</a>) - is it possible to override it?</p>
  
  <p>Anybody tried doing something like that?</p>