PeerConnection(java): added MediaConstraints support to AudioSource, now fed to AudioTrack.

BUG=2912
R=wu@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/8509004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5540 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
fischman@webrtc.org
2014-02-13 04:01:04 +00:00
parent 540acde5b3
commit 3eda643a91
4 changed files with 33 additions and 9 deletions

View File

@@ -242,7 +242,9 @@ public class AppRTCDemoActivity extends Activity
lMS.addTrack(videoTrack);
}
if (appRtcClient.audioConstraints() != null) {
lMS.addTrack(factory.createAudioTrack("ARDAMSa0"));
lMS.addTrack(factory.createAudioTrack(
"ARDAMSa0",
factory.createAudioSource(appRtcClient.audioConstraints())));
}
pc.addStream(lMS, new MediaConstraints());
}