PiP is not working on Mixer.com
Categories
(Toolkit :: Video/Audio Controls, defect, P2)
Tracking
()
People
(Reporter: adamopenweb, Unassigned)
References
(Blocks 1 open bug, )
Details
The PiP toggle doesn't appear consistently on this site and doesn't work when it does appear. Example stream: https://mixer.com/MirandaPings
Testing in Firefox 73-75 for MacOS.
Updated•5 years ago
|
Reporter | ||
Comment 1•5 years ago
|
||
On Mixer.com I'm seeing in the CSS:
.controlsContainer [hidden], .controlBar[hidden], .pictureInPictureToggleButton[hidden], .videocontrols[inDOMFullscreen] > .controlsContainer > .controlsOverlay > .pictureInPictureToggleButton {
display: none;
}
Disabling this property the PiP icon displays but is not clickable.
The video is here on the main page:
<video class="spectre-video-element YC8umoqJ5rBISu9gQMwLl" playsinline="" autoplay=""></video>
The video controls need to be displayed before the PiP button will appear. You can't just hover the video and have the PiP icon show up. On this site the video controls only appear if you hover the mouse near the bottom of the video. I confirmed this behaviour on Edge (Chromium).
Comment 2•5 years ago
|
||
Oof, at first I was freaking out because I thought that this was page CSS finding a way to hide the toggle. Thankfully, however, this is the videocontrols.css that's loaded in the shadow root of the HTML video player:
Comment 3•5 years ago
|
||
I looked into this. The problem appears to be that Mixer.com is setting the duration
property of the <video>
as the video plays. When it first starts, the duration is less than 45s, so we determine that the video should not show the toggle (based on the heuristics from bug 1547795).
According to https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/duration, for livestreamed videos, the duration should be +Infinity.
Comment 4•5 years ago
|
||
The last issue is that the video has a srcObject
set on it, which is something we don't currently support for PiP due to bug 1592539.
Reporter | ||
Comment 5•4 years ago
|
||
Mixer is shutting down, so I think we can close this report.
Description
•