Versions in this module Expand all Collapse all v1 v1.1.4 Apr 1, 2022 Changes in this version type RTSPClientOptions + InsecureSkipVerify bool v1.1.3 Feb 3, 2022 v1.1.2 Feb 3, 2022 v1.1.1 Feb 3, 2022 v1.1.0 Jan 28, 2022 v1.0.0 Jan 28, 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 (c *Conn) Close() (err error) + func (c *Conn) NetConn() net.Conn + func (c *Conn) WriteHeader(codec []av.CodecData) (err error) + func (c *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) CountTracks() int + func (client *RTSPClient) FirstTrack() av.CodecData + func (client *RTSPClient) IsAudioOnly() bool + 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 + 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 (s *Server) ListenAndServe() (err error)