cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Chaython
New member
Status: New idea

It would be nice if PIP didn't close / need to be manually started on new page...

For example if I go to an anime site, it has an auto-next where when the episode ends, it goes to the next episode's page. During this transition PIP is closed, and I have to reopen it. It would be preferable if in site settings there was an "always PIP for video autoplay" so that during page refresh, the PIP stays open on last/black frame and then when the next video starts it starts playing in the PIP player.

A way to do this with JS seems to be [of course replace youtube.com with URL of the site you want to Auto-pip "

// Check if the current site matches the desired site
if (window.location.href.includes("youtube.com")) {
  // Trigger PiP mode for the video element
  const video = document.querySelector("video");
  if (video && !video.disablePictureInPicture) {
    video.requestPictureInPicture();
  }
}"

 

2 Comments
Status changed to: New idea
Jon
Community Manager
Community Manager

Thanks for submitting an idea to the Mozilla Connect community! Your idea is now open to votes (aka kudos) and comments.

Jon
Community Manager
Community Manager

Potentially related idea here: Exclude websites from auto PIP