ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## 概述 画中画API ## demo ``` <body> <video src="https://mdn.github.io/dom-examples/picture-in-picture/assets/bigbuckbunny.mp4"></video> <button>提交</button> <script> const button = document.querySelector("button"); const video = document.querySelector("video"); button.onclick = function() { if (document.pictureInPictureElement) { document.exitPictureInPicture(); } else { if (document.pictureInPictureEnabled) { video.requestPictureInPicture(); } } }; </script> </body> ```