AppRTCDemo(android): allow audio-only calls to test iOS interop
R=wu@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2091004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4598 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
44af55cc44
commit
d26f791273
@ -327,11 +327,13 @@ public class AppRTCDemoActivity extends Activity
|
|||||||
@Override public void onAddStream(final MediaStream stream){
|
@Override public void onAddStream(final MediaStream stream){
|
||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
abortUnless(stream.audioTracks.size() == 1 &&
|
abortUnless(stream.audioTracks.size() <= 1 &&
|
||||||
stream.videoTracks.size() == 1,
|
stream.videoTracks.size() <= 1,
|
||||||
"Weird-looking stream: " + stream);
|
"Weird-looking stream: " + stream);
|
||||||
stream.videoTracks.get(0).addRenderer(new VideoRenderer(
|
if (stream.videoTracks.size() == 1) {
|
||||||
new VideoCallbacks(vsv, VideoStreamsView.Endpoint.REMOTE)));
|
stream.videoTracks.get(0).addRenderer(new VideoRenderer(
|
||||||
|
new VideoCallbacks(vsv, VideoStreamsView.Endpoint.REMOTE)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user