Class Stream
A peer-to-peer stream.
Inheritance
Implements
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public abstract class Stream : StreamBase, IEquatable<NSObject>, INSObjectProtocol, INativeObject, IDisposable, IStream
Constructors
Stream(StreamType)
Initializes a new instance of the Stream class.
Declaration
public Stream(StreamType type)
Parameters
Type | Name | Description |
---|---|---|
StreamType | type | The type. |
Properties
Deactivated
Gets or sets a value indicating whether this stream is deactivated. A stream is deactivated if its direction is unset or inactive.
Declaration
public bool Deactivated { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Disabled
Gets or sets a value indicating whether this stream is disabled. A stream is disabled if session negotiation failed or if the underlying transport could not be started.
Declaration
public bool Disabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EncryptionMode
Gets or sets the encryption mode.
Declaration
public EncryptionMode EncryptionMode { get; set; }
Property Value
Type | Description |
---|---|
EncryptionMode |
EncryptionModes
Gets or sets the encryption modes.
Declaration
public EncryptionMode[] EncryptionModes { get; set; }
Property Value
Type | Description |
---|---|
EncryptionMode[] |
EncryptionPolicy
Gets or sets a value indicating Encryption Policy
Declaration
public EncryptionPolicy EncryptionPolicy { get; set; }
Property Value
Type | Description |
---|---|
EncryptionPolicy |
Index
Gets the index.
Declaration
public int Index { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
LocalIceParameters
Gets or sets the local ICE parameters.
Declaration
public IceParameters LocalIceParameters { get; }
Property Value
Type | Description |
---|---|
IceParameters |
RemoteIceParameters
Gets the remote ICE parameters.
Declaration
public IceParameters RemoteIceParameters { get; }
Property Value
Type | Description |
---|---|
IceParameters |
SdesPolicy
Gets or sets Sdes policy for stream.
Declaration
public SdesPolicy SdesPolicy { get; set; }
Property Value
Type | Description |
---|---|
SdesPolicy |
UseDtls
Gets or sets a value indicating whether DTLS encryption is in use for this stream.
Declaration
public bool UseDtls { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
UseSdes
Gets or sets a value indicating whether SDES encryption is in use for this stream.
Declaration
public virtual bool UseSdes { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
ProcessBundledStateChanged(Boolean)
Processes bundled state change of this stream.
Declaration
protected virtual void ProcessBundledStateChanged(bool bundled)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | bundled |
ProcessCachedSettings()
Evaluate cached settings and set them
Declaration
protected virtual void ProcessCachedSettings()
RaiseDisabledChange()
Raises the OnDisabledChange event.
Declaration
protected void RaiseDisabledChange()
Events
OnDisabledChange
Raised when the Disabled property changes state.
Declaration
public event Action0 OnDisabledChange
Event Type
Type | Description |
---|---|
Action0 |
OnDisabledChangeWithCaller
Raised when the Disabled property changes state.
Declaration
public event Action1<object> OnDisabledChangeWithCaller
Event Type
Type | Description |
---|---|
Action1<System.Object> |