mirror of
https://github.com/pion/mediadevices.git
synced 2025-09-26 20:41:46 +08:00

* Add DeviceType to Info * Update adapters to also register its device type * Add FilterDeviceType
15 lines
353 B
Go
15 lines
353 B
Go
package driver
|
|
|
|
// DeviceType represents human readable device type. DeviceType
|
|
// can be useful to filter the drivers too.
|
|
type DeviceType string
|
|
|
|
const (
|
|
// Camera represents camera devices
|
|
Camera DeviceType = "camera"
|
|
// Microphone represents microphone devices
|
|
Microphone = "microphone"
|
|
// Screen represents screen devices
|
|
Screen = "screen"
|
|
)
|