http
HTTP/1.1 200 OK
Content-Type: text/html
Permissions-Policy: picture-in-picture=(self)
<!DOCTYPE html>
<html>
<head><title>Video Platform</title></head>
<body>
<video id="player" controls src="/video.mp4"></video>
<button id="pip">Enable PiP</button>
<script>
document.getElementById('pip').addEventListener('click', async () => {
const video = document.getElementById('player');
await video.requestPictureInPicture();
});
</script>
</body>
</html>