Documentation
¶
Index ¶
- Constants
- type RtspClient
- func (c *RtspClient) GetDataResponseDelay() int64
- func (c *RtspClient) GetReceivedBytes() uint64
- func (c *RtspClient) GetReceivedPackets() uint64
- func (c *RtspClient) GetResponseDelay() int64
- func (c *RtspClient) SetPacketFilter(filter func(pkt []byte, len int))
- func (c *RtspClient) SetPlayRange(begin, end float64)
- func (c *RtspClient) Start()
- func (c *RtspClient) StartAt(offsetMs int64)
Constants ¶
View Source
const ModInfo = "Rtsp"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RtspClient ¶
type RtspClient struct {
RequestDelay int64 // header response delay in us
RequestDataDelay int64 // first byte delay in us
// end of stream callback
OnEndOfStream func()
// error occurs
OnError func()
OnBuffering func(isBuffering bool, bufferingCount uint, playPos, bufferPos float64)
// contains filtered or unexported fields
}
func RtspOpen ¶
func RtspOpen(rtspUrl string) (client *RtspClient, err error)
func (*RtspClient) GetDataResponseDelay ¶
func (c *RtspClient) GetDataResponseDelay() int64
func (*RtspClient) GetReceivedBytes ¶
func (c *RtspClient) GetReceivedBytes() uint64
func (*RtspClient) GetReceivedPackets ¶
func (c *RtspClient) GetReceivedPackets() uint64
func (*RtspClient) GetResponseDelay ¶
func (c *RtspClient) GetResponseDelay() int64
func (*RtspClient) SetPacketFilter ¶
func (c *RtspClient) SetPacketFilter(filter func(pkt []byte, len int))
func (*RtspClient) SetPlayRange ¶
func (c *RtspClient) SetPlayRange(begin, end float64)
func (*RtspClient) Start ¶
func (c *RtspClient) Start()
func (*RtspClient) StartAt ¶
func (c *RtspClient) StartAt(offsetMs int64)
Click to show internal directories.
Click to hide internal directories.