| Index: webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java
|
| diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java
|
| index 77e78c4a2231da776b48ce2ceaa32945f2d25447..5f17052562fd49302b5da7de3ac6e18ed1bf821f 100644
|
| --- a/webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java
|
| +++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java
|
| @@ -127,6 +127,7 @@ public class PeerConnectionClient {
|
| public static class PeerConnectionParameters {
|
| public final boolean videoCallEnabled;
|
| public final boolean loopback;
|
| + public final boolean tracing;
|
| public final int videoWidth;
|
| public final int videoHeight;
|
| public final int videoFps;
|
| @@ -140,13 +141,14 @@ public class PeerConnectionClient {
|
| public final boolean useOpenSLES;
|
|
|
| public PeerConnectionParameters(
|
| - boolean videoCallEnabled, boolean loopback,
|
| + boolean videoCallEnabled, boolean loopback, boolean tracing,
|
| int videoWidth, int videoHeight, int videoFps, int videoStartBitrate,
|
| String videoCodec, boolean videoCodecHwAcceleration, boolean captureToTexture,
|
| int audioStartBitrate, String audioCodec,
|
| boolean noAudioProcessing, boolean useOpenSLES) {
|
| this.videoCallEnabled = videoCallEnabled;
|
| this.loopback = loopback;
|
| + this.tracing = tracing;
|
| this.videoWidth = videoWidth;
|
| this.videoHeight = videoHeight;
|
| this.videoFps = videoFps;
|
| @@ -284,6 +286,10 @@ public class PeerConnectionClient {
|
| }
|
|
|
| private void createPeerConnectionFactoryInternal(Context context) {
|
| + PeerConnectionFactory.initializeInternalTracer();
|
| + if (peerConnectionParameters.tracing) {
|
| + PeerConnectionFactory.startInternalTracingCapture("/mnt/sdcard/webrtc-trace.txt");
|
| + }
|
| Log.d(TAG, "Create peer connection factory. Use video: " +
|
| peerConnectionParameters.videoCallEnabled);
|
| isError = false;
|
| @@ -501,6 +507,8 @@ public class PeerConnectionClient {
|
| options = null;
|
| Log.d(TAG, "Closing peer connection done.");
|
| events.onPeerConnectionClosed();
|
| + PeerConnectionFactory.stopInternalTracingCapture();
|
| + PeerConnectionFactory.shutdownInternalTracer();
|
| }
|
|
|
| public boolean isHDVideo() {
|
|
|