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

Issue 1655793003: Make cricket::VideoCapturer implement VideoSourceInterface (Closed)

Created:
4 years, 10 months ago by perkj_webrtc
Modified:
4 years, 10 months ago
CC:
webrtc-reviews_webrtc.org
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

This cl introduce a VideoSourceInterface and let cricket::VideoCapturer implement it. Further more, it adds a VideoBroadcaster than is used for delivering frames to multiple sinks. BUG=webrtc:5426 R=nisse@webrtc.org, pthatcher@webrtc.org Committed: https://crrev.com/4d19c5b010473615fa181afa84c6f4b3104e3171 Cr-Commit-Position: refs/heads/master@{#11567}

Patch Set 1 : http://crrev.com/1631703002#ps140001 #

Patch Set 2 : Adding VideoSourceInterface and letting cricket::VideoCapturer implement it #

Total comments: 18

Patch Set 3 : Restarted... #

Patch Set 4 : Fixed Android #

Total comments: 36

Patch Set 5 : AddSink returns Callback #

Patch Set 6 : Rebased #

Patch Set 7 : Rebase only #

Patch Set 8 : Use AddOrUpdateSink #

Patch Set 9 : Addressed comments. #

Total comments: 33

Patch Set 10 : Addressed comments. Removed AddSink #

Total comments: 31

Patch Set 11 : Addressed comments #

Patch Set 12 : rebased #

Patch Set 13 : Revert of the Revert #

Patch Set 14 : Added dummy capturerenderadapter.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -351 lines) Patch
M talk/session/media/channelmanager.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M talk/session/media/channelmanager.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/api/androidvideocapturer.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -3 lines 0 comments Download
M webrtc/api/remotevideocapturer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +0 lines, -18 lines 0 comments Download
M webrtc/media/base/capturemanager.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -4 lines 0 comments Download
M webrtc/media/base/capturemanager.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +11 lines, -45 lines 0 comments Download
M webrtc/media/base/capturerenderadapter.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -58 lines 0 comments Download
M webrtc/media/base/capturerenderadapter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -73 lines 0 comments Download
M webrtc/media/base/fakevideorenderer.h View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -0 lines 0 comments Download
A webrtc/media/base/videobroadcaster.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +60 lines, -0 lines 0 comments Download
A webrtc/media/base/videobroadcaster.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +82 lines, -0 lines 0 comments Download
M webrtc/media/base/videocapturer.h View 1 2 3 4 5 6 7 8 9 10 8 chunks +16 lines, -13 lines 0 comments Download
M webrtc/media/base/videocapturer.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +21 lines, -13 lines 0 comments Download
M webrtc/media/base/videocapturer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 13 chunks +63 lines, -50 lines 0 comments Download
M webrtc/media/base/videoengine_unittest.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -15 lines 0 comments Download
M webrtc/media/base/videosinkinterface.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
A webrtc/media/base/videosourceinterface.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +46 lines, -0 lines 0 comments Download
M webrtc/media/media.gyp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/media/webrtc/webrtcvideocapturer.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -10 lines 0 comments Download
M webrtc/media/webrtc/webrtcvideocapturer.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +7 lines, -12 lines 0 comments Download
M webrtc/media/webrtc/webrtcvideoengine2.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +7 lines, -3 lines 0 comments Download
M webrtc/media/webrtc/webrtcvideoengine2.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +18 lines, -28 lines 0 comments Download

Messages

