return livekit server url from api
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
|
||||
type Client interface {
|
||||
GetJoinToken(roomId string, identity string) (string, error)
|
||||
ServerUrl() string
|
||||
}
|
||||
|
||||
type clientImpl struct {
|
||||
@@ -25,6 +26,10 @@ func NewClient() Client {
|
||||
}
|
||||
}
|
||||
|
||||
func (c *clientImpl) ServerUrl() string {
|
||||
return c.hostUrl
|
||||
}
|
||||
|
||||
func (c *clientImpl) GetJoinToken(room, identity string) (string, error) {
|
||||
at := auth.NewAccessToken(c.apiKey, c.apiSecret)
|
||||
grant := &auth.VideoGrant{
|
||||
|
||||
Reference in New Issue
Block a user