Documentation ¶
Index ¶
- Constants
- Variables
- type Conn
- type Proxy
- type ProxyConn
- type RTSPClient
- func (client *RTSPClient) Close()
- func (client *RTSPClient) CodecUpdatePPS(val []byte)
- func (client *RTSPClient) CodecUpdateSPS(val []byte)
- func (client *RTSPClient) CodecUpdateVPS(val []byte)
- func (client *RTSPClient) ControlTrack(track string) string
- func (client *RTSPClient) Println(v ...interface{})
- func (client *RTSPClient) RTPDemuxer(payloadRAW *[]byte) ([]*av.Packet, bool)
- type RTSPClientOptions
- type Server
Constants ¶
View Source
const ( SignalStreamRTPStop = iota SignalCodecUpdate )
View Source
const ( VIDEO = "video" AUDIO = "audio" )
View Source
const ( DESCRIBE = "DESCRIBE" OPTIONS = "OPTIONS" PLAY = "PLAY" SETUP = "SETUP" TEARDOWN = "TEARDOWN" )
View Source
const ( StartCodePS = 0x000001ba StartCodeSYS = 0x000001bb StartCodeMAP = 0x000001bc StartCodeVideo = 0x000001e0 StartCodeAudio = 0x000001c0 MEPGProgramEndCode = 0x000001b9 )
View Source
const ( StreamIDVideo = 0xe0 StreamIDAudio = 0xc0 )
View Source
const ( UDPTransfer int = 0 TCPTransferActive int = 1 TCPTransferPassive int = 2 LocalCache int = 3 )
View Source
const ( StreamTypeH264 = 0x1b StreamTypeH265 = 0x24 StreamTypeAAC = 0x90 )
View Source
const (
RTPHeaderSize = 12
)
Variables ¶
View Source
var Debug bool
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct { Addr string HandleConn func(*ProxyConn) HandleOptions func(*ProxyConn) HandlePlay func(*ProxyConn) }
func (*Proxy) ListenAndServe ¶
type ProxyConn ¶
func NewProxyConn ¶
func (*ProxyConn) WriteHeader ¶
func (*ProxyConn) WritePacket ¶
type RTSPClient ¶
type RTSPClient struct { SDPRaw []byte Signals chan int OutgoingProxyQueue chan *[]byte OutgoingPacketQueue chan *av.Packet BufferRtpPacket *bytes.Buffer CodecData []av.CodecData AudioTimeLine time.Duration AudioTimeScale int64 PreAudioTS int64 PreVideoTS int64 PreSequenceNumber int FPS int WaitCodec bool // contains filtered or unexported fields }
func Dial ¶
func Dial(options RTSPClientOptions) (*RTSPClient, error)
func (*RTSPClient) Close ¶
func (client *RTSPClient) Close()
func (*RTSPClient) CodecUpdatePPS ¶
func (client *RTSPClient) CodecUpdatePPS(val []byte)
func (*RTSPClient) CodecUpdateSPS ¶
func (client *RTSPClient) CodecUpdateSPS(val []byte)
func (*RTSPClient) CodecUpdateVPS ¶
func (client *RTSPClient) CodecUpdateVPS(val []byte)
func (*RTSPClient) ControlTrack ¶
func (client *RTSPClient) ControlTrack(track string) string
func (*RTSPClient) Println ¶
func (client *RTSPClient) Println(v ...interface{})
Println mini logging functions
func (*RTSPClient) RTPDemuxer ¶
func (client *RTSPClient) RTPDemuxer(payloadRAW *[]byte) ([]*av.Packet, bool)
type RTSPClientOptions ¶
Click to show internal directories.
Click to hide internal directories.