Bug 1621166 - part1 : add a method to know if media element is being used in PIP mode. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D67380
This commit is contained in:
@@ -7780,6 +7780,13 @@ void HTMLMediaElement::ClearStopMediaControlTimerIfNeeded() {
|
||||
}
|
||||
}
|
||||
|
||||
bool HTMLMediaElement::IsBeingUsedInPictureInPictureMode() const {
|
||||
if (!IsVideo()) {
|
||||
return false;
|
||||
}
|
||||
return static_cast<const HTMLVideoElement*>(this)->IsCloningElementVisually();
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
|
||||
Reference in New Issue
Block a user