Bug 1685399 - part10 : add chrome-only attributes to allow us check accumulated time during testing. r=padenot,emilio
Differential Revision: https://phabricator.services.mozilla.com/D101264
This commit is contained in:
@@ -2151,6 +2151,18 @@ bool HTMLMediaElement::IsVideoDecodingSuspended() const {
|
||||
return mDecoder && mDecoder->IsVideoDecodingSuspended();
|
||||
}
|
||||
|
||||
double HTMLMediaElement::TotalPlayTime() const {
|
||||
return mDecoder ? mDecoder->GetTotalPlayTimeInSeconds() : -1.0;
|
||||
}
|
||||
|
||||
double HTMLMediaElement::InvisiblePlayTime() const {
|
||||
return mDecoder ? mDecoder->GetInvisibleVideoPlayTimeInSeconds() : -1.0;
|
||||
}
|
||||
|
||||
double HTMLMediaElement::VideoDecodeSuspendedTime() const {
|
||||
return mDecoder ? mDecoder->GetVideoDecodeSuspendedTimeInSeconds() : -1.0;
|
||||
}
|
||||
|
||||
already_AddRefed<layers::Image> HTMLMediaElement::GetCurrentImage() {
|
||||
MarkAsTainted();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user