rtsp

package
v0.0.0-...-750c461 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2021 License: BSD-3-Clause-Clear Imports: 13 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL