Documentation ¶
Index ¶
- Variables
- func NewFuncOption[T any](f func(T)) *funcOption[T]
- type EmptyOption
- type Matroska
- func (m *Matroska) Close()
- func (m *Matroska) FileSize() int
- func (m *Matroska) GetTracks() []Track
- func (m *Matroska) WriteAudio(timestamp time.Duration, b []byte) (int, error)
- func (m *Matroska) WriteTrack(t Track, timestamp time.Duration, b []byte, keyframe ...bool) (int, error)
- func (m *Matroska) WriteVideo(timestamp time.Duration, b []byte) (int, error)
- type Option
- type Track
- func NewTrackAAC(samplingFrequency int, channels int) Track
- func NewTrackG726(sampleRate int, channels int) Track
- func NewTrackH264(opts ...Option[*trackH264]) Track
- func NewTrackH265(opts ...Option[*trackH265]) Track
- func NewTrackOpus(channels int) Track
- func NewTrackPCMA(sampleRate int, channels int) Track
- type UnimplementedTrack
- func (c *UnimplementedTrack) GetTrackEntry() *webm.TrackEntry
- func (c *UnimplementedTrack) GetWriter() webm.BlockWriteCloser
- func (c *UnimplementedTrack) IsAudio() bool
- func (c *UnimplementedTrack) IsVideo() bool
- func (c *UnimplementedTrack) Write(timestamp time.Duration, b []byte, keyframe ...bool) (int, error)
- type WriteSeekCloser
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewFuncOption ¶ added in v0.20.6
func NewFuncOption[T any](f func(T)) *funcOption[T]
Types ¶
type EmptyOption ¶ added in v0.20.6
type EmptyOption[T any] struct{}
func (EmptyOption[T]) Apply ¶ added in v0.20.6
func (EmptyOption[T]) Apply(T)
type Matroska ¶
type Matroska struct {
// contains filtered or unexported fields
}
func (*Matroska) WriteAudio ¶
func (*Matroska) WriteTrack ¶
type Option ¶ added in v0.20.6
type Option[T any] interface { Apply(T) }
func WithH264SPSPPS ¶ added in v0.20.1
WithH264SPSPPS sps/pps 00 00 00 01 ...
func WithH265SPSPPS ¶ added in v0.20.1
WithH265SPSPPS vps/sps/pps 00 00 00 01 ...
type Track ¶
type Track interface { IsVideo() bool IsAudio() bool GetTrackEntry() *webm.TrackEntry Write(timestamp time.Duration, b []byte, keyframe ...bool) (int, error) GetWriter() webm.BlockWriteCloser // contains filtered or unexported methods }
func NewTrackAAC ¶
func NewTrackG726 ¶
func NewTrackH264 ¶
func NewTrackH265 ¶
func NewTrackOpus ¶
func NewTrackPCMA ¶
type UnimplementedTrack ¶
type UnimplementedTrack struct {
// contains filtered or unexported fields
}
func (*UnimplementedTrack) GetTrackEntry ¶
func (c *UnimplementedTrack) GetTrackEntry() *webm.TrackEntry
func (*UnimplementedTrack) GetWriter ¶
func (c *UnimplementedTrack) GetWriter() webm.BlockWriteCloser
func (*UnimplementedTrack) IsAudio ¶
func (c *UnimplementedTrack) IsAudio() bool
func (*UnimplementedTrack) IsVideo ¶
func (c *UnimplementedTrack) IsVideo() bool
Click to show internal directories.
Click to hide internal directories.