rtmps

package
v0.0.0-...-e300b18 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TID_SETCHUNKSIZE     = 1
	TID_ABORT            = 2
	TID_ACKNOWLEDGEMENT  = 3
	TID_USERCONTROL      = 4
	TID_WINDOW_ACK_SIZE  = 5
	TID_SETPEERBANDWIDTH = 6
	TID_AUDIO            = 8
	TID_VIDEO            = 9
	TID_AMF3COMMAND      = 17
	TID_AMF0COMMAND      = 20
	TID_AMF0DATA         = 18
	TID_AMF3DATA         = 15
	TID_AGGREGATE        = 22
)
View Source
const (
	UC_STREAMBEGIN      = 0
	UC_STREAMEOF        = 1
	UC_STREAMDRY        = 2
	UC_SETBUFFERLENGTH  = 3
	UC_STREAMISRECORDED = 4
	UC_PINGREQUEST      = 6
	UC_PINGRESPONSE     = 7

	UC_BUFFEREMPTY = 31
	UC_BUFFERREADY = 32
)
View Source
const (
	NORMAL = iota
	COMMAND
	PAUSE
	TEST
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodeError

type DecodeError struct {
	Fun string
	Msg string
}

func (*DecodeError) Error

func (e *DecodeError) Error() string

type Rtmp

type Rtmp struct {
	VideoExists bool
	// contains filtered or unexported fields
}

func NewRtmp

func NewRtmp(tc, swf, page string, opt ...interface{}) (rtmp *Rtmp, err error)

func (*Rtmp) CheckStatus

func (rtmp *Rtmp) CheckStatus(label string, ts int, data interface{}, waitPause bool) (done, incomplete, pauseFound bool, err error)

func (*Rtmp) Close

func (rtmp *Rtmp) Close() (err error)

func (*Rtmp) Command

func (rtmp *Rtmp) Command(name string, args []interface{}) (trData interface{}, err error)

command name, transaction ID, and command object

func (*Rtmp) Connect

func (rtmp *Rtmp) Connect() (err error)

func (*Rtmp) CreateStream

func (rtmp *Rtmp) CreateStream() (err error)

func (*Rtmp) GetTimestamp

func (rtmp *Rtmp) GetTimestamp() int

func (*Rtmp) Pause

func (rtmp *Rtmp) Pause(timestamp int) (err error)

func (*Rtmp) PauseRaw

func (rtmp *Rtmp) PauseRaw() (err error)

func (*Rtmp) PauseUnpause

func (rtmp *Rtmp) PauseUnpause(timestamp int) (done, incomplete bool, err error)

func (*Rtmp) Play

func (rtmp *Rtmp) Play(stream string) error

func (*Rtmp) PlayTime

func (rtmp *Rtmp) PlayTime(stream string, timestamp int) (err error)

func (*Rtmp) Seek

func (rtmp *Rtmp) Seek(timestamp int) (err error)

func (*Rtmp) SetBufferLength

func (rtmp *Rtmp) SetBufferLength(streamId, len int) (err error)

func (*Rtmp) SetConnectOpt

func (rtmp *Rtmp) SetConnectOpt(opt ...interface{})

func (*Rtmp) SetFixAggrTimestamp

func (rtmp *Rtmp) SetFixAggrTimestamp(sw bool)

func (*Rtmp) SetFlush

func (rtmp *Rtmp) SetFlush(b bool)

func (*Rtmp) SetFlvName

func (rtmp *Rtmp) SetFlvName(name string)

func (*Rtmp) SetNoSeek

func (rtmp *Rtmp) SetNoSeek(b bool)

func (*Rtmp) SetPeerBandwidth

func (rtmp *Rtmp) SetPeerBandwidth(wsz, lim int) (err error)

func (*Rtmp) SetTimestamp

func (rtmp *Rtmp) SetTimestamp(t int)

func (*Rtmp) Unpause

func (rtmp *Rtmp) Unpause(timestamp int) (err error)

func (*Rtmp) Wait

func (rtmp *Rtmp) Wait() (done, incomplete bool, err error)

func (*Rtmp) WaitPause

func (rtmp *Rtmp) WaitPause() (done, incomplete bool, err error)

func (*Rtmp) WaitTest

func (rtmp *Rtmp) WaitTest(testTimeout int) (done, incomplete bool, err error)

func (*Rtmp) WindowAckSize

func (rtmp *Rtmp) WindowAckSize(asz int) (err error)

Jump to

Keyboard shortcuts

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