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

Issue 1140113002: Implement screen capture for android (Closed)

Created:
5 years, 7 months ago by jiajia.qin
Modified:
4 years, 4 months ago
CC:
avayvod+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, mark a. foltz, miu+watch_chromium.org, posciak+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement screen capture for android This CL adds screen capture support for android. The screen data is captured by android.media.projection APIs. In this CL, a new class ScreenCapturerAndroid is created which is inherited from webrtc::ScreenCapturer. BUG=487935

Patch Set 1 #

Total comments: 13

Patch Set 2 : make ScreenCapturerAndroid inherit VideoCaptureDevice #

Total comments: 5

Patch Set 3 : Add ScreenCaptureMachineAndroid which inherited from content::VideoCaptureMachine #

Total comments: 17
Unified diffs Side-by-side diffs Delta from patch set Stats (+773 lines, -47 lines) Patch
M base/android/java/src/org/chromium/base/BaseChromiumApplication.java View 1 2 3 chunks +6 lines, -0 lines 1 comment Download
M chrome/browser/media/media_capture_devices_dispatcher.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/media/capture/aura_window_capture_machine.h View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/media/capture/aura_window_capture_machine.cc View 1 2 2 chunks +25 lines, -2 lines 1 comment Download
M content/browser/media/capture/content_video_capture_device_core.h View 1 2 2 chunks +10 lines, -10 lines 0 comments Download
M content/browser/media/capture/content_video_capture_device_core.cc View 1 2 5 chunks +9 lines, -28 lines 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device.cc View 1 2 4 chunks +31 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 2 2 chunks +8 lines, -0 lines 1 comment Download
M content/content_browser.gypi View 1 chunk +1 line, -1 line 0 comments Download
M media/BUILD.gn View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M media/base/android/BUILD.gn View 1 1 chunk +8 lines, -0 lines 0 comments Download
A media/base/android/java/src/org/chromium/media/ScreenCapture.java View 1 2 1 chunk +234 lines, -0 lines 8 comments Download
A media/base/android/java/src/org/chromium/media/ScreenCaptureFactory.java View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M media/base/android/media_jni_registrar.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 2 chunks +24 lines, -0 lines 1 comment Download
A + media/screen_capture/android/DEPS View 1 2 1 chunk +1 line, -1 line 1 comment Download
A media/screen_capture/android/screen_capture_device_android.h View 1 2 1 chunk +33 lines, -0 lines 2 comments Download
A media/screen_capture/android/screen_capture_device_android.cc View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A media/screen_capture/android/screen_capture_factory_android.h View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A media/screen_capture/android/screen_capture_factory_android.cc View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A media/screen_capture/android/screen_capture_machine_android.h View 1 2 1 chunk +65 lines, -0 lines 0 comments Download
A media/screen_capture/android/screen_capture_machine_android.cc View 1 2 1 chunk +159 lines, -0 lines 2 comments Download

Messages

