Documentation ¶
Index ¶
- func IsLaterTimestamp(timestamp1 uint32, timestamp2 uint32) bool
- func IsTimestampWrapAround(timestamp1 uint32, timestamp2 uint32) bool
- type Bucket
- type Buffer
- func (b *Buffer) Bind(params webrtc.RTPParameters, o Options)
- func (b *Buffer) Close() error
- func (b *Buffer) GetClockRate() uint32
- func (b *Buffer) GetLatestTimestamp() (latestTimestamp uint32, latestTimestampTimeInNanosSinceEpoch int64)
- func (b *Buffer) GetMediaSSRC() uint32
- func (b *Buffer) GetPacket(buff []byte, sn uint16) (int, error)
- func (b *Buffer) GetSenderReportData() (rtpTime uint32, ntpTime uint64, lastReceivedTimeInNanosSinceEpoch int64)
- func (b *Buffer) GetStats() (stats Stats)
- func (b *Buffer) OnClose(fn func())
- func (b *Buffer) OnFeedback(fn func(fb []rtcp.Packet))
- func (b *Buffer) OnTransportWideCC(fn func(sn uint16, timeNS int64, marker bool))
- func (b *Buffer) PacketChan() chan rtp.Packet
- func (b *Buffer) Read(buff []byte) (n int, err error)
- func (b *Buffer) SetSenderReportData(rtpTime uint32, ntpTime uint64)
- func (b *Buffer) Write(pkt []byte) (n int, err error)
- type Factory
- type Options
- type RTCPReader
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLaterTimestamp ¶
IsLaterTimestamp returns true if timestamp1 is later in time than timestamp2 factoring in timestamp wrap-around
func IsTimestampWrapAround ¶
IsTimestampWrapAround returns true if wrap around happens from timestamp1 to timestamp2
Types ¶
type Buffer ¶
Buffer contains all packets
func (*Buffer) GetClockRate ¶
GetClockRate returns the RTP clock rate
func (*Buffer) GetLatestTimestamp ¶
func (b *Buffer) GetLatestTimestamp() (latestTimestamp uint32, latestTimestampTimeInNanosSinceEpoch int64)
GetLatestTimestamp returns the latest RTP timestamp factoring in potential RTP timestamp wrap-around
func (*Buffer) GetMediaSSRC ¶
GetMediaSSRC returns the associated SSRC of the RTP stream
func (*Buffer) GetSenderReportData ¶
func (b *Buffer) GetSenderReportData() (rtpTime uint32, ntpTime uint64, lastReceivedTimeInNanosSinceEpoch int64)
GetSenderReportData returns the rtp, ntp and nanos of the last sender report
func (*Buffer) OnFeedback ¶
func (*Buffer) OnTransportWideCC ¶
func (*Buffer) PacketChan ¶
func (*Buffer) SetSenderReportData ¶
type Factory ¶
func NewBufferFactory ¶
func NewBufferFactory() *Factory
func (*Factory) GetBufferPair ¶
func (f *Factory) GetBufferPair(ssrc uint32) (*Buffer, *RTCPReader)
func (*Factory) GetOrNew ¶
func (f *Factory) GetOrNew(packetType packetio.BufferPacketType, ssrc uint32) io.ReadWriteCloser
func (*Factory) GetRTCPReader ¶
func (f *Factory) GetRTCPReader(ssrc uint32) *RTCPReader
type RTCPReader ¶
type RTCPReader struct {
// contains filtered or unexported fields
}
func NewRTCPReader ¶
func NewRTCPReader(ssrc uint32) *RTCPReader
func (*RTCPReader) Close ¶
func (r *RTCPReader) Close() error
func (*RTCPReader) OnClose ¶
func (r *RTCPReader) OnClose(fn func())
func (*RTCPReader) OnPacket ¶
func (r *RTCPReader) OnPacket(f func([]byte))
Click to show internal directories.
Click to hide internal directories.