reuse the same Participant ID within the same room/session
This commit is contained in:
@@ -7,10 +7,13 @@ import (
|
||||
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
|
||||
|
||||
// encapsulates CRUD operations for room settings
|
||||
// look up participant
|
||||
//counterfeiter:generate . RoomStore
|
||||
type RoomStore interface {
|
||||
CreateRoom(room *livekit.Room) error
|
||||
GetRoom(idOrName string) (*livekit.Room, error)
|
||||
ListRooms() ([]*livekit.Room, error)
|
||||
DeleteRoom(idOrName string) error
|
||||
// returns the current participant id in room, or create new one
|
||||
GetParticipantId(room, name string) (string, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user