Total messages: 35 (8 generated)
jiajia.qin
Hi, this is a rough version. Currently, the screen data can be shown correctly using ...
5 years, 7 months ago (2015-05-14 06:46:58 UTC) #2
DaleCurtis
sergeyu,darin, wolenetz, me, +mfoltz -> cc +miu, qinmin as reviewers.
5 years, 7 months ago (2015-05-14 16:13:34 UTC) #4
miu
Note: Please read the LAST comment first, as it may invalidate many of the earlier ...
5 years, 7 months ago (2015-05-20 03:33:27 UTC) #6
jiajia.qin
https://codereview.chromium.org/1140113002/diff/1/media/screen_capture/android/screen_capturer_android.h File media/screen_capture/android/screen_capturer_android.h (right): https://codereview.chromium.org/1140113002/diff/1/media/screen_capture/android/screen_capturer_android.h#newcode18 media/screen_capture/android/screen_capturer_android.h:18: class ScreenCapturerAndroid : public webrtc::ScreenCapturer { On 2015/05/20 03:33:27, ...
5 years, 7 months ago (2015-05-20 12:07:16 UTC) #7
mark a. foltz
+avayvod for Cast and +sergeyu for general review of desktop capture code - Is this ...
5 years, 7 months ago (2015-05-20 15:01:29 UTC) #9
jiajia.qin
On 2015/05/20 15:01:29, mfoltz_ooo_until_5-26 wrote: > +avayvod for Cast and +sergeyu for general review of ...
5 years, 7 months ago (2015-05-21 01:31:38 UTC) #10
Sergey Ulanov
On Wed, May 20, 2015 at 6:31 PM, <jiajia.qin@intel.com> wrote: > On 2015/05/20 15:01:29, mfoltz_ooo_until_5-26 ...
5 years, 7 months ago (2015-05-21 21:50:16 UTC) #12
jiajia.qin
On 2015/05/21 21:50:16, Sergey Ulanov wrote: > On Wed, May 20, 2015 at 6:31 PM, ...
5 years, 7 months ago (2015-05-22 02:14:48 UTC) #13
mcasas
https://codereview.chromium.org/1140113002/diff/20001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/1140113002/diff/20001/content/browser/renderer_host/media/video_capture_manager.cc#newcode424 content/browser/renderer_host/media/video_capture_manager.cc:424: if (desktop_id.type == DesktopMediaID::TYPE_SCREEN) { indent. No need for ...
5 years, 7 months ago (2015-05-22 02:30:59 UTC) #15
jiajia.qin
On 2015/05/22 02:30:59, mcasas wrote: > https://codereview.chromium.org/1140113002/diff/20001/media/screen_capture/android/screen_capturer2_android.h#newcode21 > media/screen_capture/android/screen_capturer2_android.h:21: class > ScreenCapturer2Android : public VideoCaptureDevice ...
5 years, 7 months ago (2015-05-22 02:46:25 UTC) #16
jiajia.qin
On 2015/05/22 02:46:25, jiajia.qin wrote: > On 2015/05/22 02:30:59, mcasas wrote: > > > > ...
5 years, 7 months ago (2015-05-22 03:21:28 UTC) #17
jiajia.qin
Hi, miu. Currently, I am trying to refactor my patch with your suggestion. Create a ...
5 years, 7 months ago (2015-05-22 09:59:14 UTC) #18
mcasas
On 2015/05/22 02:46:25, jiajia.qin wrote: > On 2015/05/22 02:30:59, mcasas wrote: > > > > ...
5 years, 7 months ago (2015-05-22 15:27:26 UTC) #19
miu
On 2015/05/22 09:59:14, jiajia.qin wrote: > However, I met a problem. I found that ThreadSafeCaptureOracle ...
5 years, 7 months ago (2015-05-22 23:41:20 UTC) #20
jiajia.qin
Ping miu I have refactored the code as you suggested. But I did some change ...
5 years, 7 months ago (2015-05-27 03:45:06 UTC) #21
Sergey Ulanov
On 2015/05/22 02:14:48, jiajia.qin wrote: > On 2015/05/21 21:50:16, Sergey Ulanov wrote: > > On ...
5 years, 7 months ago (2015-05-27 19:36:31 UTC) #22
jiajia.qin
> > > On Android there are no extensions, so this feature > > > ...
5 years, 7 months ago (2015-05-28 03:19:05 UTC) #23
jiajia.qin
Hi, miu I plan to move content_video_capture_device_core.h from src/content to src/media so that the class ...
5 years, 6 months ago (2015-05-28 10:51:26 UTC) #24
Sergey Ulanov
On 2015/05/28 03:19:05, jiajia.qin wrote: > > > > On Android there are no extensions, ...
5 years, 6 months ago (2015-06-01 21:34:26 UTC) #25
jiajia.qin
> > > > I can implement this feature with twice prompts. The first time ...
5 years, 6 months ago (2015-06-04 05:47:54 UTC) #26
jiajia.qin
Hi, Sergey There is no any feedback since my last reply. I also pasted the ...
5 years, 6 months ago (2015-06-18 08:00:34 UTC) #27
mcasas
Seeing that you're still moving things around I'm going to hold my review, but one ...
5 years, 6 months ago (2015-06-19 23:22:23 UTC) #28
miu
On 2015/06/19 at 23:22:23, mcasas wrote: > What I'd suggest is a larger refactoring in ...
5 years, 6 months ago (2015-06-22 20:11:07 UTC) #29
vashisthg
https://codereview.chromium.org/1140113002/diff/20001/media/base/android/java/src/org/chromium/media/ScreenCapture.java File media/base/android/java/src/org/chromium/media/ScreenCapture.java (right): https://codereview.chromium.org/1140113002/diff/20001/media/base/android/java/src/org/chromium/media/ScreenCapture.java#newcode99 media/base/android/java/src/org/chromium/media/ScreenCapture.java:99: ScreenCapture(Context context, long nativeScreenCapturer2Android) { Why does this fragment ...
5 years, 4 months ago (2015-08-11 11:35:06 UTC) #31
whywhat
https://codereview.chromium.org/1140113002/diff/40001/base/android/java/src/org/chromium/base/BaseChromiumApplication.java File base/android/java/src/org/chromium/base/BaseChromiumApplication.java (right): https://codereview.chromium.org/1140113002/diff/40001/base/android/java/src/org/chromium/base/BaseChromiumApplication.java#newcode42 base/android/java/src/org/chromium/base/BaseChromiumApplication.java:42: mActivity = activity; One should use the ApplicationStatus.getLastTrackedFocusedActivity for ...
5 years, 4 months ago (2015-08-17 13:58:46 UTC) #32
jiajia.qin
Thanks all of yours review. Currently, I am busy on other things. But I hope ...
5 years, 4 months ago (2015-08-18 09:08:00 UTC) #33
renyuzhuo
4 years, 4 months ago (2016-08-10 10:02:24 UTC) #35
Message was sent while issue was closed.
i can't get the code, where is the jni/ScreenCapture_jni.h,thank you!

https://codereview.chromium.org/1140113002/diff/1/media/screen_capture/androi...
File media/screen_capture/android/screen_capturer_android.cc (right):

https://codereview.chromium.org/1140113002/diff/1/media/screen_capture/androi...
media/screen_capture/android/screen_capturer_android.cc:10: #include
"jni/ScreenCapture_jni.h"
where is the jni/ScreenCapture_jni.h,thank you!

Powered by Google App Engine
This is Rietveld 408576698