streamtypes

package
v0.0.0-...-4503ccc Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerTypeUndefined = ServerType(iota)
	ServerTypeRTSP
	ServerTypeSRT
	ServerTypeRTMP
	ServerTypeHLS
	ServerTypeWebRTC
)
View Source
const (
	AudioCodecUndefined = AudioCodec(iota)
	AudioCodecAAC
	AudioCodecVorbis
	AudioCodecOpus
	EndOfAudioCodec
)
View Source
const (
	VideoCodecUndefined = VideoCodec(iota)
	VideoCodecH264
	VideoCodecHEVC
	EndOfVideoCodec
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioCodec

type AudioCodec uint

func (AudioCodec) MarshalJSON

func (ac AudioCodec) MarshalJSON() ([]byte, error)

func (*AudioCodec) String

func (ac *AudioCodec) String() string

func (*AudioCodec) UnmarshalJSON

func (ac *AudioCodec) UnmarshalJSON(b []byte) error

type AudioQuality

type AudioQuality interface {
	// contains filtered or unexported methods
}

type AudioQualityConstantBitrate

type AudioQualityConstantBitrate uint

func (AudioQualityConstantBitrate) MarshalJSON

func (aq AudioQualityConstantBitrate) MarshalJSON() ([]byte, error)

type AudioTrackConfig

type AudioTrackConfig struct {
	InputAudioTrackIDs []uint
	Recode             RecodeAudioConfig
}

type DestinationID

type DestinationID string

type OBSInstanceID

type OBSInstanceID string

type OBSState

type OBSState struct {
	xsync.Mutex
	VolumeMeters map[string][][3]float64
}

type RecodeAudioConfig

type RecodeAudioConfig struct {
	Enable  bool         `json:"enable,omitempty"  yaml:"enable,omitempty"`
	Codec   AudioCodec   `json:"codec,omitempty"   yaml:"codec,omitempty"`
	Quality AudioQuality `json:"quality,omitempty" yaml:"quality,omitempty"`
}

func (*RecodeAudioConfig) UnmarshalJSON

func (c *RecodeAudioConfig) UnmarshalJSON(b []byte) (_err error)

func (*RecodeAudioConfig) UnmarshalYAML

func (c *RecodeAudioConfig) UnmarshalYAML(b []byte) (_err error)

type RecodeVideoConfig

type RecodeVideoConfig struct {
	Enable  bool            `json:"enable,omitempty"  yaml:"enable,omitempty"`
	FlipV   bool            `json:"flip_v,omitempty"  yaml:"flip_v,omitempty"`
	FlipH   bool            `json:"flip_h,omitempty"  yaml:"flip_h,omitempty"`
	Crop    image.Rectangle `json:"crop,omitempty"    yaml:"crop,omitempty"`
	Scale   image.Point     `json:"scale,omitempty"   yaml:"scale,omitempty"`
	Codec   VideoCodec      `json:"codec,omitempty"   yaml:"codec,omitempty"`
	Quality VideoQuality    `json:"quality,omitempty" yaml:"quality,omitempty"`
}

func (*RecodeVideoConfig) UnmarshalJSON

func (c *RecodeVideoConfig) UnmarshalJSON(b []byte) (_err error)

func (*RecodeVideoConfig) UnmarshalYAML

func (c *RecodeVideoConfig) UnmarshalYAML(b []byte) (_err error)

type ServerType

type ServerType int

func ParseServerType

func ParseServerType(s string) ServerType

func (ServerType) MarshalJSON

func (t ServerType) MarshalJSON() ([]byte, error)

func (ServerType) MarshalYAML

func (t ServerType) MarshalYAML() ([]byte, error)

func (ServerType) String

func (t ServerType) String() string

func (*ServerType) UnmarshalJSON

func (t *ServerType) UnmarshalJSON(b []byte) error

func (*ServerType) UnmarshalYAML

func (t *ServerType) UnmarshalYAML(b []byte) error

type StreamID

type StreamID string

type VideoCodec

type VideoCodec uint

func (VideoCodec) MarshalJSON

func (vc VideoCodec) MarshalJSON() ([]byte, error)

func (*VideoCodec) String

func (vc *VideoCodec) String() string

func (*VideoCodec) UnmarshalJSON

func (vc *VideoCodec) UnmarshalJSON(b []byte) error

type VideoConvertConfig

type VideoConvertConfig struct {
	OutputAudioTrack []AudioTrackConfig
	OutputVideoTrack []VideoTrackConfig
}

type VideoQuality

type VideoQuality interface {
	// contains filtered or unexported methods
}

type VideoQualityConstantBitrate

type VideoQualityConstantBitrate uint

func (VideoQualityConstantBitrate) MarshalJSON

func (vq VideoQualityConstantBitrate) MarshalJSON() ([]byte, error)

type VideoQualityConstantQuality

type VideoQualityConstantQuality uint8

func (VideoQualityConstantQuality) MarshalJSON

func (vq VideoQualityConstantQuality) MarshalJSON() ([]byte, error)

type VideoTrackConfig

type VideoTrackConfig struct {
	InputVideoTrackIDs []uint
	RecodeVideoConfig
}

Jump to

Keyboard shortcuts

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