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

Issue 2052723002: Adding an interface to allow extention of the audio player for CRD and iOS. (Closed)

Created:
4 years, 6 months ago by nicholss
Modified:
4 years, 6 months ago
Reviewers:
Sergey Ulanov, Lambros
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding an interface to allow extension of the audio player for CRD and iOS. This CL changes the audio player for CRD into a consumer of audio packets. The choice of consumer is based on a consumer/provider pattern, the intent is to create a new class that will be used in iOS in a following CL that acts as a middle buffer between the CRD Client and the iOS audio player which will extend both AudioConsumer and AudioProvider(not in this CL). Because of this change, I needed the current usage of audio player to extend from a more generic interface (AudioConsumer) which could apply to either this future buffer or audio player. BUG=611181 TEST=Manual tested webapp client. R=lambroslambrou@chromium.org Committed: https://crrev.com/eea69600e07c1d402758d8dd03f5579caddde736 Cr-Commit-Position: refs/heads/master@{#400776}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Add default constructor to AudioConsumer. #

Total comments: 8

Patch Set 3 : Minor updates based on CL feedback. Thanks! #

Total comments: 9

Patch Set 4 : git cl try found some compile issues, fixing. #

Patch Set 5 : Ran git cl format. #

Total comments: 2

Patch Set 6 : Forward Declare Audio Packet. #

Patch Set 7 : Defining deconstructor for AudioConsumer. #

Patch Set 8 : Cleanup, changing queue to be std::list<std::unique_ptr<AudioPacket>>. #

Patch Set 9 : Missed a delete call. #

Total comments: 5

Patch Set 10 : Remove default constructor from AudioConsumer. #

Patch Set 11 : Adding a unit test for Decoder. #

Total comments: 12

Patch Set 12 : Adding WeakPtr for audio consumer. #

Total comments: 3

Patch Set 13 : Cleaning up from comments provided. #

Total comments: 24

Patch Set 14 : Adding missing dep on proto for test. #

Total comments: 14

