livekitservice

package
v1.7.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL