Safari Picture In Picture - custom HTML5 video controller
问题 Safari HTML5 custom video controller with Picture In Picture (PiP) At the WWDC15 Apple introduces Safari 9 (Safari 10 for MacOS) , there now have support for Picture in Picture. However, they just say: If you use custom HTML5 video controls, you can add Picture in Picture functionality using the JavaScript presentation mode API. but not telling how or where to find its documentation. The default video controller has the button, but how do I trigger it by javascript? 回答1: First if you are