Is it possible to use PIP mode which is not for videos?
问题 I want to show a div class as PiP(Picture in Picture). I have googled a lot, but only how to enable in videos, not a custom div. At my environment, js, CSS and HTML can be used. A div that I want to use PiP changes second by second. 回答1: Nope PiP is available for <video> only. What you could do though is to stream a <canvas> in a <video> and use PiP there. You can now draw whatever you want in this <canvas>, and even reproduce HTML content. const target = document.getElementById('target');