C# Class CSharpRTMP.Core.Protocols.Rtsp.BaseRtspAppProtocolHandler

Inheritance: BaseAppProtocolHandler
Exibir arquivo Open project: langhuihui/csharprtmp

Public Methods

Method Description
BaseRtspAppProtocolHandler ( Variant configuration ) : System
Broadcast ( BaseProtocol @from, Variant invokeInfo ) : void
CallClient ( BaseProtocol to, string functionName, Variant param ) : void
HandleRTSPRequest ( RtspProtocol from, Variant requestHeaders, string requestContent ) : bool
HandleRTSPResponse ( RtspProtocol rtspProtocol, Variant responseHeaders, string &responseContent ) : bool
ParseAuthenticationNode ( Variant node, Variant result ) : 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
GetAuthenticationRealm ( RtspProtocol @from, Variant requestHeaders, string requestContent ) : string
NeedAuthentication ( RtspProtocol @from, Variant requestHeaders, string requestContent ) : bool

Private Methods

Method Description
ComputeSDP ( RtspProtocol pFrom, string localStreamName, string targetStreamName, string host ) : string
GetAudioTrack ( RtspProtocol pFrom, StreamCapabilities pCapabilities ) : string
GetInboundStream ( string streamName ) : IInNetStream
GetOutboundConnectivity ( RtspProtocol pFrom, bool forceTcp ) : OutboundConnectivity
GetVideoTrack ( RtspProtocol pFrom, StreamCapabilities pCapabilities ) : string
HandleRTSPRequestAnnounce ( RtspProtocol pFrom, Variant requestHeaders, string requestContent ) : bool
HandleRTSPRequestPlay ( RtspProtocol pFrom, Variant requestHeaders, string requestContent ) : bool
HandleRTSPRequestSetupInbound ( RtspProtocol @from, Variant requestHeaders, string requestContent ) : bool
HandleRTSPRequestSetupOutbound ( RtspProtocol @from, Variant requestHeaders, string requestContent ) : bool
HandleRTSPResponse ( RtspProtocol rtspProtocol, Variant requestHeaders, string &requestContent, Variant responseHeaders, string &responseContent ) : bool
HandleRTSPResponse200Announce ( RtspProtocol rtspProtocol, Variant requestHeaders, string &requestContent, Variant responseHeaders, string &responseContent ) : bool
HandleRTSPResponse200Describe ( RtspProtocol rtspProtocol, Variant requestHeaders, string &requestContent, Variant responseHeaders, string &responseContent ) : bool
HandleRTSPResponse200Options ( RtspProtocol rtspProtocol, Variant requestHeaders, string &requestContent, Variant responseHeaders, string &responseContent ) : bool
HandleRTSPResponse200Play ( RtspProtocol rtspProtocol, Variant requestHeaders, string &requestContent, Variant responseHeaders, string &responseContent ) : bool
HandleRTSPResponse200Record ( RtspProtocol rtspProtocol, Variant requestHeaders, string &requestContent, Variant responseHeaders, string &responseContent ) : bool
HandleRTSPResponse200Setup ( RtspProtocol rtspProtocol, Variant requestHeaders, string &requestContent, Variant responseHeaders, string &responseContent ) : bool
ParseUsersFile ( ) : bool
SendAuthenticationChallenge ( RtspProtocol from, Variant realm ) : bool
SendSetupTrackMessages ( RtspProtocol rtspProtocol ) : bool

Method Details

BaseRtspAppProtocolHandler() public method

public BaseRtspAppProtocolHandler ( 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 to, string functionName, Variant param ) : void
to BaseProtocol
functionName string
param Variant
return void

GetAuthenticationRealm() protected method

protected GetAuthenticationRealm ( RtspProtocol @from, Variant requestHeaders, string requestContent ) : string
@from RtspProtocol
requestHeaders Variant
requestContent string
return string

HandleRTSPRequest() public method

public HandleRTSPRequest ( RtspProtocol from, Variant requestHeaders, string requestContent ) : bool
from RtspProtocol
requestHeaders Variant
requestContent string
return bool

HandleRTSPResponse() public method

public HandleRTSPResponse ( RtspProtocol rtspProtocol, Variant responseHeaders, string &responseContent ) : bool
rtspProtocol RtspProtocol
responseHeaders Variant
responseContent string
return bool

NeedAuthentication() protected method

protected NeedAuthentication ( RtspProtocol @from, Variant requestHeaders, string requestContent ) : bool
@from RtspProtocol
requestHeaders Variant
requestContent string
return bool

ParseAuthenticationNode() public method

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

RegisterProtocol() public method

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

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