mirror of
https://github.com/pion/mediadevices.git
synced 2026-04-23 00:07:29 +08:00
2bac44aa8a37a2e19f0699112b049ae4a21e3a2d
In GetUserMedia and GetDisplayMedia, driver was left opened if initialization failure. Since Trackers are not returned on error, there was no way to close them. This commit closes Trackers on GetUserMedia/GetDisplayMedia failure.
mediadevices
Go implementation of the MediaDevices API.
Interfaces
| Interface | Linux | Mac | Windows |
|---|---|---|---|
| Camera | ✔️ | ✖️ | ✖️ |
| Microphone | ✔️ | ✖️ | ✖️ |
| Screen | ✔️ | ✖️ | ✖️ |
Camera
| OS | Library/Interface |
|---|---|
| Linux | Video4Linux |
| Mac | N/A |
| Windows | N/A |
| Pixel Format | Linux | Mac | Windows |
|---|---|---|---|
| YUY2 | ✔️ | ✖️ | ✖️ |
| I420 | ✔️ | ✖️ | ✖️ |
| NV21 | ✔️ | ✖️ | ✖️ |
| MJPEG | ✔️ | ✖️ | ✖️ |
Microphone
| OS | Library/Interface |
|---|---|
| Linux | PulseAudio |
| Mac | N/A |
| Windows | N/A |
Screen casting
| OS | Library/Interface |
|---|---|
| Linux | X11 |
| Mac | N/A |
| Windows | N/A |
Codecs
| Audio Codec | Library/Interface |
|---|---|
| OPUS | libopus |
| Video Codec | Library/Interface |
|---|---|
| H.264 | OpenH264 |
| VP8 | libvpx |
| VP9 | libvpx |
Usage
Contributing
- Lukas Herman - Original Author
- Atsushi Watanabe - VP8, Screencast, etc.
Project Status
References
Description
MediaDevices API 的 Go 实现,提供对媒体输入设备(如摄像头、麦克风和屏幕捕获)的访问。它还可用于将您的视频/音频流编码为各种编解码器选择。 抽象出与硬件和编解码器等交互的复杂性,让您专注于构建应用程序,仅与极其简单、轻松和优雅的 API 进行交互!
audio-callcodecdriverface-recognitiongogolanglivestreammachine-learningmediadevicesmediadevices-apip2prtpstreamingvideo-callvoipwebrtc
Readme
MIT
50 MiB
Languages
Go
67.3%
C
25.6%
C++
4.4%
Objective-C
1.7%
Makefile
0.6%
Other
0.3%
