mirror of
https://github.com/pion/mediadevices.git
synced 2025-09-26 20:41:46 +08:00
22 lines
472 B
Go
22 lines
472 B
Go
package mediadevices
|
|
|
|
import "github.com/pion/mediadevices/pkg/driver"
|
|
|
|
// MediaDeviceType enumerates type of media device.
|
|
type MediaDeviceType int
|
|
|
|
// MediaDeviceType definitions.
|
|
const (
|
|
VideoInput MediaDeviceType = iota
|
|
AudioInput
|
|
AudioOutput
|
|
)
|
|
|
|
// MediaDeviceInfo represents https://w3c.github.io/mediacapture-main/#dom-mediadeviceinfo
|
|
type MediaDeviceInfo struct {
|
|
DeviceID string
|
|
Kind MediaDeviceType
|
|
Label string
|
|
DeviceType driver.DeviceType
|
|
}
|