rtspv2

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SignalStreamRTPStop = iota
	SignalCodecUpdate
)
View Source
const (
	VIDEO = "video"
	AUDIO = "audio"
)
View Source
const (
	DESCRIBE = "DESCRIBE"
	OPTIONS  = "OPTIONS"
	PLAY     = "PLAY"
	SETUP    = "SETUP"
)
View Source
const (
	RTPHeaderSize = 12
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RTSPClient

type RTSPClient struct {
	SDPRaw []byte

	Signals        chan int
	OutgoingProxy  chan *[]byte
	OutgoingPacket chan *av.Packet

	BufferRtpPacket *bytes.Buffer

	CodecData []av.CodecData
	// contains filtered or unexported fields
}

func Dial

func Dial(options RTSPClientOptions) (*RTSPClient, error)

func (*RTSPClient) Close

func (client *RTSPClient) Close()

func (*RTSPClient) CodecUpdatePPS

func (client *RTSPClient) CodecUpdatePPS(val []byte)

func (*RTSPClient) CodecUpdateSPS

func (client *RTSPClient) CodecUpdateSPS(val []byte)

func (*RTSPClient) ControlTrack

func (client *RTSPClient) ControlTrack(track string) string

func (*RTSPClient) Println

func (client *RTSPClient) Println(v ...interface{})

Println mini logging functions

func (*RTSPClient) RTPDemuxer

func (client *RTSPClient) RTPDemuxer(payloadRAW *[]byte) ([]*av.Packet, bool)

type RTSPClientOptions

type RTSPClientOptions struct {
	Debug            bool
	URL              string
	DialTimeout      time.Duration
	ReadWriteTimeout time.Duration
	DisableAudio     bool
}

Jump to

Keyboard shortcuts

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