Interface IMediaTrack
Media track interface.
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public interface IMediaTrack
Properties
Muted
Gets or sets a value indicating whether this track is muted.
Declaration
bool Muted { get; set; }
Property Value
Type | Description |
---|---|
System. |
SinkOutput
Gets or sets the current sink output.
Declaration
SinkOutput SinkOutput { get; set; }
Property Value
Type | Description |
---|---|
Sink |
SourceInput
Gets or sets the current source input.
Declaration
SourceInput SourceInput { get; set; }
Property Value
Type | Description |
---|---|
Source |
Methods
ChangeSinkOutput(SinkOutput)
Changes the sink output while the media track is active.
Declaration
Future<object> ChangeSinkOutput(SinkOutput sinkOutput)
Parameters
Type | Name | Description |
---|---|---|
Sink |
sinkOutput | The sink output. |
Returns
Type | Description |
---|---|
Future<System. |
ChangeSourceInput(SourceInput)
Changes the source input while the media track is active.
Declaration
Future<object> ChangeSourceInput(SourceInput sourceInput)
Parameters
Type | Name | Description |
---|---|---|
Source |
sourceInput | The source input. |
Returns
Type | Description |
---|---|
Future<System. |
Destroy()
Destroys this media track.
Declaration
bool Destroy()
Returns
Type | Description |
---|---|
System. |
GetSinkOutputs()
Gets the available sink outputs.
Declaration
Future<SinkOutput[]> GetSinkOutputs()
Returns
Type | Description |
---|---|
Future<Sink |
A future with an array of sink outputs. |
GetSourceInputs()
Gets the available source inputs.
Declaration
Future<SourceInput[]> GetSourceInputs()
Returns
Type | Description |
---|---|
Future<Source |
A future with an array of source inputs. |
Events
OnDestroyed
Raised when the track is destroyed.
Declaration
event Action0 OnDestroyed
Event Type
Type | Description |
---|---|
Action0 |
OnMuted
Raised when the track is muted. Only applicable for local media tracks.
Declaration
event Action0 OnMuted
Event Type
Type | Description |
---|---|
Action0 |
OnStarted
Raised when the track is started. Only applicable for local media tracks.
Declaration
event Action0 OnStarted
Event Type
Type | Description |
---|---|
Action0 |
OnStopped
Raised when the track is stopped. Only applicable for local media tracks.
Declaration
event Action0 OnStopped
Event Type
Type | Description |
---|---|
Action0 |
OnUnmuted
Raised when the track is unmuted. Only applicable for local media tracks.
Declaration
event Action0 OnUnmuted
Event Type
Type | Description |
---|---|
Action0 |