Webkit Picture in Picture resets itself on IOS

When using the following code on a HTML video tag:

video.webkitSetPresentationMode("picture-in-picture"); 

It works as expected on safari. but on IOS safari, the moment picture in picture mode is activated it closes again. The black overlay with the "This video is playing in picture in picture" text is shown, but immediately removed again. Is there something I’m doing wrong?

I’m using this article as reference: https://developer.apple.com/documentation/webkitjs/adding_picture_in_picture_to_your_safari_media_controls

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.