C# Class CSharpRTMP.Core.Protocols.Rtmp.BaseRTMPAppProtocolHandler

Inheritance: BaseAppProtocolHandler
Show file Open project: langhuihui/csharprtmp

Public Properties

Property Type Description
ValidateHandshake bool

Protected Properties

Property Type Description
_adobeAuthSalt string
_adobeAuthSettings Variant
_authMethod string
_connections BaseRTMPProtocol>.Dictionary
_enableCheckBandwidth bool
_lastUsersFileUpdate System.DateTime
_nextInvokeId uint>.Dictionary
_onBWCheckMessage AmfMessage
_onBWCheckStrippedMessage AmfMessage
_resultMessageTracking Dictionary>
_users Variant

Public Methods

Method Description
BaseRTMPAppProtocolHandler ( Variant configuration ) : System
Broadcast ( BaseProtocol from, Variant invokeInfo ) : void
CallClient ( BaseProtocol pTo, string functionName, Variant param ) : void
InboundMessageAvailable ( BaseRTMPProtocol pFrom, Variant messageBody, Channel channel, bool &recycleBody ) : bool
OutboundConnectionEstablished ( OutboundRTMPProtocol pFrom ) : bool
ParseAuthenticationNode ( Variant node, Variant result ) : bool
PullExternalStream ( BaseRTMPProtocol pFrom ) : bool
PullExternalStream ( Uri uri, Variant streamConfig ) : bool
PushLocalStream ( BaseRTMPProtocol pFrom ) : bool
RegisterProtocol ( BaseProtocol protocol ) : void
SharedObjectTrack ( BaseProtocol to, string name, uint version, bool isPersistent, Variant primitives ) : void
UnRegisterProtocol ( BaseProtocol protocol ) : void

Protected Methods

Method Description
ProcessInvokeConnect ( BaseRTMPProtocol pFrom, AmfMessage message ) : bool
ProcessInvokeGeneric ( BaseRTMPProtocol pFrom, AmfMessage request ) : bool
SendRTMPMessage ( BaseRTMPProtocol pTo, AmfMessage message, bool trackResponse = false, bool recycleMessageBody = true ) : bool

Private Methods

Method Description
AuthenticateInbound ( BaseRTMPProtocol pFrom, AmfMessage request, Variant authState ) : bool
AuthenticateInboundAdobe ( BaseRTMPProtocol pFrom, AmfMessage request, Variant authState ) : bool
ConnectForPullPush ( BaseRTMPProtocol pFrom, string uriPath, Variant streamConfig, bool isPull ) : bool
GenerateMetaFiles ( ) : void
GetAuthPassword ( string user ) : string
GetMetaData ( string streamName, bool extractInnerMetadata ) : Variant
NeedsToPullExternalStream ( BaseRTMPProtocol pFrom ) : bool
NeedsToPushLocalStream ( BaseRTMPProtocol pFrom ) : bool
NormalizeStreamName ( string streamName ) : string
ProcessInvokeConnectResult ( BaseRTMPProtocol pFrom, AmfMessage request, AmfMessage response ) : bool
ProcessInvokeCreateStreamResult ( BaseRTMPProtocol pFrom, AmfMessage request, AmfMessage response ) : bool
ProcessInvokeOnStatus ( BaseRTMPProtocol pFrom, AmfMessage request ) : bool
TryLinkToFileStream ( BaseRTMPProtocol pFrom, uint streamId, Variant metadata, string streamName, double startTime, double length, bool &linked ) : bool
TryLinkToLiveStream ( BaseRTMPProtocol pFrom, uint streamId, string streamName, bool &linked ) : bool

Method Details

BaseRTMPAppProtocolHandler() public method

public BaseRTMPAppProtocolHandler ( Variant configuration ) : System
configuration Variant
return System

Broadcast() public method

public Broadcast ( BaseProtocol from, Variant invokeInfo ) : void
from BaseProtocol
invokeInfo Variant
return void

CallClient() public method

public CallClient ( BaseProtocol pTo, string functionName, Variant param ) : void
pTo BaseProtocol
functionName string
param Variant
return void

InboundMessageAvailable() public method

public InboundMessageAvailable ( BaseRTMPProtocol pFrom, Variant messageBody, Channel channel, bool &recycleBody ) : bool
pFrom BaseRTMPProtocol
messageBody Variant
channel Channel
recycleBody bool
return bool

OutboundConnectionEstablished() public method

public OutboundConnectionEstablished ( OutboundRTMPProtocol pFrom ) : bool
pFrom Core.Protocols.Rtmp.OutboundRTMPProtocol
return bool

ParseAuthenticationNode() public method

public ParseAuthenticationNode ( Variant node, Variant result ) : bool
node Variant
result Variant
return bool

ProcessInvokeConnect() protected method

protected ProcessInvokeConnect ( BaseRTMPProtocol pFrom, AmfMessage message ) : bool
pFrom BaseRTMPProtocol
message AmfMessage
return bool

ProcessInvokeGeneric() protected method

protected ProcessInvokeGeneric ( BaseRTMPProtocol pFrom, AmfMessage request ) : bool
pFrom BaseRTMPProtocol
request AmfMessage
return bool

PullExternalStream() public method

public PullExternalStream ( BaseRTMPProtocol pFrom ) : bool
pFrom BaseRTMPProtocol
return bool

PullExternalStream() public method

public PullExternalStream ( Uri uri, Variant streamConfig ) : bool
uri System.Uri
streamConfig Variant
return bool

PushLocalStream() public method

public PushLocalStream ( BaseRTMPProtocol pFrom ) : bool
pFrom BaseRTMPProtocol
return bool

RegisterProtocol() public method

public RegisterProtocol ( BaseProtocol protocol ) : void
protocol BaseProtocol
return void

SendRTMPMessage() protected method

protected SendRTMPMessage ( BaseRTMPProtocol pTo, AmfMessage message, bool trackResponse = false, bool recycleMessageBody = true ) : bool
pTo BaseRTMPProtocol
message AmfMessage
trackResponse bool
recycleMessageBody bool
return bool

SharedObjectTrack() public method

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

UnRegisterProtocol() public method

public UnRegisterProtocol ( BaseProtocol protocol ) : void
protocol BaseProtocol
return void

Property Details

ValidateHandshake public property

public bool ValidateHandshake
return bool

_adobeAuthSalt protected property

protected string _adobeAuthSalt
return string

_adobeAuthSettings protected property

protected Variant _adobeAuthSettings
return Variant

_authMethod protected property

protected string _authMethod
return string

_connections protected property

protected Dictionary _connections
return BaseRTMPProtocol>.Dictionary

_enableCheckBandwidth protected property

protected bool _enableCheckBandwidth
return bool

_lastUsersFileUpdate protected property

protected DateTime,System _lastUsersFileUpdate
return System.DateTime

_nextInvokeId protected property

protected Dictionary _nextInvokeId
return uint>.Dictionary

_onBWCheckMessage protected property

protected AmfMessage,CSharpRTMP.Core.Protocols.Rtmp _onBWCheckMessage
return AmfMessage

_onBWCheckStrippedMessage protected property

protected AmfMessage,CSharpRTMP.Core.Protocols.Rtmp _onBWCheckStrippedMessage
return AmfMessage

_resultMessageTracking protected property

protected Dictionary> _resultMessageTracking
return Dictionary>

_users protected property

protected Variant _users
return Variant