fm.liveswitch.VideoTrack Class Reference

A video track. More...

Public Member Functions

void addOnSize (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...
 
void addOnSizeChange (fm.liveswitch.IAction1< fm.liveswitch.Size > value)
 Adds a handler that is raised whenever the video's frame size changes. More...
 
boolean destroy ()
 Destroys this media track. More...
 
fm.liveswitch.IVideoElement[] getElements ()
 Gets the elements. More...
 
String getLabel ()
 Gets a label that identifies this class. More...
 
fm.liveswitch.Size getSize ()
 Gets the size of the last processed video frame, if known. More...
 
fm.liveswitch.Future< fm.liveswitch.VideoBuffergrabFrame ()
 Grabs the next raw video frame. More...
 
void removeOnSize (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...
 
void removeOnSizeChange (fm.liveswitch.IAction1< fm.liveswitch.Size > value)
 Removes a handler that is raised whenever the video's frame size changes. More...
 
 VideoTrack ()
 Initializes a new instance of the fm.liveswitch.VideoTrack class. More...
 
 VideoTrack (fm.liveswitch.IVideoElement element)
 Initializes a new instance of the fm.liveswitch.VideoTrack class. More...
 
 VideoTrack (fm.liveswitch.VideoTrack[] tracks)
 Initializes a new instance of the fm.liveswitch.VideoTrack class. More...
 
- Public Member Functions inherited from fm.liveswitch.MediaTrackBase
abstract void addOnDestroyed (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the track is destroyed. More...
 
abstract void addOnMuted (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the track is muted. More...
 
abstract void addOnStarted (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the track is started. More...
 
abstract void addOnStopped (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the track is stopped. More...
 
abstract void addOnUnmuted (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the track is unmuted. More...
 
abstract fm.liveswitch.Future< Object > changeSinkOutput (fm.liveswitch.SinkOutput sinkOutput)
 Changes the sink output while the media track is active. More...
 
abstract fm.liveswitch.Future< Object > changeSourceInput (fm.liveswitch.SourceInput sourceInput)
 Changes the source input while the media track is active. More...
 
abstract boolean getMuted ()
 Gets a value indicating whether this track is muted. More...
 
abstract fm.liveswitch.SinkOutput getSinkOutput ()
 Gets the current sink output. More...
 
abstract fm.liveswitch.Future< fm.liveswitch.SinkOutput[]> getSinkOutputs ()
 Gets the available sink outputs. More...
 
abstract fm.liveswitch.SourceInput getSourceInput ()
 Gets the current source input. More...
 
abstract fm.liveswitch.Future< fm.liveswitch.SourceInput[]> getSourceInputs ()
 Gets the available source inputs. More...
 
abstract void removeOnDestroyed (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the track is destroyed. More...
 
abstract void removeOnMuted (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the track is muted. More...
 
abstract void removeOnStarted (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the track is started. More...
 
abstract void removeOnStopped (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the track is stopped. More...
 
abstract void removeOnUnmuted (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the track is unmuted. More...
 
abstract void setMuted (boolean value)
 Sets a value indicating whether this track is muted. More...
 
abstract void setSinkOutput (fm.liveswitch.SinkOutput value)
 Sets the current sink output. More...
 
abstract void setSourceInput (fm.liveswitch.SourceInput value)
 Sets the current source input. More...
 
- Public Member Functions inherited from fm.liveswitch.Dynamic
java.util.HashMap< String, Object > getDynamicProperties ()
 Gets all dynamic properties on this instance. More...
 
Object getDynamicValue (String key)
 Gets a property value from the local cache. More...
 
void setDynamicValue (String key, Object value)
 Sets a property value in the local cache. More...
 
boolean unsetDynamicValue (String key)
 Removes a property value from the local cache. More...
 
- Public Member Functions inherited from fm.liveswitch.IMediaElement
abstract boolean getDeactivated ()
 Gets a value indicating whether this instance is deactivated. More...
 
abstract boolean getDisabled ()
 Gets a value indicating whether this instance is disabled. More...
 
abstract boolean getMuted ()
 Gets a value indicating whether this instance is muted. More...
 
abstract boolean getPaused ()
 Gets a value indicating whether this instance is paused. More...
 
abstract boolean getPersistent ()
 Gets a value indicating whether this instance is persistent. More...
 
abstract void setDeactivated (boolean value)
 Sets a value indicating whether this instance is deactivated. More...
 
abstract void setMuted (boolean value)
 Sets a value indicating whether this instance is muted. More...
 
- Public Member Functions inherited from fm.liveswitch.IElement
abstract String getExternalId ()
 Gets the external identifier. More...
 
abstract String getId ()
 Gets the identifier. More...
 
abstract String getPipelineJson ()
 Gets the pipeline JSON with this as the central point. More...
 
abstract void setExternalId (String value)
 Sets the external identifier. More...
 

Protected Member Functions

void addElement (fm.liveswitch.IVideoElement element)
 Adds an element. More...
 
fm.liveswitch.IVideoInput[] arrayFromInputs (java.util.ArrayList< fm.liveswitch.IVideoInput > inputs)
 Creates an array of inputs from a list of inputs. More...
 
fm.liveswitch.IVideoOutput[] arrayFromOutputs (java.util.ArrayList< fm.liveswitch.IVideoOutput > outputs)
 Creates an array of outputs from a list of outputs. More...
 
fm.liveswitch.VideoSink[] arrayFromSinks (java.util.ArrayList< fm.liveswitch.VideoSink > sinks)
 Creates an array of sinks from a list of sinks. More...
 
fm.liveswitch.VideoBranch branchFromTracks (fm.liveswitch.VideoTrack[] tracks)
 Creates a branch from an array of tracks. More...
 
boolean isBranch (fm.liveswitch.IVideoElement element)
 Determines whether the specified element is a branch. More...
 
boolean isInput (fm.liveswitch.IVideoElement element)
 Determines whether the specified element is an input. More...
 
boolean isOutput (fm.liveswitch.IVideoElement element)
 Determines whether the specified element is an output. More...
 
boolean isPipe (fm.liveswitch.IVideoElement element)
 Determines whether the specified element is a pipe. More...
 
boolean isSink (fm.liveswitch.IVideoElement element)
 Determines whether the specified element is a sink. More...
 
boolean isSource (fm.liveswitch.IVideoElement element)
 Determines whether the specified element is a source. More...
 
boolean isStream (fm.liveswitch.IVideoElement element)
 Determines whether the specified element is a stream. More...
 
- Protected Member Functions inherited from fm.liveswitch.MediaTrackBase
 MediaTrackBase ()
 
- Protected Member Functions inherited from fm.liveswitch.Dynamic
 Dynamic ()
 
- Protected Member Functions inherited from fm.liveswitch.Serializable
boolean getIsDirty ()
 Gets a value indicating whether this instance is dirty. More...
 
 Serializable ()
 Initializes a new instance of the fm.liveswitch.Serializable class. More...
 
void setIsDirty (boolean value)
 Sets a value indicating whether this instance is dirty. More...
 

Detailed Description

A video track.

Constructor & Destructor Documentation

◆ VideoTrack() [1/3]

fm.liveswitch.VideoTrack.VideoTrack ( )

Initializes a new instance of the fm.liveswitch.VideoTrack class.

◆ VideoTrack() [2/3]

fm.liveswitch.VideoTrack.VideoTrack ( fm.liveswitch.IVideoElement  element)

Initializes a new instance of the fm.liveswitch.VideoTrack class.

Parameters
elementThe element.

◆ VideoTrack() [3/3]

fm.liveswitch.VideoTrack.VideoTrack ( fm.liveswitch.VideoTrack[]  tracks)

Initializes a new instance of the fm.liveswitch.VideoTrack class.

Parameters
tracksThe branch of tracks.

Member Function Documentation

◆ addElement()

void fm.liveswitch.VideoTrack.addElement ( fm.liveswitch.IVideoElement  element)
protected

Adds an element.

Parameters
element

◆ addOnSize()

void fm.liveswitch.VideoTrack.addOnSize ( fm.liveswitch.IAction1< fm.liveswitch.Size value)

Adds a handler that is raised whenever the video's frame size is known, once per frame.

Implements fm.liveswitch.IVideoTrack.

◆ addOnSizeChange()

void fm.liveswitch.VideoTrack.addOnSizeChange ( fm.liveswitch.IAction1< fm.liveswitch.Size value)

Adds a handler that is raised whenever the video's frame size changes.

Implements fm.liveswitch.IVideoTrack.

◆ arrayFromInputs()

fm.liveswitch.IVideoInput [] fm.liveswitch.VideoTrack.arrayFromInputs ( java.util.ArrayList< fm.liveswitch.IVideoInput inputs)
protected

Creates an array of inputs from a list of inputs.

Parameters
inputsThe list of inputs.

◆ arrayFromOutputs()

fm.liveswitch.IVideoOutput [] fm.liveswitch.VideoTrack.arrayFromOutputs ( java.util.ArrayList< fm.liveswitch.IVideoOutput outputs)
protected

Creates an array of outputs from a list of outputs.

Parameters
outputsThe list of outputs.

◆ arrayFromSinks()

fm.liveswitch.VideoSink [] fm.liveswitch.VideoTrack.arrayFromSinks ( java.util.ArrayList< fm.liveswitch.VideoSink sinks)
protected

Creates an array of sinks from a list of sinks.

Parameters
sinksThe list of sinks.

◆ branchFromTracks()

fm.liveswitch.VideoBranch fm.liveswitch.VideoTrack.branchFromTracks ( fm.liveswitch.VideoTrack[]  tracks)
protected

Creates a branch from an array of tracks.

Parameters
tracksThe tracks.

◆ destroy()

boolean fm.liveswitch.VideoTrack.destroy ( )

Destroys this media track.

Implements fm.liveswitch.IMediaTrack.

◆ getElements()

fm.liveswitch.IVideoElement [] fm.liveswitch.VideoTrack.getElements ( )

Gets the elements.

◆ getLabel()

String fm.liveswitch.VideoTrack.getLabel ( )

Gets a label that identifies this class.

Implements fm.liveswitch.IMediaElement.

◆ getSize()

fm.liveswitch.Size fm.liveswitch.VideoTrack.getSize ( )

Gets the size of the last processed video frame, if known.

Implements fm.liveswitch.IVideoTrack.

◆ grabFrame()

fm.liveswitch.Future<fm.liveswitch.VideoBuffer> fm.liveswitch.VideoTrack.grabFrame ( )

Grabs the next raw video frame.

Implements fm.liveswitch.IVideoTrack.

◆ isBranch()

boolean fm.liveswitch.VideoTrack.isBranch ( fm.liveswitch.IVideoElement  element)
protected

Determines whether the specified element is a branch.

Parameters
elementThe element.

◆ isInput()

boolean fm.liveswitch.VideoTrack.isInput ( fm.liveswitch.IVideoElement  element)
protected

Determines whether the specified element is an input.

Parameters
elementThe element.

◆ isOutput()

boolean fm.liveswitch.VideoTrack.isOutput ( fm.liveswitch.IVideoElement  element)
protected

Determines whether the specified element is an output.

Parameters
elementThe element.

◆ isPipe()

boolean fm.liveswitch.VideoTrack.isPipe ( fm.liveswitch.IVideoElement  element)
protected

Determines whether the specified element is a pipe.

Parameters
elementThe element.

◆ isSink()

boolean fm.liveswitch.VideoTrack.isSink ( fm.liveswitch.IVideoElement  element)
protected

Determines whether the specified element is a sink.

Parameters
elementThe element.

◆ isSource()

boolean fm.liveswitch.VideoTrack.isSource ( fm.liveswitch.IVideoElement  element)
protected

Determines whether the specified element is a source.

Parameters
elementThe element.

◆ isStream()

boolean fm.liveswitch.VideoTrack.isStream ( fm.liveswitch.IVideoElement  element)
protected

Determines whether the specified element is a stream.

Parameters
elementThe element.

◆ removeOnSize()

void fm.liveswitch.VideoTrack.removeOnSize ( fm.liveswitch.IAction1< fm.liveswitch.Size value)

Removes a handler that is raised whenever the video's frame size is known, once per frame.

Implements fm.liveswitch.IVideoTrack.

◆ removeOnSizeChange()

void fm.liveswitch.VideoTrack.removeOnSizeChange ( fm.liveswitch.IAction1< fm.liveswitch.Size value)

Removes a handler that is raised whenever the video's frame size changes.

Implements fm.liveswitch.IVideoTrack.