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

Inheritance: BaseProtocol
Exibir arquivo Open project: langhuihui/csharprtmp Class Usage Examples

Public Properties

Property Type Description
InboundConnectivity InboundConnectivity
InboundSDP Variant
LastRequestSequence uint
OutboundConnectivity OutboundConnectivity

Public Methods

Method Description
ClearResponseMessage ( ) : void
CloseOutboundConnectivity ( ) : void
EnableKeepAlive ( uint period, string keepAliveURI ) : bool
GenerateSessionId ( ) : string
GetInboundConnectivity ( string sdpStreamName, uint bandwidthHint, byte rtcpDetectionInterval ) : InboundConnectivity
GetOutboundConnectivity ( IInNetStream pInNetStream, bool forceTcp ) : OutboundConnectivity
GetRequest ( uint seqId, Variant result, string &content ) : bool
GetStats ( Variant info, uint namespaceId ) : void
Initialize ( Variant parameters ) : bool
PushRequestContent ( string outboundContent, bool append ) : void
PushRequestFirstLine ( string method, string url, string version ) : void
PushRequestHeader ( string name, string value ) : void
PushResponseContent ( string outboundContent, bool append ) : void
PushResponseFirstLine ( string version, uint code, string reason ) : void
PushResponseHeader ( string name, string value ) : void
RtspProtocol ( ) : System
SendKeepAliveOptions ( ) : bool
SendMessage ( Variant headers, string content ) : bool
SendRaw ( MsgHdr message, RTPClient &client, bool isAudio, bool isData ) : bool
SendRaw ( byte buffer ) : bool
SendRequestMessage ( ) : bool
SendResponseMessage ( ) : bool
SetAuthentication ( string wwwAuthenticateHeader, string userName, string password ) : bool
SignalInputData ( int recAmount ) : bool

Private Methods

Method Description
CloseInboundConnectivity ( ) : void
HandleRTSPMessage ( ) : bool
ParseFirstLine ( string line ) : bool
ParseNormalHeaders ( ) : bool

Method Details

ClearResponseMessage() public method

public ClearResponseMessage ( ) : void
return void

CloseOutboundConnectivity() public method

public CloseOutboundConnectivity ( ) : void
return void

EnableKeepAlive() public method

public EnableKeepAlive ( uint period, string keepAliveURI ) : bool
period uint
keepAliveURI string
return bool

GenerateSessionId() public method

public GenerateSessionId ( ) : string
return string

GetInboundConnectivity() public method

public GetInboundConnectivity ( string sdpStreamName, uint bandwidthHint, byte rtcpDetectionInterval ) : InboundConnectivity
sdpStreamName string
bandwidthHint uint
rtcpDetectionInterval byte
return InboundConnectivity

GetOutboundConnectivity() public method

public GetOutboundConnectivity ( IInNetStream pInNetStream, bool forceTcp ) : OutboundConnectivity
pInNetStream IInNetStream
forceTcp bool
return OutboundConnectivity

GetRequest() public method

public GetRequest ( uint seqId, Variant result, string &content ) : bool
seqId uint
result Variant
content string
return bool

GetStats() public method

public GetStats ( Variant info, uint namespaceId ) : void
info Variant
namespaceId uint
return void

Initialize() public method

public Initialize ( Variant parameters ) : bool
parameters Variant
return bool

PushRequestContent() public method

public PushRequestContent ( string outboundContent, bool append ) : void
outboundContent string
append bool
return void

PushRequestFirstLine() public method

public PushRequestFirstLine ( string method, string url, string version ) : void
method string
url string
version string
return void

PushRequestHeader() public method

public PushRequestHeader ( string name, string value ) : void
name string
value string
return void

PushResponseContent() public method

public PushResponseContent ( string outboundContent, bool append ) : void
outboundContent string
append bool
return void

PushResponseFirstLine() public method

public PushResponseFirstLine ( string version, uint code, string reason ) : void
version string
code uint
reason string
return void

PushResponseHeader() public method

public PushResponseHeader ( string name, string value ) : void
name string
value string
return void

RtspProtocol() public method

public RtspProtocol ( ) : System
return System

SendKeepAliveOptions() public method

public SendKeepAliveOptions ( ) : bool
return bool

SendMessage() public method

public SendMessage ( Variant headers, string content ) : bool
headers Variant
content string
return bool

SendRaw() public method

public SendRaw ( MsgHdr message, RTPClient &client, bool isAudio, bool isData ) : bool
message MsgHdr
client RTPClient
isAudio bool
isData bool
return bool

SendRaw() public method

public SendRaw ( byte buffer ) : bool
buffer byte
return bool

SendRequestMessage() public method

public SendRequestMessage ( ) : bool
return bool

SendResponseMessage() public method

public SendResponseMessage ( ) : bool
return bool

SetAuthentication() public method

public SetAuthentication ( string wwwAuthenticateHeader, string userName, string password ) : bool
wwwAuthenticateHeader string
userName string
password string
return bool

SignalInputData() public method

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

Property Details

InboundConnectivity public_oe property

public InboundConnectivity,CSharpRTMP.Core.Protocols.Rtsp InboundConnectivity
return InboundConnectivity

InboundSDP public_oe property

public Variant InboundSDP
return Variant

LastRequestSequence public_oe property

public uint LastRequestSequence
return uint

OutboundConnectivity public_oe property

public OutboundConnectivity,CSharpRTMP.Core.Protocols.Rtsp OutboundConnectivity
return OutboundConnectivity