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

Issue 1522903002: Add a 'remote' property to MediaSourceInterface. Also adding an implementation to the relevant sour… (Closed)

Created:
5 years ago by tommi
Modified:
5 years ago
Reviewers:
perkj_webrtc
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

Add a 'remote' property to MediaSourceInterface. Also adding an implementation to the relevant sources we have (audio/video) and an extra check where we're casting a source into a local audio source :( Additionally: * Moving all implementation inside RemoteAudioTrack into AudioTrack and remove RemoteAudioTrack. * AddSink/RemoveSink are now on all audio sources (like they are for video sources). While doing this I found that some of our tests are broken :) and fixed them. They were broken because AudioTrack didn't previously do much such as updating its state. BUG=chromium:569526 Committed: https://crrev.com/6eca7e3c371383020095ba346e1ac70f38a8c0fd Cr-Commit-Position: refs/heads/master@{#11026}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix tests #

Patch Set 3 : Remove DCHECK and add a check+comment for CreateAudioTrack #

Patch Set 4 : Relax source check and add AddSink/RemoveSink to audio sources #

Patch Set 5 : Copy all the implementation from RemoteAudioTrack to AudioTrack and fix tests for AudioTrack #

Patch Set 6 : Remove code from RemoteAudioTrack and switch usage over to AudioTrack #

Patch Set 7 : Format #

Total comments: 6

Patch Set 8 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -203 lines) Patch
M talk/app/webrtc/audiotrack.h View 1 2 3 4 1 chunk +25 lines, -18 lines 0 comments Download
M talk/app/webrtc/audiotrack.cc View 1 2 3 4 5 6 7 1 chunk +64 lines, -9 lines 0 comments Download
M talk/app/webrtc/localaudiosource.h View 1 2 3 1 chunk +8 lines, -7 lines 0 comments Download
M talk/app/webrtc/mediastream_unittest.cc View 1 2 3 4 3 chunks +17 lines, -5 lines 0 comments Download
M talk/app/webrtc/mediastreaminterface.h View 1 2 3 4 5 6 7 4 chunks +18 lines, -13 lines 0 comments Download
M talk/app/webrtc/peerconnection.cc View 1 2 3 4 5 3 chunks +2 lines, -3 lines 0 comments Download
M talk/app/webrtc/peerconnectionfactory.cc View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M talk/app/webrtc/remoteaudiosource.h View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M talk/app/webrtc/remoteaudiosource.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M talk/app/webrtc/remoteaudiotrack.h View 1 2 3 4 5 1 chunk +1 line, -50 lines 0 comments Download
M talk/app/webrtc/remoteaudiotrack.cc View 1 2 3 4 5 1 chunk +1 line, -68 lines 0 comments Download
M talk/app/webrtc/rtpreceiver.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M talk/app/webrtc/rtpsender.cc View 1 chunk +2 lines, -1 line 0 comments Download
M talk/app/webrtc/rtpsenderreceiver_unittest.cc View 1 2 3 4 5 13 chunks +19 lines, -6 lines 0 comments Download
M talk/app/webrtc/videosource.h View 3 chunks +8 lines, -3 lines 0 comments Download
M talk/app/webrtc/videosource.cc View 1 chunk +8 lines, -6 lines 0 comments Download
M talk/app/webrtc/videosource_unittest.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M talk/app/webrtc/videosourceproxy.h View 1 chunk +1 line, -0 lines 0 comments Download
M talk/app/webrtc/videotrack_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M talk/libjingle.gyp View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
tommi
5 years ago (2015-12-14 13:43:21 UTC) #2
perkj_webrtc
Looks like you have a unit test to fix. https://codereview.webrtc.org/1522903002/diff/1/talk/app/webrtc/peerconnectionfactory.cc File talk/app/webrtc/peerconnectionfactory.cc (right): https://codereview.webrtc.org/1522903002/diff/1/talk/app/webrtc/peerconnectionfactory.cc#newcode333 talk/app/webrtc/peerconnectionfactory.cc:333: ...
5 years ago (2015-12-14 15:55:03 UTC) #3
tommi
Fix tests
5 years ago (2015-12-14 16:15:06 UTC) #4
tommi
https://codereview.webrtc.org/1522903002/diff/1/talk/app/webrtc/peerconnectionfactory.cc File talk/app/webrtc/peerconnectionfactory.cc (right): https://codereview.webrtc.org/1522903002/diff/1/talk/app/webrtc/peerconnectionfactory.cc#newcode333 talk/app/webrtc/peerconnectionfactory.cc:333: RTC_DCHECK(!source || !source->remote()); On 2015/12/14 15:55:03, perkj1 wrote: > ...
5 years ago (2015-12-14 16:38:25 UTC) #5
tommi
Remove DCHECK and add a check+comment for CreateAudioTrack
5 years ago (2015-12-14 16:39:53 UTC) #6
tommi
Relax source check and add AddSink/RemoveSink to audio sources
5 years ago (2015-12-14 16:57:48 UTC) #7
tommi
Copy all the implementation from RemoteAudioTrack to AudioTrack and fix tests for AudioTrack
5 years ago (2015-12-14 23:01:01 UTC) #8
tommi
Remove code from RemoteAudioTrack and switch usage over to AudioTrack
5 years ago (2015-12-14 23:05:54 UTC) #9
tommi
Format
5 years ago (2015-12-14 23:11:54 UTC) #10
tommi
OK, so I decided to do away with RemoteAudioTrack and fully implement AudioTrack instead. AddSink/RemoveSink ...
5 years ago (2015-12-14 23:15:16 UTC) #11
perkj_webrtc
lgtm Nice https://codereview.webrtc.org/1522903002/diff/120001/talk/app/webrtc/audiotrack.cc File talk/app/webrtc/audiotrack.cc (right): https://codereview.webrtc.org/1522903002/diff/120001/talk/app/webrtc/audiotrack.cc#newcode100 talk/app/webrtc/audiotrack.cc:100: if (audio_source_->state() == MediaSourceInterface::kEnded) Should we allow ...
5 years ago (2015-12-15 10:15:32 UTC) #13
tommi
Address comments
5 years ago (2015-12-15 11:00:46 UTC) #14
tommi
https://codereview.webrtc.org/1522903002/diff/120001/talk/app/webrtc/audiotrack.cc File talk/app/webrtc/audiotrack.cc (right): https://codereview.webrtc.org/1522903002/diff/120001/talk/app/webrtc/audiotrack.cc#newcode100 talk/app/webrtc/audiotrack.cc:100: if (audio_source_->state() == MediaSourceInterface::kEnded) On 2015/12/15 10:15:31, perkj1 wrote: ...
5 years ago (2015-12-15 11:00:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1522903002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1522903002/140001
5 years ago (2015-12-15 11:01:25 UTC) #18
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years ago (2015-12-15 12:27:15 UTC) #20
commit-bot: I haz the power
5 years ago (2015-12-15 12:27:26 UTC) #22
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/6eca7e3c371383020095ba346e1ac70f38a8c0fd
Cr-Commit-Position: refs/heads/master@{#11026}

Powered by Google App Engine
This is Rietveld 408576698