💩 Switch to use livekit (Non-tested)
This commit is contained in:
18
pkg/external/livekit.go
vendored
Normal file
18
pkg/external/livekit.go
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
package external
|
||||
|
||||
import (
|
||||
lksdk "github.com/livekit/server-sdk-go"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
var Lk *lksdk.RoomServiceClient
|
||||
|
||||
func SetupLiveKit() {
|
||||
host := "https://" + viper.GetString("calling.endpoint")
|
||||
|
||||
Lk = lksdk.NewRoomServiceClient(
|
||||
host,
|
||||
viper.GetString("calling.api_key"),
|
||||
viper.GetString("calling.api_secret"),
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user