rtsp

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package rtsp Created by RTT. Author: teocci@yandex.com on 2021-Oct-27

Package rtsp Created by RTT. Author: teocci@yandex.com on 2021-Oct-27

Package rtsp Created by RTT. Author: teocci@yandex.com on 2021-Oct-27

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 (c *Client) Close() (err error)

func (*Client) Describe

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

func (*Client) HandleCodecDataChange

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

func (*Client) Options

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

func (*Client) Play

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

func (*Client) ReadPacket

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

func (*Client) ReadResponse

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

func (*Client) SendRtpKeepalive

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

func (*Client) Setup

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

func (*Client) SetupAll

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

func (*Client) Streams

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

func (*Client) Teardown

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

func (*Client) WriteRequest

func (c *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
Package sdp Created by RTT.
Package sdp Created by RTT.

Jump to

Keyboard shortcuts

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