rtspclient

package
v0.0.0-...-9ac6e9e Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: LGPL-2.1 Imports: 11 Imported by: 0

README

rtspclient

It 's a RTSP client implemented by golang

Install

go get github.com/djwackey/dorsvr/rtspclient

Examples

// define a rtsp url
rtsp_url := "rtsp://192.168.1.105:8554/demo.264"

// create a rtspclient instance
client := rtspclient.New()

// connect rtsp server and send request
client.DialRTSP(rtsp_url)

// waiting for the response, and print the output frame data
client.Waiting()

Documentation

Index

Constants

View Source
const MEDIA_CLIENT_VERSION = "1.0.0.3"

Variables

This section is empty.

Functions

This section is empty.

Types

type DummySink

type DummySink struct {
	livemedia.MediaSink
	// contains filtered or unexported fields
}

func NewDummySink

func NewDummySink(subsession *livemedia.MediaSubsession, streamID string) *DummySink

func (*DummySink) AfterGettingFrame

func (s *DummySink) AfterGettingFrame(frameSize, durationInMicroseconds uint,
	presentationTime sys.Timeval)

func (*DummySink) ContinuePlaying

func (s *DummySink) ContinuePlaying()

type RTSPClient

type RTSPClient struct {
	// contains filtered or unexported fields
}

func New

func New() *RTSPClient

func (*RTSPClient) Close

func (c *RTSPClient) Close()

func (*RTSPClient) DialRTSP

func (c *RTSPClient) DialRTSP(rtspURL string) bool

func (*RTSPClient) SendRequest

func (c *RTSPClient) SendRequest() bool

type RTSPURL

type RTSPURL struct {
	// contains filtered or unexported fields
}

type RequestQueue

type RequestQueue struct {
	// contains filtered or unexported fields
}

type RequestRecord

type RequestRecord struct {
	// contains filtered or unexported fields
}

func (*RequestRecord) Handle

func (r *RequestRecord) Handle(rtspClient *RTSPClient, resultCode int, resultStr string)

type StreamClientState

type StreamClientState struct {
	Session    *livemedia.MediaSession
	Subsession *livemedia.MediaSubsession
}

func (*StreamClientState) Next

type TransportParams

type TransportParams struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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