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.
Whats the name of the feature/library that allows this to happen on Android?
The feature is called Picture-in-picture and is supported on Android API 26 or higher.