Bug 1693250 - part3 : add another test to check whether audio sink incorrectly inserts silence. r=media-playback-reviewers,webidl,saschanaz,padenot

Differential Revision: https://phabricator.services.mozilla.com/D183435
This commit is contained in:
alwu
2023-07-17 19:54:24 +00:00
parent 49d28ce1ba
commit 2c2afcf279
12 changed files with 131 additions and 1 deletions

View File

@@ -2075,6 +2075,10 @@ bool HTMLMediaElement::IsVideoDecodingSuspended() const {
return mDecoder && mDecoder->IsVideoDecodingSuspended();
}
void HTMLMediaElement::SetSuspend(bool aSuspend) {
SuspendOrResumeElement(aSuspend);
}
double HTMLMediaElement::TotalVideoPlayTime() const {
return mDecoder ? mDecoder->GetTotalVideoPlayTimeInSeconds() : -1.0;
}