config

package
v0.0.0-...-ff74eb6 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server     *serverstruct `yaml:"server"`
	Media      *mediastruct  `yaml:"media"`
	Relay      bool          `yaml:"relay"`
	Rtmp       *rtmpstruct   `yaml:"rtmp"`
	Capability struct {
		Audio struct {
			Codecs     []string `yaml:"codecs,flow"`
			Extensions []string `yaml:"extensions,flow"`
		} `yaml:"audio"`
		Video struct {
			Codecs     []string `yaml:"codecs,flow"`
			Rtx        bool     `yaml:"rtx"`
			Extensions []string `yaml:"extensions,flow"`
			Rtcpfbcs   []struct {
				ID     string   `yaml:"id"`
				Params []string `yaml:"params,flow"`
			} `yaml:"rtcpfbc,flow"`
		} `yaml:"video"`
	}
	Capabilities map[string]*sdp.Capability
}

Config struct

func LoadConfig

func LoadConfig(filePath string) (*Config, error)

Jump to

Keyboard shortcuts

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