Documentation ¶
Index ¶
- Constants
- type AudioCodec
- type AudioQuality
- type AudioQualityConstantBitrate
- type AudioTrackConfig
- type DestinationID
- type OBSInstanceID
- type OBSState
- type RecodeAudioConfig
- type RecodeVideoConfig
- type ServerType
- type StreamID
- type VideoCodec
- type VideoConvertConfig
- type VideoQuality
- type VideoQualityConstantBitrate
- type VideoQualityConstantQuality
- type VideoTrackConfig
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 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 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 }
Click to show internal directories.
Click to hide internal directories.