C# Class RTMP.Client

Show file Open project: Austech/RTMP-CSharp Class Usage Examples

Public Properties

Property Type Description
MyDataFrame DataFrame
PublisherId string
StreamId int

Public Methods

Method Description
Client ( ) : System
Connect ( string ip, int port = 1935 ) : void
SendAmf ( AmfWriter amf ) : void
SendChunkSize ( uint chunkSize ) : void
SendDebugAudioData ( ) : void
SendDebugVideoData ( ) : void
SendFlv ( FlvTag flvs ) : void
Start ( ) : void
Stop ( ) : void
Update ( ) : void

Protected Methods

Method Description
HandshakeOver ( ) : void
ParseAcknowledgement ( int value ) : void
ParseAmf ( AmfData amf ) : void
ParseClientBandwidth ( int amount, byte limitType ) : void
ParseMessage ( RtmpMessageTypeId messageType, EndianBinaryReader reader ) : void
ParseServerBandwidth ( int amount ) : void
ParseSetChunkSize ( int chunkSize ) : void
ParseUserControlMessage ( byte eventType ) : void

Private Methods

Method Description
Connect ( string type = "app" ) : void
ParseS1Handshake ( ) : void
SendC0Handshake ( ) : void
SendC1Handshake ( ) : void
SendC2Handshake ( ) : void
SendWindowAcknowledgementSize ( ) : void
createStream ( ) : void
publish ( string id ) : void
sendMessage ( byte data, RtmpMessageTypeId messageType ) : void

Method Details

Client() public method

public Client ( ) : System
return System

Connect() public method

public Connect ( string ip, int port = 1935 ) : void
ip string
port int
return void

HandshakeOver() protected method

protected HandshakeOver ( ) : void
return void

ParseAcknowledgement() protected method

protected ParseAcknowledgement ( int value ) : void
value int
return void

ParseAmf() protected method

protected ParseAmf ( AmfData amf ) : void
amf AmfData
return void

ParseClientBandwidth() protected method

protected ParseClientBandwidth ( int amount, byte limitType ) : void
amount int
limitType byte
return void

ParseMessage() protected method

protected ParseMessage ( RtmpMessageTypeId messageType, EndianBinaryReader reader ) : void
messageType RtmpMessageTypeId
reader EndianBinaryReader
return void

ParseServerBandwidth() protected method

protected ParseServerBandwidth ( int amount ) : void
amount int
return void

ParseSetChunkSize() protected method

protected ParseSetChunkSize ( int chunkSize ) : void
chunkSize int
return void

ParseUserControlMessage() protected method

protected ParseUserControlMessage ( byte eventType ) : void
eventType byte
return void

SendAmf() public method

public SendAmf ( AmfWriter amf ) : void
amf AmfWriter
return void

SendChunkSize() public method

public SendChunkSize ( uint chunkSize ) : void
chunkSize uint
return void

SendDebugAudioData() public method

public SendDebugAudioData ( ) : void
return void

SendDebugVideoData() public method

public SendDebugVideoData ( ) : void
return void

SendFlv() public method

public SendFlv ( FlvTag flvs ) : void
flvs FlvTag
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

MyDataFrame public property

public DataFrame,RTMP MyDataFrame
return DataFrame

PublisherId public property

public string PublisherId
return string

StreamId public property

public int StreamId
return int