Safari 10 introduces picture in picture. The button is there for html5 video standard controls, but how do I trigger it by javascript?
If you use custom HTML5 video controls, you can add Picture in Picture functionality using the JavaScript presentation mode API.
With no further references.