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

Issue 1537583002: Trigger MSE players UMA by user events only (Closed)

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

Description

Trigger MSE players UMA by user events only This is the second fix for MediaSourcePlayer and MediaCodecPlayer UMA statistics gathering (first was https://codereview.chromium.org/1458783002). This CL calls the MediaStatistics::StopAndReport call from the MediaCodecPlayer's top-level methods Pause(), SeekTo(), Release(), when the error detected and when the end of stream is detected, instead of calling it internally when the state machine went to the stopped state. By doing this we shall make MediaCodecPlayer behavior to be the same as the MediaSourcePlayer and do not record an artificial playback stop on internal event like starvation or resultion change with the decoder drain. This CL already eliminates an incorrect stop detection when the user switches to the fullscreen mode and back while playing. BUG=407577, 570835 Committed: https://crrev.com/12260055d88cfc677a2a50135792d364777641f5 Cr-Commit-Position: refs/heads/master@{#365967}

Patch Set 1 #

Patch Set 2 : Rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -16 lines) Patch
M media/base/android/media_codec_player.cc View 12 chunks +17 lines, -10 lines 0 comments Download
M media/base/android/media_source_player.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M media/base/android/media_statistics.h View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
Tima Vaisburd
PTAL
5 years ago (2015-12-17 03:34:16 UTC) #2
qinmin
lgtm, please verify that this works fine with surface changes as we no longer record ...
5 years ago (2015-12-17 07:16:35 UTC) #3
Tima Vaisburd
On 2015/12/17 07:16:35, qinmin wrote: > lgtm, please verify that this works fine with surface ...
5 years ago (2015-12-18 00:03:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1537583002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1537583002/20001
5 years ago (2015-12-18 00:08:18 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-18 01:29:39 UTC) #12
commit-bot: I haz the power
5 years ago (2015-12-18 01:31:06 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/12260055d88cfc677a2a50135792d364777641f5
Cr-Commit-Position: refs/heads/master@{#365967}

Powered by Google App Engine
This is Rietveld 408576698