androidyoutubeandroid-youtube-api

How does Youtube create the small window player after hitting the home button?


When you press the home button on your phone while a youtube video is playing, it closes your app and displays a mini screen that continues playing the video.

enter image description here

Whats the name of the feature/library that allows this to happen on Android?


Solution

  • The feature is called Picture-in-picture and is supported on Android API 26 or higher.