Documentation
¶
Index ¶
- func GetRandomQuicClient(clientConfig ClientConfig, config []*QuicConfig) (quic.Connection, error)
- func NewQuicClient(ctx context.Context, clientConfig ClientConfig, config *QuicConfig) (quic.Connection, error)
- type Channel
- type ChannelConfig
- type ClientConfig
- type PacketType
- type QuicConfig
- type SplitConfig
- type StopConfig
- type Track
- type TrackConfig
- type TrackRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRandomQuicClient ¶
func GetRandomQuicClient(clientConfig ClientConfig, config []*QuicConfig) (quic.Connection, error)
func NewQuicClient ¶
func NewQuicClient(ctx context.Context, clientConfig ClientConfig, config *QuicConfig) (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 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.