rtsp

package
v0.0.0-...-62cd35e Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 20 Imported by: 0

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
	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) SendSetParameter

func (self *Client) SendSetParameter(parameter string) (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