Search 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 reply
  • 1 has this problem
  • 11 views
  • Last reply by 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?

Chosen solution

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.

Read this answer in context 👍 0

All Replies (1)

more options

Chosen Solution

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.

Helpful?

Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.