Bug 1689741 - not controlling the real-time media via the media control. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D112668
This commit is contained in:
@@ -7635,6 +7635,11 @@ bool HTMLMediaElement::ShouldStartMediaControlKeyListener() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (mSrcStream) {
|
||||
MEDIACONTROL_LOG("Not listening because media is real-time");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (IsBeingUsedInPictureInPictureMode()) {
|
||||
MEDIACONTROL_LOG("Start listener because of being used in PiP mode");
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user