fm.liveswitch.IRemoteMedia< TIAudioTrack extends fm.liveswitch.IAudioTrack, TIVideoTrack extends fm.liveswitch.IVideoTrack > Interface Template Reference

Remote media interface. More...

Public Member Functions

abstract fm.liveswitch.Future< Object > changeAudioSinkOutput (fm.liveswitch.SinkOutput audioSinkOutput)
 Changes the audio sink output of the first audio track while the media is active. More...
 
abstract fm.liveswitch.Future< Object > changeVideoSinkOutput (fm.liveswitch.SinkOutput videoSinkOutput)
 Changes the video sink output of the first video track while the media is active. More...
 
abstract fm.liveswitch.SinkOutput getAudioSinkOutput ()
 Gets the current audio sink output of the first audio track. More...
 
abstract fm.liveswitch.Future< fm.liveswitch.SinkOutput[]> getAudioSinkOutputs ()
 Gets the available audio sink outputs of the first audio track. More...
 
abstract fm.liveswitch.SinkOutput getVideoSinkOutput ()
 Gets the current video sink output of the first video track. More...
 
abstract fm.liveswitch.Future< fm.liveswitch.SinkOutput[]> getVideoSinkOutputs ()
 Gets the available video sink outputs of the first video track. More...
 
abstract void setAudioSinkOutput (fm.liveswitch.SinkOutput value)
 Sets the current audio sink output of the first audio track. More...
 
abstract void setVideoSinkOutput (fm.liveswitch.SinkOutput value)
 Sets the current video sink output of the first video track. More...
 
