mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-09-26 20:31:11 +08:00
23 lines
516 B
Go
23 lines
516 B
Go
package tapo
|
|
|
|
import (
|
|
"github.com/AlexxIT/go2rtc/internal/streams"
|
|
"github.com/AlexxIT/go2rtc/pkg/core"
|
|
"github.com/AlexxIT/go2rtc/pkg/kasa"
|
|
"github.com/AlexxIT/go2rtc/pkg/tapo"
|
|
)
|
|
|
|
func Init() {
|
|
streams.HandleFunc("kasa", func(source string) (core.Producer, error) {
|
|
return kasa.Dial(source)
|
|
})
|
|
|
|
streams.HandleFunc("tapo", func(source string) (core.Producer, error) {
|
|
return tapo.Dial(source)
|
|
})
|
|
|
|
streams.HandleFunc("vigi", func(source string) (core.Producer, error) {
|
|
return tapo.Dial(source)
|
|
})
|
|
}
|