Total messages: 48 (14 generated)
pthatcher
Most of my comments are minor. I think the big issues left are: 1. There ...
4 years, 10 months ago (2016-02-01 18:40:54 UTC) #3
nisse-webrtc
https://codereview.webrtc.org/1655793003/diff/20001/webrtc/media/base/videosinkinterface.h File webrtc/media/base/videosinkinterface.h (right): https://codereview.webrtc.org/1655793003/diff/20001/webrtc/media/base/videosinkinterface.h#newcode24 webrtc/media/base/videosinkinterface.h:24: virtual VideoSinkCapabilities getCapabilities() { return VideoSinkCapabilities(); } On 2016/02/01 ...
4 years, 10 months ago (2016-02-02 09:52:30 UTC) #5
perkj_webrtc
Thanks for all your feedback. I am sorry if the cl was bit pre-mature when ...
4 years, 10 months ago (2016-02-02 16:24:00 UTC) #6
perkj_webrtc
On 2016/02/02 16:24:00, perkj_webrtc wrote: > Thanks for all your feedback. I am sorry if ...
4 years, 10 months ago (2016-02-02 16:34:47 UTC) #7
pthatcher1
On 2016/02/02 09:52:30, nisse-webrtc wrote: > https://codereview.webrtc.org/1655793003/diff/20001/webrtc/media/base/videosinkinterface.h > File webrtc/media/base/videosinkinterface.h (right): > > https://codereview.webrtc.org/1655793003/diff/20001/webrtc/media/base/videosinkinterface.h#newcode24 > ...
4 years, 10 months ago (2016-02-02 19:29:00 UTC) #8
nisse-webrtc
On 2016/02/02 19:29:00, pthatcher1 wrote: > I think the need for the sink to have ...
4 years, 10 months ago (2016-02-03 08:20:55 UTC) #9
nisse-webrtc
I think this is great progress. I have a couple of comments, we can discuss ...
4 years, 10 months ago (2016-02-03 09:16:34 UTC) #10
pthatcher1
On 2016/02/03 08:20:55, nisse-webrtc wrote: > On 2016/02/02 19:29:00, pthatcher1 wrote: > > I think ...
4 years, 10 months ago (2016-02-03 14:52:41 UTC) #11
perkj_webrtc
On 2016/02/03 14:52:41, pthatcher1 wrote: > On 2016/02/03 08:20:55, nisse-webrtc wrote: > > On 2016/02/02 ...
4 years, 10 months ago (2016-02-03 15:31:51 UTC) #12
pthatcher1
It's looking good. The only thing I don't like is the need to remove and ...
4 years, 10 months ago (2016-02-03 15:38:36 UTC) #14
pthatcher1
> > It make sense - but then we need to keep the mute logic ...
4 years, 10 months ago (2016-02-03 16:06:20 UTC) #15
perkj_webrtc
On 2016/02/03 16:06:20, pthatcher1 wrote: > > > > It make sense - but then ...
4 years, 10 months ago (2016-02-03 16:29:09 UTC) #16
pthatcher1
> > I really don't understand the objection to SignalCapabilitiesChanged. Could > you > > ...
4 years, 10 months ago (2016-02-03 17:33:56 UTC) #17
pthatcher1
> > So.... even though I just said we want to minimize how much sources ...
4 years, 10 months ago (2016-02-03 17:59:12 UTC) #18
perkj_webrtc
On 2016/02/03 17:59:12, pthatcher1 wrote: > > > > So.... even though I just said ...
4 years, 10 months ago (2016-02-03 21:06:57 UTC) #19
pthatcher1
On 2016/02/03 21:06:57, perkj_webrtc wrote: > On 2016/02/03 17:59:12, pthatcher1 wrote: > > > > ...
4 years, 10 months ago (2016-02-03 22:23:55 UTC) #20
nisse-webrtc
On 2016/02/03 17:59:12, pthatcher1 wrote: > 1. If the sink is destroyed on one thread ...
4 years, 10 months ago (2016-02-04 07:51:14 UTC) #21
pthatcher1
On 2016/02/04 07:51:14, nisse-webrtc wrote: > On 2016/02/03 17:59:12, pthatcher1 wrote: > > > 1. ...
4 years, 10 months ago (2016-02-04 17:10:58 UTC) #22
perkj_webrtc
Hi Can you PTAL? I have continued to call hints/wants... VideoSinkHints but I don't have ...
4 years, 10 months ago (2016-02-08 14:32:01 UTC) #23
nisse-webrtc
https://codereview.webrtc.org/1655793003/diff/160001/talk/app/webrtc/videosource.cc File talk/app/webrtc/videosource.cc (right): https://codereview.webrtc.org/1655793003/diff/160001/talk/app/webrtc/videosource.cc#newcode30 talk/app/webrtc/videosource.cc:30: #include <string> Left over change? https://codereview.webrtc.org/1655793003/diff/160001/webrtc/media/base/videobroadcaster.h File webrtc/media/base/videobroadcaster.h (right): ...
4 years, 10 months ago (2016-02-08 14:57:04 UTC) #24
pthatcher1
I like the latest changes. I still think I'd prefer "wants" over "hints". I think ...
4 years, 10 months ago (2016-02-08 20:59:40 UTC) #25
perkj_webrtc
PTAL https://codereview.webrtc.org/1655793003/diff/160001/talk/app/webrtc/videosource.cc File talk/app/webrtc/videosource.cc (right): https://codereview.webrtc.org/1655793003/diff/160001/talk/app/webrtc/videosource.cc#newcode30 talk/app/webrtc/videosource.cc:30: #include <string> On 2016/02/08 14:57:04, nisse-webrtc wrote: > ...
4 years, 10 months ago (2016-02-09 13:23:58 UTC) #28
nisse-webrtc
lgtm, with nits addressed. I've mainly looked at the new code, I don't really follow ...
4 years, 10 months ago (2016-02-09 14:10:55 UTC) #29
pthatcher1
Mostly more naming nits, but I do think the code around finding pairs could be ...
4 years, 10 months ago (2016-02-09 17:13:41 UTC) #30
perkj_webrtc
PTAL https://codereview.webrtc.org/1655793003/diff/200001/webrtc/media/base/videobroadcaster.cc File webrtc/media/base/videobroadcaster.cc (right): https://codereview.webrtc.org/1655793003/diff/200001/webrtc/media/base/videobroadcaster.cc#newcode18 webrtc/media/base/videobroadcaster.cc:18: thread_checker_.DetachFromThread(); On 2016/02/09 14:10:54, nisse-webrtc wrote: > Might ...
4 years, 10 months ago (2016-02-10 10:54:37 UTC) #32
pthatcher1
lgtm https://codereview.webrtc.org/1655793003/diff/200001/webrtc/media/base/videosourceinterface.h File webrtc/media/base/videosourceinterface.h (right): https://codereview.webrtc.org/1655793003/diff/200001/webrtc/media/base/videosourceinterface.h#newcode35 webrtc/media/base/videosourceinterface.h:35: virtual void AddOrUpdateSink(VideoSinkInterface<VideoFrameT>* sink, On 2016/02/10 10:54:36, perkj_webrtc ...
4 years, 10 months ago (2016-02-10 19:29:19 UTC) #33
perkj_webrtc
On 2016/02/10 19:29:19, pthatcher1 wrote: > lgtm > > https://codereview.webrtc.org/1655793003/diff/200001/webrtc/media/base/videosourceinterface.h > File webrtc/media/base/videosourceinterface.h (right): > ...
4 years, 10 months ago (2016-02-10 22:02:43 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1655793003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1655793003/260001
4 years, 10 months ago (2016-02-11 07:51:11 UTC) #37
commit-bot: I haz the power
Committed patchset #12 (id:260001)
4 years, 10 months ago (2016-02-11 07:55:26 UTC) #39
perkj_webrtc
A revert of this CL (patchset #12 id:260001) has been created in https://codereview.webrtc.org/1687273002/ by perkj@webrtc.org. ...
4 years, 10 months ago (2016-02-11 09:19:57 UTC) #40
perkj_webrtc
Committed patchset #14 (id:300001) manually as 4d19c5b010473615fa181afa84c6f4b3104e3171 (presubmit successful).
4 years, 10 months ago (2016-02-11 10:06:25 UTC) #43
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/2f21789b4be6f17b0f39ba18b2ffc93608b0e789 Cr-Commit-Position: refs/heads/master@{#11563}
4 years, 10 months ago (2016-02-11 10:40:50 UTC) #45
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/4d19c5b010473615fa181afa84c6f4b3104e3171 Cr-Commit-Position: refs/heads/master@{#11567}
4 years, 10 months ago (2016-02-11 10:40:57 UTC) #47
perkj_webrtc
4 years, 10 months ago (2016-02-11 10:56:02 UTC) #48
Message was sent while issue was closed.
A revert of this CL (patchset #14 id:300001) has been created in
https://codereview.webrtc.org/1690893002/ by perkj@webrtc.org.

The reason for reverting is: Needs to revert again unfortunately. 
There are multiple implementations in Chrome of cricket::VideoCapturer. 

One is ./../remoting/protocol/webrtc_video_capturer_adapter.cc...

https://build.chromium.org/p/chromium.webrtc.fyi/builders/Mac%20Builder/build...


Fun times - I will have to modify this cl after trying it manually out in
Chrome..

Powered by Google App Engine
This is Rietveld 408576698