Files
mediadevices/mediadeviceinfo.go
Lukas Herman 238f190e71 Use MediaDeviceInfo instead of webrtc.RTPCodecType
Changes:
  * Add unit tests for mediastream
  * Remove webrtc.RTPCodecType dependency in mediastream
  * Add Kind to Tracker interface
2020-10-11 01:29:59 -04:00

22 lines
476 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 + 1
AudioInput
AudioOutput
)
// MediaDeviceInfo represents https://w3c.github.io/mediacapture-main/#dom-mediadeviceinfo
type MediaDeviceInfo struct {
DeviceID string
Kind MediaDeviceType
Label string
DeviceType driver.DeviceType
}