lonchat

package module
v0.0.0-...-b59fb02 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: BSD-3-Clause Imports: 29 Imported by: 0

README

LonChat

👾 Just another mainstream video chat platform!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(ctx context.Context, wsURL string, conn *webrtc.PeerConnection) error

Types

type App

type App struct {
	STUNServer string
	// contains filtered or unexported fields
}

func New

func New(signalerURL string) (*App, error)

func (*App) Run

func (a *App) Run(ctx context.Context) error

type Capture

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

func NewCapture

func NewCapture(width, height int) (*Capture, error)

func (*Capture) RequestKeyframe

func (c *Capture) RequestKeyframe()

func (*Capture) SetTrack

func (c *Capture) SetTrack(track *webrtc.Track)

func (*Capture) Start

func (c *Capture) Start(camID int, frameRate float32) error

func (*Capture) Stop

func (c *Capture) Stop() error

type Conn

type Conn struct {
	SendTrack                  *webrtc.Track
	OnPLI                      func()
	OnFrame                    func([]byte)
	OnMessage                  func(string)
	OnICEConnectionStateChange func(webrtc.ICEConnectionState)
	OnBye                      func()
	OnDataOpen                 func()
	// contains filtered or unexported fields
}

func NewConn

func NewConn(config webrtc.Configuration) (*Conn, error)

func (*Conn) IsConnected

func (c *Conn) IsConnected() bool

func (*Conn) SendBye

func (c *Conn) SendBye() error

func (*Conn) SendMessage

func (c *Conn) SendMessage(m string) error

func (*Conn) SendPLI

func (c *Conn) SendPLI() error

type DCMessage

type DCMessage struct {
	Event   string
	Payload []byte
}

Directories

Path Synopsis
cmd
signal module

Jump to

Keyboard shortcuts

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