Bug 1787561 Part 2: Expose HDR telemetry to HTMLMediaElement as a Chrome property. r=alwu,emilio
This is necessary scaffolding for testing of the HDR telemetry in a way that involves the RDD process. This is important for matching real-world conditions. Depends on D155902 Differential Revision: https://phabricator.services.mozilla.com/D156245
This commit is contained in:
@@ -2080,6 +2080,10 @@ double HTMLMediaElement::TotalVideoPlayTime() const {
|
||||
return mDecoder ? mDecoder->GetTotalVideoPlayTimeInSeconds() : -1.0;
|
||||
}
|
||||
|
||||
double HTMLMediaElement::TotalVideoHDRPlayTime() const {
|
||||
return mDecoder ? mDecoder->GetTotalVideoHDRPlayTimeInSeconds() : -1.0;
|
||||
}
|
||||
|
||||
double HTMLMediaElement::VisiblePlayTime() const {
|
||||
return mDecoder ? mDecoder->GetVisibleVideoPlayTimeInSeconds() : -1.0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user