Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Picture in picture and navigation

  • 1 svar
  • 1 har dette problem
  • 9 visninger
  • Seneste svar af 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?

Valgt løsning

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.

Læs dette svar i sammenhæng 👍 0

Alle svar (1)

more options

Valgt løsning

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.

Nyttig?

Stil et spørgsmål

Du skal logge ind på din konto for at svare på et indlæg. Start et nyt spørgsmål, hvis du ikke har en konto endnu.