Patch Set 15 : Addressing comments in CL. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -70 lines) Patch
M remoting/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M remoting/client/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +17 lines, -0 lines 0 comments Download
A remoting/client/audio_consumer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +24 lines, -0 lines 0 comments Download
M remoting/client/audio_decode_scheduler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -2 lines 0 comments Download
M remoting/client/audio_decode_scheduler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +11 lines, -18 lines 0 comments Download
A remoting/client/audio_decode_scheduler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +104 lines, -0 lines 0 comments Download
M remoting/client/audio_player.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -4 lines 0 comments Download
M remoting/client/audio_player.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +5 lines, -9 lines 0 comments Download
M remoting/client/audio_player_android.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -0 lines 0 comments Download
M remoting/client/audio_player_android.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -1 line 0 comments Download
M remoting/client/audio_player_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +12 lines, -12 lines 0 comments Download
M remoting/client/chromoting_client.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +5 lines, -4 lines 0 comments Download
M remoting/client/chromoting_client.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -4 lines 0 comments Download
A remoting/client/fake_audio_consumer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +36 lines, -0 lines 0 comments Download
A remoting/client/fake_audio_consumer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +24 lines, -0 lines 0 comments Download
M remoting/client/jni/chromoting_jni_instance.h View 4 chunks +6 lines, -3 lines 0 comments Download
M remoting/client/jni/chromoting_jni_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -4 lines 0 comments Download
M remoting/client/jni/chromoting_jni_runtime.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M remoting/client/plugin/chromoting_instance.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -4 lines 0 comments Download
M remoting/client/plugin/pepper_audio_player.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -0 lines 0 comments Download
M remoting/client/plugin/pepper_audio_player.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -3 lines 0 comments Download
M remoting/remoting_srcs.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (6 generated)
nicholss
https://codereview.chromium.org/2052723002/diff/1/remoting/client/audio_player.cc File remoting/client/audio_player.cc (right): https://codereview.chromium.org/2052723002/diff/1/remoting/client/audio_player.cc#newcode30 remoting/client/audio_player.cc:30: void AudioPlayer::AddAudioPacket(std::unique_ptr<AudioPacket> packet) { Add vs Process is to ...
4 years, 6 months ago (2016-06-09 17:26:39 UTC) #1
Lambros
https://codereview.chromium.org/2052723002/diff/1/remoting/client/audio_player.h File remoting/client/audio_player.h (right): https://codereview.chromium.org/2052723002/diff/1/remoting/client/audio_player.h#newcode32 remoting/client/audio_player.h:32: ~AudioPlayer() override; On 2016/06/09 17:26:39, nicholss wrote: > Maybe ...
4 years, 6 months ago (2016-06-09 19:01:05 UTC) #2
nicholss
https://codereview.chromium.org/2052723002/diff/1/remoting/client/jni/chromoting_jni_instance.h File remoting/client/jni/chromoting_jni_instance.h (right): https://codereview.chromium.org/2052723002/diff/1/remoting/client/jni/chromoting_jni_instance.h#newcode183 remoting/client/jni/chromoting_jni_instance.h:183: std::unique_ptr<AudioPlayerAndroid> audio_player_; On 2016/06/09 19:01:05, Lambros wrote: > On ...
4 years, 6 months ago (2016-06-09 19:46:30 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/2052723002/diff/1/remoting/client/jni/chromoting_jni_instance.h File remoting/client/jni/chromoting_jni_instance.h (right): https://codereview.chromium.org/2052723002/diff/1/remoting/client/jni/chromoting_jni_instance.h#newcode183 remoting/client/jni/chromoting_jni_instance.h:183: std::unique_ptr<AudioPlayerAndroid> audio_player_; On 2016/06/09 19:46:30, nicholss wrote: > On ...
4 years, 6 months ago (2016-06-09 20:23:45 UTC) #5
Lambros
https://codereview.chromium.org/2052723002/diff/20001/remoting/client/plugin/chromoting_instance.h File remoting/client/plugin/chromoting_instance.h (right): https://codereview.chromium.org/2052723002/diff/20001/remoting/client/plugin/chromoting_instance.h#newcode252 remoting/client/plugin/chromoting_instance.h:252: std::unique_prt<PepperAudioPlayer> audio_player_; On 2016/06/09 19:46:30, nicholss wrote: > On ...
4 years, 6 months ago (2016-06-09 20:52:08 UTC) #6
nicholss
With this current class structure I am getting the following error, I am not sure ...
4 years, 6 months ago (2016-06-09 20:57:10 UTC) #7
nicholss
4 years, 6 months ago (2016-06-09 21:11:18 UTC) #8
Sergey Ulanov
https://codereview.chromium.org/2052723002/diff/1/remoting/client/audio_player.h File remoting/client/audio_player.h (right): https://codereview.chromium.org/2052723002/diff/1/remoting/client/audio_player.h#newcode55 remoting/client/audio_player.h:55: typedef std::list<AudioPacket*> AudioPacketQueue; BTW, this can be changed to ...
4 years, 6 months ago (2016-06-09 21:11:44 UTC) #9
nicholss
https://codereview.chromium.org/2052723002/diff/1/remoting/client/audio_player.h File remoting/client/audio_player.h (right): https://codereview.chromium.org/2052723002/diff/1/remoting/client/audio_player.h#newcode55 remoting/client/audio_player.h:55: typedef std::list<AudioPacket*> AudioPacketQueue; On 2016/06/09 21:11:44, Sergey Ulanov wrote: ...
4 years, 6 months ago (2016-06-10 16:57:57 UTC) #10
Sergey Ulanov
https://codereview.chromium.org/2052723002/diff/1/remoting/client/audio_player.h File remoting/client/audio_player.h (right): https://codereview.chromium.org/2052723002/diff/1/remoting/client/audio_player.h#newcode55 remoting/client/audio_player.h:55: typedef std::list<AudioPacket*> AudioPacketQueue; On 2016/06/10 16:57:57, nicholss wrote: > ...
4 years, 6 months ago (2016-06-14 17:51:09 UTC) #11
nicholss
PTAL. Thanks!! https://codereview.chromium.org/2052723002/diff/80001/remoting/client/audio_consumer.h File remoting/client/audio_consumer.h (right): https://codereview.chromium.org/2052723002/diff/80001/remoting/client/audio_consumer.h#newcode16 remoting/client/audio_consumer.h:16: virtual ~AudioConsumer(); On 2016/06/09 21:11:44, Sergey Ulanov ...
4 years, 6 months ago (2016-06-15 21:07:26 UTC) #12
Lambros
This basically looks fine - my only concern is the ownership change. I'd be happier ...
4 years, 6 months ago (2016-06-15 22:13:50 UTC) #13
nicholss
https://codereview.chromium.org/2052723002/diff/160001/remoting/client/audio_consumer.h File remoting/client/audio_consumer.h (right): https://codereview.chromium.org/2052723002/diff/160001/remoting/client/audio_consumer.h#newcode21 remoting/client/audio_consumer.h:21: AudioConsumer() {}; On 2016/06/15 22:13:49, Lambros wrote: > As ...
4 years, 6 months ago (2016-06-15 22:42:48 UTC) #14
Lambros
On 2016/06/15 22:42:48, nicholss wrote: > https://codereview.chromium.org/2052723002/diff/160001/remoting/client/audio_consumer.h > File remoting/client/audio_consumer.h (right): > > https://codereview.chromium.org/2052723002/diff/160001/remoting/client/audio_consumer.h#newcode21 > ...
4 years, 6 months ago (2016-06-15 23:45:36 UTC) #15
nicholss
Hello Lambros, I have added the null'ing out in detach as requested and I am ...
4 years, 6 months ago (2016-06-16 21:18:02 UTC) #16
Lambros
On 2016/06/16 21:18:02, nicholss wrote: > Hello Lambros, I have added the null'ing out in ...
4 years, 6 months ago (2016-06-17 02:21:59 UTC) #17
Lambros
Just a few nits from patch #11. I'll take a look at the latest patch ...
4 years, 6 months ago (2016-06-17 18:32:29 UTC) #18
nicholss
https://codereview.chromium.org/2052723002/diff/200001/remoting/client/audio_decode_scheduler_unittest.cc File remoting/client/audio_decode_scheduler_unittest.cc (right): https://codereview.chromium.org/2052723002/diff/200001/remoting/client/audio_decode_scheduler_unittest.cc#newcode1 remoting/client/audio_decode_scheduler_unittest.cc:1: // Copyright (c) 2016 The Chromium Authors. All rights ...
4 years, 6 months ago (2016-06-17 22:35:00 UTC) #19
Lambros
lgtm when comments are addressed. https://codereview.chromium.org/2052723002/diff/220001/remoting/client/audio_consumer.h File remoting/client/audio_consumer.h (right): https://codereview.chromium.org/2052723002/diff/220001/remoting/client/audio_consumer.h#newcode16 remoting/client/audio_consumer.h:16: virtual ~AudioConsumer(){}; I think ...
4 years, 6 months ago (2016-06-17 23:51:10 UTC) #20
Sergey Ulanov
Some style nits. Also please update CL description to add more details about what you ...
4 years, 6 months ago (2016-06-18 00:43:38 UTC) #21
nicholss
Addressed Lambros' and Sergey's comments. Thank you for the reviews. I would like to commit ...
4 years, 6 months ago (2016-06-20 17:47:52 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2052723002/260001
4 years, 6 months ago (2016-06-20 20:55:49 UTC) #26
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 6 months ago (2016-06-20 21:03:58 UTC) #28
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/eea69600e07c1d402758d8dd03f5579caddde736 Cr-Commit-Position: refs/heads/master@{#400776}
4 years, 6 months ago (2016-06-20 21:11:09 UTC) #30
Sergey Ulanov
4 years, 6 months ago (2016-06-20 23:15:15 UTC) #31
Message was sent while issue was closed.
Looks like the change that was landed didn't have any nits from the last
patch-set addressed. Please fix them in a separate CL.

Powered by Google App Engine
This is Rietveld 408576698