Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

Picture in picture and navigation

  • 1 odpoveď
  • 1 má tento problém
  • 41 zobrazení
  • Posledná odpoveď od cor-el

more options

Hello there!

I noticed that pip play mode in Firefox is different to other browsers. In other browsers, once the pip window is opened, it remains open until user explicitly closes it. User is able to navigate away from the page containing the video and it will still remain open. In Firefox, once user navigates away from the video source, the pip window will close.

I'm working on a website which will include some tutorial windows on the home page. It would be useful for the user to be able to open the pip window and then navigate around the site to try out features described in the tutorial video. This is possible with other browsers, unfortunately on Firefox, once the user navigates away (even knowing that it's a SPA) and the video element is removed from the DOM, the browser will not keep the video stream open anymore.

Are there any plans to change this behaviour to match other browsers? Maybe there's an extra attribute that I could add to the video tag to preserve the pip window between navigation events? Maybe there's a temp hack (i.e. keeping the video tag in the DOM but hidden - for SPAs) or will I need to develop a custom media player to achieve this?

Hello there! I noticed that pip play mode in Firefox is different to other browsers. In other browsers, once the pip window is opened, it remains open until user explicitly closes it. User is able to navigate away from the page containing the video and it will still remain open. In Firefox, once user navigates away from the video source, the pip window will close. I'm working on a website which will include some tutorial windows on the home page. It would be useful for the user to be able to open the pip window and then navigate around the site to try out features described in the tutorial video. This is possible with other browsers, unfortunately on Firefox, once the user navigates away (even knowing that it's a SPA) and the video element is removed from the DOM, the browser will not keep the video stream open anymore. Are there any plans to change this behaviour to match other browsers? Maybe there's an extra attribute that I could add to the video tag to preserve the pip window between navigation events? Maybe there's a temp hack (i.e. keeping the video tag in the DOM but hidden - for SPAs) or will I need to develop a custom media player to achieve this?

Vybrané riešenie

You need to keep the tab where you opened the PiP window open and open a new tab if you want to visit another website. If you close that tab or browse to another page in the PiP tab then you close the PiP window. A PiP window needs an anchor to load the video data from the server and that anchor is the tab where you opened the PiP player, so once you lose the anchor tab then the PiP player closes as well as that closes the video stream.

Čítať túto odpoveď v kontexte 👍 0

Všetky odpovede (1)

more options

Vybrané riešenie

You need to keep the tab where you opened the PiP window open and open a new tab if you want to visit another website. If you close that tab or browse to another page in the PiP tab then you close the PiP window. A PiP window needs an anchor to load the video data from the server and that anchor is the tab where you opened the PiP player, so once you lose the anchor tab then the PiP player closes as well as that closes the video stream.