mirror of
https://github.com/pion/mediadevices.git
synced 2026-04-22 15:57:27 +08:00
14 lines
425 B
Go
14 lines
425 B
Go
package mediadevices
|
|
|
|
import (
|
|
"github.com/pion/mediadevices/pkg/driver"
|
|
_ "github.com/pion/mediadevices/pkg/driver/camera"
|
|
_ "github.com/pion/mediadevices/pkg/driver/microphone"
|
|
_ "github.com/pion/mediadevices/pkg/driver/screen"
|
|
)
|
|
|
|
// RegisterDriverAdapter allows user space level of driver registration
|
|
func RegisterDriverAdapter(a driver.Adapter, label string) error {
|
|
return driver.GetManager().Register(a, label)
|
|
}
|