You're reading the Rask v1.0.0 guides.View source
All guides

IPictureInPicture

Float a <video> into a mini-player.

  • Wraps: Picture-in-Picture API
  • MDN: Picture-in-Picture API
  • Home: Rask.Wasm.Browser (WASM only)
  • Shape: one-shot
  • Availability: Web/Server 🟡 · PWA/WASM ✅

Needs transient activation, so the imperative IPictureInPicture service is WASM-only. On the Server host, use the declarative PictureInPictureTrigger component — point its For: at the <video>'s ElementRef and its click opens the mini-player inside the gesture.

🟡 On the Server host, reachable declaratively via PictureInPictureTrigger (a click-gesture component), not as an injected service.

See also