mozmorris / react-webcam

Webcam component
https://codepen.io/mozmorris/pen/JLZdoP
MIT License
1.63k stars 281 forks source link

Support prop to disable Picture-in-Picture #388

Closed jpserra closed 9 months ago

jpserra commented 9 months ago

This commit adds a new prop to the webcam component disablePictureInPicture which as the name suggests, should disable this feature for any browser that supports it.

Defaults to false.

more context on the disablePictureInPicture property: https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/disablePictureInPicture

warrenseine commented 9 months ago

IMHO this shouldn't even be an option. It should be hard-coded to true, but that's good too.

mozmorris commented 9 months ago

Thanks, this seems like a good default value.

mozmorris commented 9 months ago

Published in 7.2.0. Many thanks @jpserra 🚀