Documentation ¶
Index ¶
- Constants
- type DecodeError
- type Rtmp
- func (rtmp *Rtmp) CheckStatus(label string, ts int, data interface{}, waitPause bool) (done, incomplete, pauseFound bool, err error)
- func (rtmp *Rtmp) Close() (err error)
- func (rtmp *Rtmp) Command(name string, args []interface{}) (trData interface{}, err error)
- func (rtmp *Rtmp) Connect() (err error)
- func (rtmp *Rtmp) CreateStream() (err error)
- func (rtmp *Rtmp) GetTimestamp() int
- func (rtmp *Rtmp) Pause(timestamp int) (err error)
- func (rtmp *Rtmp) PauseRaw() (err error)
- func (rtmp *Rtmp) PauseUnpause(timestamp int) (done, incomplete bool, err error)
- func (rtmp *Rtmp) Play(stream string) error
- func (rtmp *Rtmp) PlayTime(stream string, timestamp int) (err error)
- func (rtmp *Rtmp) Seek(timestamp int) (err error)
- func (rtmp *Rtmp) SetBufferLength(streamId, len int) (err error)
- func (rtmp *Rtmp) SetConnectOpt(opt ...interface{})
- func (rtmp *Rtmp) SetFixAggrTimestamp(sw bool)
- func (rtmp *Rtmp) SetFlush(b bool)
- func (rtmp *Rtmp) SetFlvName(name string)
- func (rtmp *Rtmp) SetNoSeek(b bool)
- func (rtmp *Rtmp) SetPeerBandwidth(wsz, lim int) (err error)
- func (rtmp *Rtmp) SetTimestamp(t int)
- func (rtmp *Rtmp) Unpause(timestamp int) (err error)
- func (rtmp *Rtmp) Wait() (done, incomplete bool, err error)
- func (rtmp *Rtmp) WaitPause() (done, incomplete bool, err error)
- func (rtmp *Rtmp) WaitTest(testTimeout int) (done, incomplete bool, err error)
- func (rtmp *Rtmp) WindowAckSize(asz int) (err error)
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 ¶
func (*DecodeError) Error ¶
func (e *DecodeError) Error() string
type Rtmp ¶
type Rtmp struct { VideoExists bool // contains filtered or unexported fields }
func (*Rtmp) CheckStatus ¶
func (*Rtmp) CreateStream ¶
func (*Rtmp) GetTimestamp ¶
func (*Rtmp) PauseUnpause ¶
func (*Rtmp) SetBufferLength ¶
func (*Rtmp) SetConnectOpt ¶
func (rtmp *Rtmp) SetConnectOpt(opt ...interface{})
func (*Rtmp) SetFixAggrTimestamp ¶
func (*Rtmp) SetFlvName ¶
func (*Rtmp) SetPeerBandwidth ¶
func (*Rtmp) SetTimestamp ¶
func (*Rtmp) WindowAckSize ¶
Click to show internal directories.
Click to hide internal directories.