{"repo":"pion/mediadevices","free":true,"listed":false,"github":"https://github.com/pion/mediadevices","clone":"git clone https://github.com/pion/mediadevices.git","description":"Go implementation of the MediaDevices API.","language":"Go","stars":648,"topics":["webrtc","driver","codec","video-call","audio-call","machine-learning","face-recognition","livestream","rtp","voip"],"license":"MIT","category":"machine-learning","readme_excerpt":"Pion MediaDevices Go implementation of the MediaDevices API 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 appilcations, interacting only with an amazingly simple, easy, and elegant API! Install Build Tags mediadevices provides a nomicrophone build tag. Use this tag to build without microphone support. This is particularly useful for: - Cross-compilation where CGO dependencies like malgo are unavailable. - Projects where audio is not required. Usage The following snippet shows how to capture a camera stream and store a frame as a jpeg image: More 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 Available Media Inputs Input Linux Mac Windows :--------: :---: :-: :-----: Camera ✔️ ✔️ ✔️ Microphone ✔️ ✔️ ✔️ Screen ✔️ ✔️ ✔️ By default, there's no media input registered. This decision was made to allow you to play only what you need. Therefore, you need to import the associated packages for the media i","default_branch":null,"files":null,"tree":[],"storefront":"/r/pion","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pion/mediadevices/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}