Original post

MediaDevices

mediadevices provides access to media input devices like cameras, microphones, and screen capture. It can also be used to encode your video/audio stream to various codec selections. mediadevices abstracts away the complexities of interacting with things like hardware and codecs allowing you to focus on building applications, interacting only with an amazingly simple, easy, and elegant API!

Github: https://github.com/pion/mediadevices

Face detection demo

Examples:

  • Webrtc – Use Webrtc to create a realtime peer-to-peer video call

  • Face Detection – Use a machine learning algorithm to detect faces in a camera stream

  • RTP Stream – Capture camera stream, encode it in H264/VP8/VP9, and send it to a RTP server

  • HTTP Broadcast – Broadcast camera stream through HTTP with MJPEG

  • Archive – Archive H264 encoded video stream from a camera