<FMLiveSwitchIMediaTrack> Protocol Reference

Media track interface. More...

Instance Methods

(void) - addOnDestroyed:
 Adds a handler that is raised when the track is destroyed. More...
 
(void) - addOnMuted:
 Adds a handler that is raised when the track is muted. More...
 
(void) - addOnStarted:
 Adds a handler that is raised when the track is started. More...
 
(void) - addOnStopped:
 Adds a handler that is raised when the track is stopped. More...
 
(void) - addOnUnmuted:
 Adds a handler that is raised when the track is unmuted. More...
 
(FMLiveSwitchFuture *) - changeSinkOutput:
 Changes the sink output while the media track is active. More...
 
(FMLiveSwitchFuture *) - changeSourceInput:
 Changes the source input while the media track is active. More...
 
(bool) - destroy
 Destroys this media track. More...
 
(FMLiveSwitchFuture *) - getSinkOutputs
 Gets the available sink outputs. More...
 
(FMLiveSwitchFuture *) - getSourceInputs
 Gets the available source inputs. More...
 
(bool) - muted
 Gets a value indicating whether this track is muted. More...
 
(void) - removeOnDestroyed:
 Removes a handler that is raised when the track is destroyed. More...
 
(void) - removeOnMuted:
 Removes a handler that is raised when the track is muted. More...
 
(void) - removeOnStarted:
 Removes a handler that is raised when the track is started. More...
 
(void) - removeOnStopped:
 Removes a handler that is raised when the track is stopped. More...
 
(void) - removeOnUnmuted:
 Removes a handler that is raised when the track is unmuted. More...
 
(void) - setMuted:
 Sets a value indicating whether this track is muted. More...
 
(void) - setSinkOutput:
 Sets the current sink output. More...
 
(void) - setSourceInput:
 Sets the current source input. More...
 
(FMLiveSwitchSinkOutput *) - sinkOutput
 Gets the current sink output. More...
 
(FMLiveSwitchSourceInput *) - sourceInput
 Gets the current source input. More...
 

Detailed Description

Media track interface.

Method Documentation

◆ addOnDestroyed:

- (void) addOnDestroyed: (FMLiveSwitchAction0 *)  value

Adds a handler that is raised when the track is destroyed.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ addOnMuted:

- (void) addOnMuted: (FMLiveSwitchAction0 *)  value

Adds a handler that is raised when the track is muted.

Only applicable for local media tracks.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ addOnStarted:

- (void) addOnStarted: (FMLiveSwitchAction0 *)  value

Adds a handler that is raised when the track is started.

Only applicable for local media tracks.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ addOnStopped:

- (void) addOnStopped: (FMLiveSwitchAction0 *)  value

Adds a handler that is raised when the track is stopped.

Only applicable for local media tracks.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ addOnUnmuted:

- (void) addOnUnmuted: (FMLiveSwitchAction0 *)  value

Adds a handler that is raised when the track is unmuted.

Only applicable for local media tracks.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ changeSinkOutput:

- (FMLiveSwitchFuture*) changeSinkOutput: (FMLiveSwitchSinkOutput *)  sinkOutput

Changes the sink output while the media track is active.

Parameters
sinkOutputThe sink output.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ changeSourceInput:

- (FMLiveSwitchFuture*) changeSourceInput: (FMLiveSwitchSourceInput *)  sourceInput

Changes the source input while the media track is active.

Parameters
sourceInputThe source input.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ destroy

- (bool) destroy

Destroys this media track.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ getSinkOutputs

- (FMLiveSwitchFuture*) getSinkOutputs

Gets the available sink outputs.

Returns
A future with an array of sink outputs.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ getSourceInputs

- (FMLiveSwitchFuture*) getSourceInputs

Gets the available source inputs.

Returns
A future with an array of source inputs.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ muted

- (bool) muted

Gets a value indicating whether this track is muted.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ removeOnDestroyed:

- (void) removeOnDestroyed: (FMLiveSwitchAction0 *)  value

Removes a handler that is raised when the track is destroyed.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ removeOnMuted:

- (void) removeOnMuted: (FMLiveSwitchAction0 *)  value

Removes a handler that is raised when the track is muted.

Only applicable for local media tracks.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ removeOnStarted:

- (void) removeOnStarted: (FMLiveSwitchAction0 *)  value

Removes a handler that is raised when the track is started.

Only applicable for local media tracks.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ removeOnStopped:

- (void) removeOnStopped: (FMLiveSwitchAction0 *)  value

Removes a handler that is raised when the track is stopped.

Only applicable for local media tracks.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ removeOnUnmuted:

- (void) removeOnUnmuted: (FMLiveSwitchAction0 *)  value

Removes a handler that is raised when the track is unmuted.

Only applicable for local media tracks.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ setMuted:

- (void) setMuted: (bool)  value

Sets a value indicating whether this track is muted.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ setSinkOutput:

- (void) setSinkOutput: (FMLiveSwitchSinkOutput *)  value

Sets the current sink output.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ setSourceInput:

- (void) setSourceInput: (FMLiveSwitchSourceInput *)  value

Sets the current source input.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ sinkOutput

- (FMLiveSwitchSinkOutput*) sinkOutput

Gets the current sink output.

Reimplemented in FMLiveSwitchMediaTrackBase.

◆ sourceInput

- (FMLiveSwitchSourceInput*) sourceInput

Gets the current source input.

Reimplemented in FMLiveSwitchMediaTrackBase.