Hacker News new | ask | show | jobs
by difosfor 1950 days ago
Was also disappointed to find that browser picture in picture support was limited to a video element. Wish I could just use it on any element, like with fullscreen.

I can imagine some complexity as explained. But for example it seems reasonable to me to limit browser panel/PiP support to a single element at a time like it is now for video to avoid some of that.

This looks interesting!

1 comments

> Was also disappointed to find that browser picture in picture support was limited to a video element. Wish I could just use it on any element, like with fullscreen.

I have not yet experimented, but perhaps a video element can be styled or injected with HTML/CSS to present non-video content.

You can hook up a canvas element to be a source for a video element. But that's not very useful to me.