Index: webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java |
diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java |
index 05187a6a3aed4ea6f751807d826f7c5aac05f7a3..fd5bf327edb5fdf09570de6481f150a9c5f28a18 100644 |
--- a/webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java |
+++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java |
@@ -58,6 +58,8 @@ public class CallActivity extends Activity |
"org.appspot.apprtc.VIDEO_HEIGHT"; |
public static final String EXTRA_VIDEO_FPS = |
"org.appspot.apprtc.VIDEO_FPS"; |
+ public static final String EXTRA_VIDEO_CAPTUREQUALITYSLIDER_ENABLED = |
+ "org.appsopt.apprtc.VIDEO_CAPTUREQUALITYSLIDER"; |
public static final String EXTRA_VIDEO_BITRATE = |
"org.appspot.apprtc.VIDEO_BITRATE"; |
public static final String EXTRA_VIDEOCODEC = |
@@ -301,6 +303,13 @@ public class CallActivity extends Activity |
updateVideoView(); |
} |
+ @Override |
+ public void onCaptureFormatChange(int width, int height, int framerate) { |
+ if (peerConnectionClient != null) { |
+ peerConnectionClient.changeCaptureFormat(width, height, framerate); |
+ } |
+ } |
+ |
// Helper functions. |
private void toggleCallControlFragmentVisibility() { |
if (!iceConnected || !callFragment.isAdded()) { |