Class RemoteMedia
A collection of remote audio/video tracks.
Inheritance
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class RemoteMedia : Media<AudioTrack, VideoTrack>, IRemoteMedia<AudioTrack, VideoTrack>, IMedia<AudioTrack, VideoTrack>
Properties
AudioSink
Gets the first audio sink.
Declaration
public AudioSink AudioSink { get; }
Property Value
Type | Description |
---|---|
AudioSink |
AudioSinkOutput
Gets or sets the current audio sink output of the first audio track.
Declaration
public SinkOutput AudioSinkOutput { get; set; }
Property Value
Type | Description |
---|---|
SinkOutput |
AudioSinks
Gets the audio sinks.
Declaration
public AudioSink[] AudioSinks { get; }
Property Value
Type | Description |
---|---|
AudioSink[] |
MediaSinks
Gets the audio/video sinks.
Declaration
public MediaSinkBase[] MediaSinks { get; }
Property Value
Type | Description |
---|---|
MediaSinkBase[] |
VideoSink
Gets the first video sink.
Declaration
public VideoSink VideoSink { get; }
Property Value
Type | Description |
---|---|
VideoSink |
VideoSinkOutput
Gets or sets the current video sink output of the first video track.
Declaration
public SinkOutput VideoSinkOutput { get; set; }
Property Value
Type | Description |
---|---|
SinkOutput |
VideoSinks
Gets the video sinks.
Declaration
public VideoSink[] VideoSinks { get; }
Property Value
Type | Description |
---|---|
VideoSink[] |
Methods
ArrayFromAudioTracks(List<AudioTrack>)
Creates an array of tracks from a list of audio tracks.
Declaration
protected override AudioTrack[] ArrayFromAudioTracks(List<AudioTrack> tracks)
Parameters
Type | Name | Description |
---|---|---|
List<AudioTrack> | tracks | The list of tracks. |
Returns
Type | Description |
---|---|
AudioTrack[] |
Overrides
ArrayFromVideoTracks(List<VideoTrack>)
Creates an array of tracks from a list of video tracks.
Declaration
protected override VideoTrack[] ArrayFromVideoTracks(List<VideoTrack> tracks)
Parameters
Type | Name | Description |
---|---|---|
List<VideoTrack> | tracks | The list of tracks. |
Returns
Type | Description |
---|---|
VideoTrack[] |
Overrides
ChangeAudioSinkOutput(SinkOutput)
Changes the audio sink output of the first audio track while the media is active.
Declaration
public Future<object> ChangeAudioSinkOutput(SinkOutput audioSinkOutput)
Parameters
Type | Name | Description |
---|---|---|
SinkOutput | audioSinkOutput | The audio sink output. |
Returns
Type | Description |
---|---|
Future<System.Object> |
ChangeVideoSinkOutput(SinkOutput)
Changes the video sink output of the first video track while the media is active.
Declaration
public Future<object> ChangeVideoSinkOutput(SinkOutput videoSinkOutput)
Parameters
Type | Name | Description |
---|---|---|
SinkOutput | videoSinkOutput | The video sink output. |
Returns
Type | Description |
---|---|
Future<System.Object> |
CreateAudioTrackCollection()
Creates an audio track collection.
Declaration
protected override List<AudioTrack> CreateAudioTrackCollection()
Returns
Type | Description |
---|---|
List<AudioTrack> |
Overrides
CreateVideoTrackCollection()
Creates a video track collection.
Declaration
protected override List<VideoTrack> CreateVideoTrackCollection()
Returns
Type | Description |
---|---|
List<VideoTrack> |
Overrides
GetAudioSinkOutputs()
Gets the available audio sink outputs of the first audio track.
Declaration
public Future<SinkOutput[]> GetAudioSinkOutputs()
Returns
Type | Description |
---|---|
Future<SinkOutput[]> | A future with an array of audio sink outputs. |
GetVideoSinkOutputs()
Gets the available video sink outputs of the first video track.
Declaration
public Future<SinkOutput[]> GetVideoSinkOutputs()
Returns
Type | Description |
---|---|
Future<SinkOutput[]> | A future with an array of video sink outputs. |