Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VP8KeyFrame16x16 = []byte{0x10, 0x02, 0x00, 0x9d, 0x01, 0x2a, 0x10, 0x00, 0x10, 0x00, 0x00, 0x47, 0x08, 0x85, 0x85, 0x88, 0x85, 0x84, 0x88, 0x02, 0x02, 0x00, 0x0c, 0x0d, 0x60, 0x00, 0xfe, 0xff, 0xab, 0x50, 0x80} H264KeyFrame2x2SPS = []byte{0x67, 0x42, 0xc0, 0x1f, 0x0f, 0xd9, 0x1f, 0x88, 0x88, 0x84, 0x00, 0x00, 0x03, 0x00, 0x04, 0x00, 0x00, 0x03, 0x00, 0xc8, 0x3c, 0x60, 0xc9, 0x20} H264KeyFrame2x2PPS = []byte{0x68, 0x87, 0xcb, 0x83, 0xcb, 0x20} H264KeyFrame2x2IDR = []byte{0x65, 0x88, 0x84, 0x0a, 0xf2, 0x62, 0x80, 0x00, 0xa7, 0xbe} H264KeyFrame2x2 = [][]byte{H264KeyFrame2x2SPS, H264KeyFrame2x2PPS, H264KeyFrame2x2IDR} )
Functions ¶
This section is empty.
Types ¶
type AppWriter ¶
type AppWriter struct { *synchronizer.TrackSynchronizer // contains filtered or unexported fields }
func NewAppWriter ¶
func NewAppWriter( track *webrtc.TrackRemote, rp *lksdk.RemoteParticipant, codec types.MimeType, src *app.Source, sync *synchronizer.Synchronizer, syncInfo *synchronizer.TrackSynchronizer, writeBlanks bool, ) (*AppWriter, error)
func (*AppWriter) SetTrackMuted ¶
type H264Translator ¶ added in v1.7.2
type H264Translator struct{}
func (*H264Translator) Translate ¶ added in v1.7.2
func (t *H264Translator) Translate(_ *rtp.Packet)
func (*H264Translator) UpdateBlankFrame ¶ added in v1.7.2
func (t *H264Translator) UpdateBlankFrame(pkt *rtp.Packet) error
type OpusTranslator ¶ added in v1.7.2
type OpusTranslator struct{}
func (*OpusTranslator) Translate ¶ added in v1.7.2
func (t *OpusTranslator) Translate(_ *rtp.Packet)
func (*OpusTranslator) UpdateBlankFrame ¶ added in v1.7.2
func (t *OpusTranslator) UpdateBlankFrame(_ *rtp.Packet) error
type Translator ¶ added in v1.7.2
func NewH264Translator ¶ added in v1.7.2
func NewH264Translator() Translator
func NewOpusTranslator ¶ added in v1.7.2
func NewOpusTranslator() Translator
type VP8Translator ¶ added in v1.7.2
type VP8Translator struct {
// contains filtered or unexported fields
}
func NewVP8Translator ¶ added in v1.7.2
func NewVP8Translator(logger logger.Logger) *VP8Translator
func (*VP8Translator) Translate ¶ added in v1.7.2
func (t *VP8Translator) Translate(pkt *rtp.Packet)
func (*VP8Translator) UpdateBlankFrame ¶ added in v1.7.2
func (t *VP8Translator) UpdateBlankFrame(pkt *rtp.Packet) error
Click to show internal directories.
Click to hide internal directories.