recording

package
v0.0.0-...-3f73818 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownMediaProfile = errors.New("unknown media profile")

Functions

This section is empty.

Types

type MediaProfile

type MediaProfile string
const (
	MediaVideoOnly MediaProfile = "video"
	MediaAudioOnly MediaProfile = "audio"
	MediaMuxedAV   MediaProfile = "av"
)

func ParseMediaProfile

func ParseMediaProfile(p string) (MediaProfile, error)

type ParticipantRequest

type ParticipantRequest struct {
	Identity string
	Profile  MediaProfile
}

type Service

type Service interface {
	StartRecording(ctx context.Context, req StartRecordingRequest) error
	StopRecording(ctx context.Context, req StopRecordingRequest) error
	SetUploader(uploader upload.Uploader)
	LKRoomService() *lksdk.RoomServiceClient
	DisconnectFrom(room string)
}

func NewService

func NewService(url string, apiKey string, apiSecret string, webhooks []string) (Service, error)

type StartRecordingRequest

type StartRecordingRequest struct {
	Room        string
	Participant string
}

type StopRecordingRequest

type StopRecordingRequest struct {
	Room        string
	Participant string
}

type UpdateTrackSubscriptionsRequest

type UpdateTrackSubscriptionsRequest struct {
	Room     string
	Identity string
	SIDs     []string
	Subcribe bool
}

Jump to

Keyboard shortcuts

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