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

Issue 1008093002: Determine the audible state in MediaSourcePlayer (Closed)

Created:
5 years, 9 months ago by Tima Vaisburd
Modified:
5 years, 9 months ago
Reviewers:
qinmin, Min Qin, no sievers
CC:
chromium-reviews, posciak+watch_chromium.org, wjia+watch_chromium.org, avayvod+watch_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Determine the audible state in MediaSourcePlayer We set the audible state every time after the pipeline has successfully decoded the frame: to false if prerolling and true otherwise, taking the volume into account. Also, we set the state to false if the flow is going to be interrupted because of a coded error, abort or Pause. As well, we set audible state to false when the starvation happens and there is no data in the MediaDecoderJob queue, we believe this indicates the demuxer freeze. BUG=414810 Committed: https://crrev.com/2284586bd2d49cacd18c16bfe60fcb519c80b045 Cr-Commit-Position: refs/heads/master@{#322102}

Patch Set 1 #

Patch Set 2 : Added unit test #

Total comments: 2

Patch Set 3 : Use starvation timer for renderer freeze detection #

Total comments: 8

Patch Set 4 : Minor fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -7 lines) Patch
M media/base/android/audio_decoder_job.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M media/base/android/media_decoder_job.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M media/base/android/media_source_player.cc View 1 2 3 8 chunks +33 lines, -2 lines 0 comments Download
M media/base/android/media_source_player_unittest.cc View 1 2 10 chunks +159 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (3 generated)
Tima Vaisburd
Please review https://codereview.chromium.org/1008093002/diff/20001/media/base/android/media_source_player_unittest.cc File media/base/android/media_source_player_unittest.cc (right): https://codereview.chromium.org/1008093002/diff/20001/media/base/android/media_source_player_unittest.cc#newcode962 media/base/android/media_source_player_unittest.cc:962: message_loop_.PostDelayedTask( I wanted to guarantee that this ...
5 years, 9 months ago (2015-03-18 01:35:02 UTC) #2
no sievers
Do we really need a timeout? Don't we know when playback pauses or stops? On ...
5 years, 9 months ago (2015-03-19 20:06:41 UTC) #3
Tima Vaisburd
On 2015/03/19 20:06:41, sievers wrote: > Do we really need a timeout? Don't we know ...
5 years, 9 months ago (2015-03-19 22:05:40 UTC) #4
no sievers
On 2015/03/19 22:05:40, Tima Vaisburd wrote: > On 2015/03/19 20:06:41, sievers wrote: > > Do ...
5 years, 9 months ago (2015-03-19 22:18:32 UTC) #5
no sievers
And I'll let Min comment on the approach then.
5 years, 9 months ago (2015-03-19 22:19:27 UTC) #6
qinmin
https://codereview.chromium.org/1008093002/diff/20001/media/base/android/media_source_player.cc File media/base/android/media_source_player.cc (right): https://codereview.chromium.org/1008093002/diff/20001/media/base/android/media_source_player.cc#newcode600 media/base/android/media_source_player.cc:600: void MediaSourcePlayer::UpdateAudibleStatus() { I don't think we really need ...
5 years, 9 months ago (2015-03-19 23:34:23 UTC) #8
Tima Vaisburd
On 2015/03/19 23:34:23, qinmin wrote: > I don't think we really need a timer for ...
5 years, 9 months ago (2015-03-20 00:56:14 UTC) #9
qinmin
On 2015/03/20 00:56:14, Tima Vaisburd wrote: > On 2015/03/19 23:34:23, qinmin wrote: > > I ...
5 years, 9 months ago (2015-03-20 02:28:27 UTC) #10
Tima Vaisburd
On 2015/03/20 02:28:27, qinmin wrote: > we can simply check whether EOS is reached or ...
5 years, 9 months ago (2015-03-24 18:49:34 UTC) #11
Tima Vaisburd
New version, this does not introduce a new timer and uses the existing starvation timer ...
5 years, 9 months ago (2015-03-24 18:50:36 UTC) #12
qinmin
https://codereview.chromium.org/1008093002/diff/40001/media/base/android/audio_decoder_job.h File media/base/android/audio_decoder_job.h (right): https://codereview.chromium.org/1008093002/diff/40001/media/base/android/audio_decoder_job.h#newcode37 media/base/android/audio_decoder_job.h:37: double GetVolume() const; just use inline functions for simple ...
5 years, 9 months ago (2015-03-24 21:38:37 UTC) #13
Tima Vaisburd
https://codereview.chromium.org/1008093002/diff/40001/media/base/android/audio_decoder_job.h File media/base/android/audio_decoder_job.h (right): https://codereview.chromium.org/1008093002/diff/40001/media/base/android/audio_decoder_job.h#newcode37 media/base/android/audio_decoder_job.h:37: double GetVolume() const; On 2015/03/24 21:38:37, qinmin wrote: > ...
5 years, 9 months ago (2015-03-24 22:24:51 UTC) #14
qinmin
lgtm
5 years, 9 months ago (2015-03-24 22:30:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1008093002/60001
5 years, 9 months ago (2015-03-24 23:27:15 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-25 00:17:52 UTC) #18
commit-bot: I haz the power
5 years, 9 months ago (2015-03-25 00:18:40 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2284586bd2d49cacd18c16bfe60fcb519c80b045
Cr-Commit-Position: refs/heads/master@{#322102}

Powered by Google App Engine
This is Rietveld 408576698