meet

package
v0.0.0-...-8908ed0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chan

type Chan interface {
	MID() string
	Notify(method string, params interface{}) error
}

Chan chan

type Join

type Join struct {
	Sid   string                    `json:"sid"` // SID room id
	Offer webrtc.SessionDescription `json:"offer"`
}

Join message sent when initializing a peer connection

type Leave

type Leave struct {
}

Leave message sent when leave the peer connection

type Meet

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

Meet server

func New

func New(c *conf.Config) *Meet

New new server

func (*Meet) Answer

func (m *Meet) Answer(ch Chan, negotiation Negotiation) (interface{}, error)

Answer peer

func (*Meet) Close

func (m *Meet) Close()

Close peer

func (*Meet) Join

func (m *Meet) Join(ch Chan, join Join) (interface{}, error)

Join peer

func (*Meet) Leave

func (m *Meet) Leave(ch Chan, level Leave) (interface{}, error)

Leave peer

func (*Meet) Offer

func (m *Meet) Offer(ch Chan, negotiation Negotiation) (interface{}, error)

Offer peer

func (*Meet) Trickle

func (m *Meet) Trickle(ch Chan, trickle Trickle) (interface{}, error)

Trickle peer

type Negotiation

type Negotiation struct {
	Desc webrtc.SessionDescription `json:"desc"`
}

Negotiation message sent when renegotiating the peer connection

type Peer

type Peer struct {
	*sfu.Peer
	// contains filtered or unexported fields
}

Peer p

type Trickle

type Trickle struct {
	Target    int                     `json:"target"`
	Candidate webrtc.ICECandidateInit `json:"candidate"`
}

Trickle message sent when renegotiating the peer connection

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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