conference

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

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartConference

func StartConference(
	confID string,
	config Config,
	peerConnectionFactory *webrtc_ext.PeerConnectionFactory,
	signaling signaling.MatrixSignaler,
	matrixEvents <-chan MatrixMessage,
	userID id.UserID,
	inviteEvent *event.CallInviteEventContent,
) (<-chan struct{}, error)

Starts a new conference or fails and returns an error. The conference ends when the last participant leaves.

Types

type Conference

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

A single conference. Call and conference mean the same in context of Matrix.

type Config

type Config struct {
	HeartbeatConfig Heartbeat `yaml:"heartbeat"`
}

Configuration for the group conferences (calls).

type Heartbeat

type Heartbeat struct {
	// Timeout for WebRTC connections. If the client doesn't respond to an
	// `m.call.ping` with an `m.call.pong` for this amount of time, the
	// connection is considered dead. (in seconds, no greater then 30)
	Timeout int `yaml:"timeout"`
	// The interval at which to send another m.call.ping event to the client.
	// (in seconds, greater then 30)
	Interval int `yaml:"interval"`
}

type MatrixMessage

type MatrixMessage struct {
	Sender  participant.ID
	Content MessageContent
}

type MessageContent

type MessageContent interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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