💩 Switch to use livekit (Non-tested)

This commit is contained in:
2024-04-27 00:04:01 +08:00
parent a8008c2c8c
commit 88d3fbcf5c
10 changed files with 433 additions and 48 deletions

18
pkg/external/livekit.go vendored Normal file
View 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"),
)
}