rtsp

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugRtp = false

DebugRtp var

View Source
var DebugRtsp = false

DebugRtsp var

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

ErrCodecDataChange var

View Source
var SkipErrRtpBlock = false

SkipErrRtpBlock var

Functions

func Handler

func Handler(h *avutil.RegisterHandler)

Handler type

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
}

Client type

func Dial

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

Dial type

func DialTimeout

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

DialTimeout type

func (*Client) Close

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

Close type

func (*Client) Describe

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

Describe type

func (*Client) HandleCodecDataChange

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

HandleCodecDataChange type

func (*Client) Options

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

Options type

func (*Client) Play

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

Play type

func (*Client) ReadPacket

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

ReadPacket type

func (*Client) ReadResponse

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

ReadResponse type

func (*Client) SendRtpKeepalive

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

SendRtpKeepalive type

func (*Client) Setup

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

Setup type

func (*Client) SetupAll

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

SetupAll type

func (*Client) Streams

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

Streams type

func (*Client) Teardown

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

Teardown type

func (*Client) WriteRequest

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

WriteRequest type

type Request

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

Request type

type Response

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

	Block []byte
}

Response type

type Stream

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

Stream type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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