Chromium Code Reviews
DescriptionTrigger 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 #
Messages
Total messages: 14 (8 generated)
|
|||||||||||||||||||||||||||||||||||||