зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1261955 - Re-activate VIDEO_PLAY_TIME_MS telemetry probe. r=SingingTree,bsmedberg
Rename the VIDEO_MSE_PLAY_TIME_MS telemetry probe to just VIDEO_PLAY_TIME_MS and make it active for all video playback. We were using this to track MSE deployment success. Now we'd like to do something similar for video playback in general, regardless of the origin. This allows us to simplify the collection code somewhat. MozReview-Commit-ID: 7s8pOQWipf4
This commit is contained in:
Родитель
d463fdaec4
Коммит
d7723aa39c
|
@ -2852,8 +2852,8 @@ HTMLMediaElement::ReportMSETelemetry()
|
|||
Telemetry::Accumulate(Telemetry::VIDEO_MSE_UNLOAD_STATE, state);
|
||||
LOG(LogLevel::Debug, ("%p VIDEO_MSE_UNLOAD_STATE = %d", this, state));
|
||||
|
||||
Telemetry::Accumulate(Telemetry::VIDEO_MSE_PLAY_TIME_MS, SECONDS_TO_MS(mPlayTime.Total()));
|
||||
LOG(LogLevel::Debug, ("%p VIDEO_MSE_PLAY_TIME_MS = %f", this, mPlayTime.Total()));
|
||||
Telemetry::Accumulate(Telemetry::VIDEO_PLAY_TIME_MS, SECONDS_TO_MS(mPlayTime.Total()));
|
||||
LOG(LogLevel::Debug, ("%p VIDEO_PLAY_TIME_MS = %f", this, mPlayTime.Total()));
|
||||
}
|
||||
|
||||
void HTMLMediaElement::UnbindFromTree(bool aDeep,
|
||||
|
@ -4324,11 +4324,6 @@ nsresult HTMLMediaElement::DispatchAsyncEvent(const nsAString& aName)
|
|||
nsCOMPtr<nsIRunnable> event = new nsAsyncEventRunner(aName, this);
|
||||
NS_DispatchToMainThread(event);
|
||||
|
||||
// Only collect rebuffer and stall rate stats for MSE video.
|
||||
if (!mMediaSource) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if ((aName.EqualsLiteral("play") || aName.EqualsLiteral("playing"))) {
|
||||
mPlayTime.Start();
|
||||
} else if (aName.EqualsLiteral("waiting")) {
|
||||
|
|
|
@ -1602,7 +1602,7 @@ public:
|
|||
uint32_t mCount;
|
||||
};
|
||||
private:
|
||||
// Total time an MSE video has spent playing
|
||||
// Total time a video has spent playing.
|
||||
TimeDurationAccumulator mPlayTime;
|
||||
|
||||
// Indicates if user has interacted with the element.
|
||||
|
|
|
@ -8948,12 +8948,14 @@
|
|||
"kind": "boolean",
|
||||
"description": "EME video playback success or failure"
|
||||
},
|
||||
"VIDEO_MSE_PLAY_TIME_MS" : {
|
||||
"expires_in_version": "45",
|
||||
"description": "Total time spent playing MSE video",
|
||||
"VIDEO_PLAY_TIME_MS" : {
|
||||
"alert_emails": ["ajones@mozilla.com"],
|
||||
"expires_in_version": "55",
|
||||
"description": "Total time spent playing video in milliseconds. This reports the total play time for an HTML Media Element whenever it is suspended or resumed, such as when the page is unloaded, or when the mute status changes when the AudioChannelAPI pref is set.",
|
||||
"kind": "exponential",
|
||||
"high": 7200000,
|
||||
"n_buckets": 100
|
||||
"n_buckets": 100,
|
||||
"bug_numbers": [1261955, 1127646]
|
||||
},
|
||||
"VIDEO_MSE_UNLOAD_STATE": {
|
||||
"expires_in_version": "45",
|
||||
|
|
|
@ -1018,7 +1018,6 @@
|
|||
"VIDEO_DECODED_H264_SPS_PROFILE",
|
||||
"VIDEO_EME_PLAY_SUCCESS",
|
||||
"VIDEO_H264_SPS_MAX_NUM_REF_FRAMES",
|
||||
"VIDEO_MSE_PLAY_TIME_MS",
|
||||
"VIDEO_MSE_UNLOAD_STATE",
|
||||
"WEAVE_COMPLETE_SUCCESS_COUNT",
|
||||
"WEAVE_CONFIGURED",
|
||||
|
@ -2384,7 +2383,6 @@
|
|||
"VIDEO_EME_REQUEST_FAILURE_LATENCY_MS",
|
||||
"VIDEO_EME_REQUEST_SUCCESS_LATENCY_MS",
|
||||
"VIDEO_H264_SPS_MAX_NUM_REF_FRAMES",
|
||||
"VIDEO_MSE_PLAY_TIME_MS",
|
||||
"VIDEO_MSE_UNLOAD_STATE",
|
||||
"VIDEO_OPENH264_GMP_DISAPPEARED",
|
||||
"VIDEO_OPENH264_GMP_MISSING_FILES",
|
||||
|
|
Загрузка…
Ссылка в новой задаче