livekit

package
v0.0.0-...-32c06ea Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLiveKit

func NewLiveKit(conf *config.RTC) rtc.MeetingRtc

func NewRTC

Types

type CallbackLiveKit

type CallbackLiveKit struct {
}

func (*CallbackLiveKit) OnMeetingDisconnected

func (r *CallbackLiveKit) OnMeetingDisconnected(ctx context.Context, roomID string)

func (*CallbackLiveKit) OnMeetingUnmute

func (r *CallbackLiveKit) OnMeetingUnmute(ctx context.Context, roomID string, streamType string, mute bool, userIDs []string)

func (*CallbackLiveKit) OnRoomDisconnected

func (r *CallbackLiveKit) OnRoomDisconnected(ctx context.Context, roomID string, sid string)

func (*CallbackLiveKit) OnRoomParticipantConnected

func (r *CallbackLiveKit) OnRoomParticipantConnected(ctx context.Context)

func (*CallbackLiveKit) OnRoomParticipantDisconnected

func (r *CallbackLiveKit) OnRoomParticipantDisconnected(ctx context.Context)

type LiveKit

type LiveKit struct {
	// contains filtered or unexported fields
}

func (*LiveKit) CloseRoom

func (x *LiveKit) CloseRoom(ctx context.Context, roomID string) error

func (*LiveKit) CreateRoom

func (x *LiveKit) CreateRoom(ctx context.Context, meetingID, identify string, roomMetaData *meeting.MeetingMetadata, participantMetaData *meeting.ParticipantMetaData) (sID, token, liveUrl string, err error)

func (*LiveKit) GetJoinToken

func (x *LiveKit) GetJoinToken(ctx context.Context, roomID, identity string, metadata *meeting.ParticipantMetaData) (string, string, error)

func (*LiveKit) GetParticipantMetaData

func (x *LiveKit) GetParticipantMetaData(ctx context.Context, roomID, userID string) (*meeting.ParticipantMetaData, error)

func (*LiveKit) GetParticipantUserIDs

func (x *LiveKit) GetParticipantUserIDs(ctx context.Context, roomID string) ([]string, error)

func (*LiveKit) GetRoomData

func (x *LiveKit) GetRoomData(ctx context.Context, roomID string) (*meeting.MeetingMetadata, error)

func (*LiveKit) IsNotFound

func (x *LiveKit) IsNotFound(err error) bool

func (*LiveKit) ListParticipants

func (x *LiveKit) ListParticipants(ctx context.Context, roomID string) ([]*livekit.ParticipantInfo, error)

func (*LiveKit) RemoveParticipant

func (x *LiveKit) RemoveParticipant(ctx context.Context, roomID, userID string) error

func (*LiveKit) RoomIsExist

func (x *LiveKit) RoomIsExist(ctx context.Context, meetingID string) (string, error)

func (*LiveKit) SendRoomData

func (x *LiveKit) SendRoomData(ctx context.Context, roomID string, userIDList *[]string, sendData interface{}) error

func (*LiveKit) ToggleMimeStream

func (x *LiveKit) ToggleMimeStream(ctx context.Context, roomID, userID, mineType string, mute bool) error

func (*LiveKit) UpdateMetaData

func (x *LiveKit) UpdateMetaData(ctx context.Context, updateData *meeting.MeetingMetadata) error

func (*LiveKit) UpdateParticipantData

func (x *LiveKit) UpdateParticipantData(ctx context.Context, data *meeting.ParticipantMetaData, roomID, userID string) error

Jump to

Keyboard shortcuts

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