Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Issue 1422023007: Attempt to open Android camera later if it is already in use. (Closed)

Created:
5 years, 1 month ago by perkj_webrtc
Modified:
5 years, 1 month ago
Reviewers:
AlexG
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Attempt to open Android camera later if it is already in use. This change VideoCapturerAndroid to attempt 3 times with a period of 300ms to open the camera if it fails. This is so that if another application have it already opened, it would have more time to release it. BUG=b/25190234 Committed: https://crrev.com/89ef6cc13e8aa9f16b212dd82124f4297a1f7385 Cr-Commit-Position: refs/heads/master@{#10559}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments. #

Patch Set 3 : Rebased #

Patch Set 4 : Removed unused code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -13 lines) Patch
M talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java View 1 2 3 3 chunks +35 lines, -2 lines 0 comments Download
M talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTestFixtures.java View 1 2 2 chunks +66 lines, -0 lines 0 comments Download
M talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java View 1 2 7 chunks +46 lines, -11 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
perkj_webrtc
Can you please review?
5 years, 1 month ago (2015-11-05 20:19:04 UTC) #3
AlexG
lgtm https://codereview.webrtc.org/1422023007/diff/1/talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java File talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java (right): https://codereview.webrtc.org/1422023007/diff/1/talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java#newcode464 talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java:464: cameraThreadHandler.postDelayed(openCameraOnCodecThreadRunner, OPEN_CAMERA_DELAY_MS); nit: may be loop will be ...
5 years, 1 month ago (2015-11-06 18:07:17 UTC) #4
perkj_webrtc
https://codereview.webrtc.org/1422023007/diff/1/talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java File talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java (right): https://codereview.webrtc.org/1422023007/diff/1/talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java#newcode464 talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java:464: cameraThreadHandler.postDelayed(openCameraOnCodecThreadRunner, OPEN_CAMERA_DELAY_MS); On 2015/11/06 18:07:17, AlexG wrote: > nit: ...
5 years, 1 month ago (2015-11-09 07:38:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1422023007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1422023007/20001
5 years, 1 month ago (2015-11-09 07:39:15 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_dbg/builds/10609) ios_rel on tryserver.webrtc (JOB_FAILED, ...
5 years, 1 month ago (2015-11-09 07:40:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1422023007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1422023007/60001
5 years, 1 month ago (2015-11-09 08:45:23 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-09 09:35:24 UTC) #14
commit-bot: I haz the power
5 years, 1 month ago (2015-11-09 09:35:35 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/89ef6cc13e8aa9f16b212dd82124f4297a1f7385
Cr-Commit-Position: refs/heads/master@{#10559}

Powered by Google App Engine
This is Rietveld 408576698