Use
AVPictureInPictureController
It can hover over other apps. Time display will not be affected by users
if you use iphone, AVPictureInPictureController
require iOS14
If you're going to run it in an simulator, the iPad's simulator supports picture-in-picture, but the iPhone doesn't