Changes in VideoCapturerAndroid.

- Do not handle more than one camera switch request at a time
to avoid blocking camera thread with multiple switch requests.
- Add a callback to notify when camera switch has been done.

R=perkj@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#8978}
This commit is contained in:
Alex Glaznev
2015-04-10 11:19:52 -07:00
parent f4acf46c86
commit e4ae8d8558
3 changed files with 25 additions and 7 deletions

View File

@@ -818,7 +818,7 @@ public class PeerConnectionClient {
return; // No video is sent or only one camera is available or error happened.
}
Log.d(TAG, "Switch camera");
videoCapturer.switchCamera();
videoCapturer.switchCamera(null);
}
public void switchCamera() {