Versions in this module Expand all Collapse all v0 v0.0.18 Jul 6, 2022 Changes in this version + const AUDIO + const DESCRIBE + const LocalCache + const MEPGProgramEndCode + const OPTIONS + const PLAY + const RTPHeaderSize + const SETUP + const SignalCodecUpdate + const SignalStreamRTPStop + const StartCodeAudio + const StartCodeMAP + const StartCodePS + const StartCodeSYS + const StartCodeVideo + const StreamIDAudio + const StreamIDVideo + const StreamTypeAAC + const StreamTypeH264 + const StreamTypeH265 + const TCPTransferActive + const TCPTransferPassive + const TEARDOWN + const UDPTransfer + const VIDEO + var Debug bool + type Conn struct + URL *url.URL + func NewConn(netconn net.Conn) *Conn + func (self *Conn) Close() (err error) + func (self *Conn) NetConn() net.Conn + func (self *Conn) WriteHeader(codec []av.CodecData) (err error) + func (self *Conn) WritePacket(pkt *av.Packet) (err error) + type Proxy struct + Addr string + HandleConn func(*ProxyConn) + HandleOptions func(*ProxyConn) + HandlePlay func(*ProxyConn) + func (self *Proxy) ListenAndServe() (err error) + type ProxyConn struct + URL *url.URL + func NewProxyConn(netconn net.Conn) *ProxyConn + func (self *ProxyConn) Close() (err error) + func (self *ProxyConn) NetConn() net.Conn + func (self *ProxyConn) WriteHeader(sdp []byte) + func (self *ProxyConn) WritePacket(pkt *[]byte) (err error) + type RTSPClient struct + AudioTimeLine time.Duration + AudioTimeScale int64 + BufferRtpPacket *bytes.Buffer + CodecData []av.CodecData + FPS int + OutgoingPacketQueue chan *av.Packet + OutgoingProxyQueue chan *[]byte + PreAudioTS int64 + PreSequenceNumber int + PreVideoTS int64 + SDPRaw []byte + Signals chan int + WaitCodec bool + func Dial(options RTSPClientOptions) (*RTSPClient, error) + 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 struct + Debug bool + DialTimeout time.Duration + DisableAudio bool + InsecureSkipVerify bool + OutgoingProxy bool + ReadWriteTimeout time.Duration + URL string + type Server struct + Addr string + HandleConn func(*Conn) + HandleDescribe func(*Conn) + HandleOptions func(*Conn) + HandlePlay func(*Conn) + HandleSetup func(*Conn) + func (self *Server) ListenAndServe() (err error)