Documentation ¶
Index ¶
- type LivekitService
- func (s *LivekitService) CreateIngress(req *livekit.CreateIngressRequest) (*livekit.IngressInfo, error)
- func (s *LivekitService) EndRoom(roomId string) (string, error)
- func (s *LivekitService) LoadParticipantInfo(roomId string, identity string) (*livekit.ParticipantInfo, error)
- func (s *LivekitService) LoadParticipants(roomId string) ([]*livekit.ParticipantInfo, error)
- func (s *LivekitService) MuteUnMuteTrack(roomId string, userId string, trackSid string, muted bool) (*livekit.MuteRoomTrackResponse, error)
- func (s *LivekitService) RemoveParticipant(roomId string, userId string) (*livekit.RemoveParticipantResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LivekitService ¶
type LivekitService struct {
// contains filtered or unexported fields
}
func New ¶
func New(app *config.AppConfig) *LivekitService
func (*LivekitService) CreateIngress ¶
func (s *LivekitService) CreateIngress(req *livekit.CreateIngressRequest) (*livekit.IngressInfo, error)
func (*LivekitService) EndRoom ¶
func (s *LivekitService) EndRoom(roomId string) (string, error)
EndRoom will send API request to livekit
func (*LivekitService) LoadParticipantInfo ¶
func (s *LivekitService) LoadParticipantInfo(roomId string, identity string) (*livekit.ParticipantInfo, error)
LoadParticipantInfo will load single participant info by identity
func (*LivekitService) LoadParticipants ¶
func (s *LivekitService) LoadParticipants(roomId string) ([]*livekit.ParticipantInfo, error)
LoadParticipants will load all the participant info from livekit
func (*LivekitService) MuteUnMuteTrack ¶
func (s *LivekitService) MuteUnMuteTrack(roomId string, userId string, trackSid string, muted bool) (*livekit.MuteRoomTrackResponse, error)
MuteUnMuteTrack can be used to mute/unmute track. This will send request to livekit
func (*LivekitService) RemoveParticipant ¶
func (s *LivekitService) RemoveParticipant(roomId string, userId string) (*livekit.RemoveParticipantResponse, error)
RemoveParticipant will send a request to livekit to remove user
Click to show internal directories.
Click to hide internal directories.