Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTooManyBytes = errors.New("rtmp: read too many bytes into chunk")
)
View Source
var (
ErrUnknownFormatId = errors.New("rtmp: unknown message header ID")
)
Functions ¶
This section is empty.
Types ¶
type BasicHeader ¶
type Builder ¶
func NewBuilder ¶
type ExtendedTimestamp ¶
type ExtendedTimestamp struct {
// Delta encodes the complete timestamp or extended timestamp field for
// chunks matching the scenario as described above.
Delta uint32
}
ExtendedTimestamp is an extra, optional, part of the standard RTMP chunk header. It is used to encode the complete 32-bit timestamp, or timestamp delta. It will only be present when the timestamp field of a type 0 header, or the timestamp delta field of a type 1 or 2 header is set to 0xffffff. Additionally, this field is present in type 3 chunks when the last type 0, 1 or 2 chunk indicated presence of this field.
type Header ¶
type Header struct {
BasicHeader BasicHeader
MessageHeader MessageHeader
ExtendedTimestamp ExtendedTimestamp
}
type MessageHeader ¶
type MessageHeader struct {
FormatId byte
Timestamp uint32
TimestampDelta bool
Length uint32
TypeId byte
StreamId uint32
}
func (*MessageHeader) HasExtendedTimestamp ¶
func (m *MessageHeader) HasExtendedTimestamp() bool
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) SetReadSize ¶
Click to show internal directories.
Click to hide internal directories.