C# Class CSharpRTMP.Core.Protocols.Cluster.BaseClusterProtocol

Inheritance: BaseProtocol
Datei anzeigen Open project: langhuihui/csharprtmp Class Usage Examples

Public Properties

Property Type Description
InStreams InClusterStream>.Dictionary
SOs HashSet

Public Methods

Method Description
Broadcast ( uint appId, BaseProtocol pFrom, Variant invokeInfo ) : void
Deserialize ( ) : Variant
GetRoom ( string appName ) : BaseClientApplication
GetRoom ( uint appId ) : BaseClientApplication
PlayStream ( uint appId, string streamName ) : void
PublishStream ( uint appId, IInStream inNetStream, string type = "live" ) : void
Send ( ClusterMessageType type ) : void
Send ( ClusterMessageType type, Action writeAction ) : void
Send ( ClusterMessageType type, InputStream message ) : void
Send ( ClusterMessageType type, object message ) : void
Send ( ClusterMessageType type, uint streamId, Stream pData, uint dataLength, uint processedLength, uint totalLength, uint absoluteTimestamp ) : void
SharedObjectTrack ( BaseClientApplication app, string name, uint version, bool isPersistent, Variant primitives ) : void
SignalInputData ( int recAmount ) : bool

Protected Methods

Method Description
FeedData ( bool isAudio ) : void
OnReceive ( ClusterMessageType type ) : void

Method Details

Broadcast() public method

public Broadcast ( uint appId, BaseProtocol pFrom, Variant invokeInfo ) : void
appId uint
pFrom BaseProtocol
invokeInfo Variant
return void

Deserialize() public method

public Deserialize ( ) : Variant
return Variant

FeedData() protected method

protected FeedData ( bool isAudio ) : void
isAudio bool
return void

GetRoom() public method

public GetRoom ( string appName ) : BaseClientApplication
appName string
return BaseClientApplication

GetRoom() public method

public GetRoom ( uint appId ) : BaseClientApplication
appId uint
return BaseClientApplication

OnReceive() protected method

protected OnReceive ( ClusterMessageType type ) : void
type ClusterMessageType
return void

PlayStream() public method

public PlayStream ( uint appId, string streamName ) : void
appId uint
streamName string
return void

PublishStream() public method

public PublishStream ( uint appId, IInStream inNetStream, string type = "live" ) : void
appId uint
inNetStream IInStream
type string
return void

Send() public method

public Send ( ClusterMessageType type ) : void
type ClusterMessageType
return void

Send() public method

public Send ( ClusterMessageType type, Action writeAction ) : void
type ClusterMessageType
writeAction Action
return void

Send() public method

public Send ( ClusterMessageType type, InputStream message ) : void
type ClusterMessageType
message CSharpRTMP.Common.InputStream
return void

Send() public method

public Send ( ClusterMessageType type, object message ) : void
type ClusterMessageType
message object
return void

Send() public method

public Send ( ClusterMessageType type, uint streamId, Stream pData, uint dataLength, uint processedLength, uint totalLength, uint absoluteTimestamp ) : void
type ClusterMessageType
streamId uint
pData Stream
dataLength uint
processedLength uint
totalLength uint
absoluteTimestamp uint
return void

SharedObjectTrack() public method

public SharedObjectTrack ( BaseClientApplication app, string name, uint version, bool isPersistent, Variant primitives ) : void
app BaseClientApplication
name string
version uint
isPersistent bool
primitives Variant
return void

SignalInputData() public method

public SignalInputData ( int recAmount ) : bool
recAmount int
return bool

Property Details

InStreams public_oe property

public Dictionary InStreams
return InClusterStream>.Dictionary

SOs public_oe property

public HashSet SOs
return HashSet