config

package
v0.0.0-...-1136a37 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortNumber

type PortNumber uint

port number

func (*PortNumber) Set

func (p *PortNumber) Set(s string) error

func (*PortNumber) String

func (p *PortNumber) String() string

type Resolution

type Resolution struct {
	Height int
	Width  int
}

Resolution

func (*Resolution) Set

func (r *Resolution) Set(s string) error

func (*Resolution) String

func (r *Resolution) String() string

type StreamSettings

type StreamSettings struct {
	// video
	VideoResolution    Resolution
	VideoEncoder       VideoEncoder
	VideoBaseFramerate uint
	VideoBaseBitrate   uint
	VideoShowCursor    bool
	// audio
	AudioBaseBitrate       uint
	AudioBasePacketLossPct uint
}

stream settings

type VideoEncoder

type VideoEncoder int

video encoder

const (
	VP9    VideoEncoder = 0
	H264   VideoEncoder = 1
	NVH264 VideoEncoder = 2
)

Supported video encoders ! Must be compatible with encoders defined in C code

func (*VideoEncoder) Set

func (e *VideoEncoder) Set(s string) error

func (*VideoEncoder) String

func (e *VideoEncoder) String() string

Jump to

Keyboard shortcuts

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