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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user