rtsp

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugRtp = false
View Source
var DebugRtsp = false
View Source
var ErrCodecDataChange = fmt.Errorf("rtsp: codec data change, please call HandleCodecDataChange()")
View Source
var SkipErrRtpBlock = false

Functions

func Handler

func Handler(h *avutil.RegisterHandler)

Types

type Client

type Client struct {
	DebugRtsp    bool
	DebugRtp     bool
	DisableAudio bool
	Headers      []string

	SkipErrRtpBlock bool

	RtspTimeout         time.Duration
	RtpTimeout          time.Duration
	RtpKeepAliveTimeout time.Duration
	// contains filtered or unexported fields
}

func Dial

func Dial(uri string) (self *Client, err error)

func DialTimeout

func DialTimeout(uri string, timeout time.Duration) (self *Client, err error)

func (*Client) Close

func (self *Client) Close() (err error)

func (*Client) Describe

func (self *Client) Describe() (streams []sdp.Media, err error)

func (*Client) HandleCodecDataChange

func (self *Client) HandleCodecDataChange() (_newcli *Client, err error)

func (*Client) Options

func (self *Client) Options() (err error)

func (*Client) Play

func (self *Client) Play() (err error)

func (*Client) ReadPacket

func (self *Client) ReadPacket() (pkt av.Packet, err error)

func (*Client) ReadResponse

func (self *Client) ReadResponse() (res Response, err error)

func (*Client) SendRtpKeepalive

func (self *Client) SendRtpKeepalive() (err error)

func (*Client) Setup

func (self *Client) Setup(idx []int) (err error)

func (*Client) SetupAll

func (self *Client) SetupAll() (err error)

func (*Client) Streams

func (self *Client) Streams() (streams []av.CodecData, err error)

func (*Client) Teardown

func (self *Client) Teardown() (err error)

func (*Client) WriteRequest

func (self *Client) WriteRequest(req Request) (err error)

type Request

type Request struct {
	Header []string
	Uri    string
	Method string
}

type Response

type Response struct {
	StatusCode    int
	Headers       textproto.MIMEHeader
	ContentLength int
	Body          []byte

	Block []byte
}

type Stream

type Stream struct {
	av.CodecData
	Sdp sdp.Media
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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