I have an update to yesterday’s news on Picture in Picture. Let’s say you are watching Netflix on your Android phone. You tap the Home button and Netflix will automatically switch to Picture in Picture mode. You don’t have to go to Netflix player’s settings to do this.
This feature is coming to Chrome’s Picture in Picture too.
I noticed this code commit today:
This CL adds the autoPictureinPicture attribute to the HTMLVideoElement
behind an experimental blink runtime flag so that web developers can
play with Auto Picture-in-Picture behaviour by running chrome with the
Note that muted video don’t play in Auto Picture-in-Picture because of
background video optimizations. This will be addressed in an upcoming
The bug associated with this code change explains this feature better:
Some pages may want to automatically enter and leave Picture-in-Picture for a video element; for example, video meetings web apps would benefit from some automatic Picture-in-Picture behavior when
userswitches back and forth between webapp and other applications/tabs. To support these use cases, a new autoPictureInPicture attribute is added to the list of content attributes for video elements.
Since this is an API that we are talking about, websites will be able to make use of this code to enable automatic Picture in Picture and “Skip ad” button like we discussed yesterday.
The Picture in Picture API
Google seems to be working with other browser makers to build a standard API that will work across browsers. Developers should be able to code one time and get this feature working on all browsers.
Here is a picture of Safari Picture in Picture from this project website:
This specification intends to provide APIs to allow websites to create a floating video window always on top of other windows so that users may continue consuming media while they interact with other content sites, or applications on their device.
If you are a web developer, you should definitely check this out!