mirror of
				https://github.com/pion/mediadevices.git
				synced 2025-10-31 20:02:36 +08:00 
			
		
		
		
	
			
				
					
						
					
					d3a0713c39d75c5756d6b3d7aaa9d2bb0f37c820
				
			
			
		
	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.2%
							
						
							
								
								
									C
								
								25.6%
							
						
							
								
								
									C++
								
								4.5%
							
						
							
								
								
									Objective-C
								
								1.7%
							
						
							
								
								
									Makefile
								
								0.6%
							
						
							
								
								
									Other
								
								0.3%
							
						
					 
			