Bug 1678373 - Add a way to measure the duration a media was muted. r=alwu,webidl,emilio

Differential Revision: https://phabricator.services.mozilla.com/D125088
This commit is contained in:
Paul Adenot
2021-10-07 15:44:54 +00:00
parent 63139488d0
commit 027d553f00
7 changed files with 86 additions and 8 deletions

View File

@@ -2105,6 +2105,10 @@ double HTMLMediaElement::InaudiblePlayTime() const {
return mDecoder ? mDecoder->GetInaudiblePlayTimeInSeconds() : -1.0;
}
double HTMLMediaElement::MutedPlayTime() const {
return mDecoder ? mDecoder->GetMutedPlayTimeInSeconds() : -1.0;
}
double HTMLMediaElement::VideoDecodeSuspendedTime() const {
return mDecoder ? mDecoder->GetVideoDecodeSuspendedTimeInSeconds() : -1.0;
}