Documentation
¶
Index ¶
- Constants
- func ParseCodecs(codecs string, parseAudio bool) (medias []*core.Media)
- func ParseQuery(query map[string][]string) []*core.Media
- func PatchVideoRotate(init []byte, degrees int) bool
- func PatchVideoScale(init []byte, scaleX, scaleY int) bool
- type Consumer
- func (c *Consumer) AddTrack(media *core.Media, _ *core.Codec, track *core.Receiver) error
- func (c *Consumer) Codecs() []*core.Codec
- func (c *Consumer) GetMedias() []*core.Media
- func (c *Consumer) Init() ([]byte, error)
- func (c *Consumer) MarshalJSON() ([]byte, error)
- func (c *Consumer) MimeCodecs() string
- func (c *Consumer) MimeType() string
- func (c *Consumer) Start()
- func (c *Consumer) Stop() error
- type Muxer
- type Segment
Constants ¶
View Source
const ( MimeH264 = "avc1.640029" MimeH265 = "hvc1.1.6.L153.B0" MimeAAC = "mp4a.40.2" MimeFlac = "flac" MimeOpus = "opus" )
Variables ¶
This section is empty.
Functions ¶
func ParseCodecs ¶ added in v1.6.0
func ParseQuery ¶ added in v1.1.0
ParseQuery - like usual parse, but with mp4 param handler
func PatchVideoRotate ¶ added in v1.6.1
PatchVideoRotate - update video track transformation matrix. Rotation supported by many players and browsers (except Safari). Scale has low support and better not to use it. Supported only 0, 90, 180, 270 degrees.
func PatchVideoScale ¶ added in v1.6.1
PatchVideoScale - update "Pixel Aspect Ratio" atom. Supported by many players and browsers (except Firefox). Supported only positive integers.
Types ¶
type Consumer ¶
type Consumer struct {
core.Listener
Medias []*core.Media
Desc string
UserAgent string
RemoteAddr string
// contains filtered or unexported fields
}
func (*Consumer) MarshalJSON ¶
func (*Consumer) MimeCodecs ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.