- Public Member Functions inherited from fm.liveswitch.IMedia< TIAudioTrack, TIVideoTrack >
abstract void addOnAudioDestroyed (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the audio track is destroyed. More...
 
abstract void addOnAudioLevel (fm.liveswitch.IAction1< Double > value)
 Adds a handler that is raised periodically when the audio's level is calculated. More...
 
abstract void addOnVideoDestroyed (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the video track is destroyed. More...
 
abstract void addOnVideoSize (fm.liveswitch.IAction1< fm.liveswitch.Size > value)
 Adds a handler that is raised whenever the video's frame size is known, once per frame. More...
 
abstract void addOnVideoSizeChange (fm.liveswitch.IAction1< fm.liveswitch.Size > value)
 Adds a handler that is raised whenever the video's frame size changes. More...
 
abstract void destroy ()
 Destroys this media stack. More...
 
abstract double getAudioGain ()
 Gets a value indicating the audio gain (input amplification). More...
 
abstract int getAudioLevelInterval ()
 Gets the interval in milliseconds between fm.liveswitch.IMedia#addOnAudioLevel events. More...
 
abstract boolean getAudioMuted ()
 Gets a value indicating whether the audio is muted. More...
 
abstract TIAudioTrack getAudioTrack ()
 Gets the audio track. More...
 
abstract TIAudioTrack[] getAudioTracks ()
 Gets the audio tracks. More...
 
abstract double getAudioVolume ()
 Gets a value indicating the audio volume (output resistance). More...
 
abstract String getId ()
 Gets the identifier. More...
 
abstract boolean getVideoMuted ()
 Gets a value indicating whether the video is muted. More...
 
abstract fm.liveswitch.Size getVideoSize ()
 Gets the size of the last processed video frame, if known. More...
 
abstract TIVideoTrack getVideoTrack ()
 Gets the video track. More...
 
abstract TIVideoTrack[] getVideoTracks ()
 Gets the video tracks. More...
 
abstract fm.liveswitch.Future< fm.liveswitch.VideoBuffergrabVideoFrame ()
 Gets the next raw video frame. More...
 
abstract void removeOnAudioDestroyed (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the audio track is destroyed. More...
 
abstract void removeOnAudioLevel (fm.liveswitch.IAction1< Double > value)
 Removes a handler that is raised periodically when the audio's level is calculated. More...
 
abstract void removeOnVideoDestroyed (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the video track is destroyed. More...
 
abstract void removeOnVideoSize (fm.liveswitch.IAction1< fm.liveswitch.Size > value)
 Removes a handler that is raised whenever the video's frame size is known, once per frame. More...
 
abstract void removeOnVideoSizeChange (fm.liveswitch.IAction1< fm.liveswitch.Size > value)
 Removes a handler that is raised whenever the video's frame size changes. More...
 
abstract void setAudioGain (double value)
 Sets a value indicating the audio gain (input amplification). More...
 
abstract void setAudioLevelInterval (int value)
 Sets the interval in milliseconds between fm.liveswitch.IMedia#addOnAudioLevel events. More...
 
abstract void setAudioMuted (boolean value)
 Sets a value indicating whether the audio is muted. More...
 
abstract void setAudioVolume (double value)
 Sets a value indicating the audio volume (output resistance). More...
 
abstract void setId (String value)
 Sets the identifier. More...
 
abstract void setVideoMuted (boolean value)
 Sets a value indicating whether the video is muted. More...
 

Detailed Description

Remote media interface.

Member Function Documentation

◆ changeAudioSinkOutput()

abstract fm.liveswitch.Future<Object> fm.liveswitch.IRemoteMedia< TIAudioTrack extends fm.liveswitch.IAudioTrack, TIVideoTrack extends fm.liveswitch.IVideoTrack >.changeAudioSinkOutput ( fm.liveswitch.SinkOutput  audioSinkOutput)
abstract

Changes the audio sink output of the first audio track while the media is active.

Parameters
audioSinkOutputThe audio sink output.

◆ changeVideoSinkOutput()

abstract fm.liveswitch.Future<Object> fm.liveswitch.IRemoteMedia< TIAudioTrack extends fm.liveswitch.IAudioTrack, TIVideoTrack extends fm.liveswitch.IVideoTrack >.changeVideoSinkOutput ( fm.liveswitch.SinkOutput  videoSinkOutput)
abstract

Changes the video sink output of the first video track while the media is active.

Parameters
videoSinkOutputThe video sink output.

◆ getAudioSinkOutput()

abstract fm.liveswitch.SinkOutput fm.liveswitch.IRemoteMedia< TIAudioTrack extends fm.liveswitch.IAudioTrack, TIVideoTrack extends fm.liveswitch.IVideoTrack >.getAudioSinkOutput ( )
abstract

Gets the current audio sink output of the first audio track.

◆ getAudioSinkOutputs()

abstract fm.liveswitch.Future<fm.liveswitch.SinkOutput[]> fm.liveswitch.IRemoteMedia< TIAudioTrack extends fm.liveswitch.IAudioTrack, TIVideoTrack extends fm.liveswitch.IVideoTrack >.getAudioSinkOutputs ( )
abstract

Gets the available audio sink outputs of the first audio track.

Returns
A future with an array of audio sink outputs.

◆ getVideoSinkOutput()

abstract fm.liveswitch.SinkOutput fm.liveswitch.IRemoteMedia< TIAudioTrack extends fm.liveswitch.IAudioTrack, TIVideoTrack extends fm.liveswitch.IVideoTrack >.getVideoSinkOutput ( )
abstract

Gets the current video sink output of the first video track.

◆ getVideoSinkOutputs()

abstract fm.liveswitch.Future<fm.liveswitch.SinkOutput[]> fm.liveswitch.IRemoteMedia< TIAudioTrack extends fm.liveswitch.IAudioTrack, TIVideoTrack extends fm.liveswitch.IVideoTrack >.getVideoSinkOutputs ( )
abstract

Gets the available video sink outputs of the first video track.

Returns
A future with an array of video sink outputs.

◆ setAudioSinkOutput()

abstract void fm.liveswitch.IRemoteMedia< TIAudioTrack extends fm.liveswitch.IAudioTrack, TIVideoTrack extends fm.liveswitch.IVideoTrack >.setAudioSinkOutput ( fm.liveswitch.SinkOutput  value)
abstract

Sets the current audio sink output of the first audio track.

◆ setVideoSinkOutput()

abstract void fm.liveswitch.IRemoteMedia< TIAudioTrack extends fm.liveswitch.IAudioTrack, TIVideoTrack extends fm.liveswitch.IVideoTrack >.setVideoSinkOutput ( fm.liveswitch.SinkOutput  value)
abstract

Sets the current video sink output of the first video track.