Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuicClient ¶
func NewQuicClient(ctx context.Context, clientConfig ClientConfig, config *RecorderConfig) (quic.Connection, error)
Types ¶
type ChannelConfig ¶
type ClientConfig ¶
type PacketType ¶
type PacketType byte
const ( ConfigPacket PacketType = 0x01 DataPacket PacketType = 0x02 RoomEndPacket PacketType = 0x03 TrackEndPacket PacketType = 0x04 )
type RecorderConfig ¶ added in v0.0.2
type SplitConfig ¶
type StopConfig ¶
type StopConfig struct {
Splits []SplitConfig
ChannelConfig ChannelConfig
}
type Track ¶
type TrackConfig ¶
type TrackRecorder ¶
type TrackRecorder interface {
Write(data []byte) (int, error)
WritePacket(packet *rtp.Packet) (int, error)
Close() error
}
func NewTrackRecorder ¶
func NewTrackRecorder(conf *TrackConfig, stream quic.SendStream) (TrackRecorder, error)
Click to show internal directories.
Click to hide internal directories.