encoder

package
v0.0.0-...-6df95b1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FPS    = 60
	WIDTH  = 256
	HEIGHT = 240
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder struct {
	ImageChannel chan []byte
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder() *Encoder

func (*Encoder) AddTrack

func (e *Encoder) AddTrack(t *webrtc.Track, playerId int)

func (*Encoder) IsRunning

func (e *Encoder) IsRunning() bool

func (*Encoder) RemoveTrack

func (e *Encoder) RemoveTrack(t *webrtc.Track, playerId int)

func (*Encoder) StartStreaming

func (e *Encoder) StartStreaming()

func (*Encoder) StopStreaming

func (e *Encoder) StopStreaming()

Jump to

Keyboard shortcuts

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