Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VideoTrack

Hierarchy

  • MediaTrack
    • VideoTrack

Implements

  • IMediaTrack
  • IExternalMediaTrack
  • IVideoTrack
  • IExternalVideoTrack

Index

Constructors

constructor

  • new VideoTrack(media: Media, internalMedia?: IInternalMedia): VideoTrack
  • Parameters

    • media: Media
    • Optional internalMedia: IInternalMedia

    Returns VideoTrack

Properties

Private _internal

_internal: IInternalVideoTrack
internal

Methods

_getInternal

  • _getInternal(): IInternalVideoTrack
  • internal

    Returns IInternalVideoTrack

addOnDestroyed

  • addOnDestroyed(value: IAction0): void
  • Parameters

    • value: IAction0

    Returns void

addOnSize

  • addOnSize(value: IAction1<Size>): void
  • Parameters

    • value: IAction1<Size>

    Returns void

addOnStarted

  • addOnStarted(value: IAction0): void
  • Parameters

    • value: IAction0

    Returns void

addOnStopped

  • addOnStopped(value: IAction0): void
  • Parameters

    • value: IAction0

    Returns void

changeSinkOutput

  • changeSinkOutput(sinkOutput: SinkOutput): Future<Object>
  • Parameters

    • sinkOutput: SinkOutput

    Returns Future<Object>

changeSourceInput

  • changeSourceInput(sourceInput: SourceInput): Future<Object>
  • Parameters

    • sourceInput: SourceInput

    Returns Future<Object>

destroy

  • destroy(): boolean
  • Returns boolean

getDynamicProperties

  • getDynamicProperties(): Hash<string, Object>
  • Gets the dynamic properties on this instance.

    Returns Hash<string, Object>

getDynamicValue

  • getDynamicValue(key: string): Object
  • Gets a property value from the local cache.

    Parameters

    • key: string

      The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions.

    Returns Object

    The stored value, if found; otherwise null.

getIsDirty

  • getIsDirty(): boolean
  • Gets a value indicating whether this instance is dirty.
    internal

    Returns boolean

getIsSerialized

  • getIsSerialized(): boolean

getMedia

  • getMedia(): Media

getMuted

  • getMuted(): boolean
  • Returns boolean

getSerialized

  • getSerialized(): string

getSinkOutput

  • getSinkOutput(): SinkOutput

getSinkOutputs

  • getSinkOutputs(): Future<SinkOutput[]>

getSize

  • getSize(): Size
  • Returns Size

getSourceInput

  • getSourceInput(): SourceInput

getSourceInputs

  • getSourceInputs(): Future<SourceInput[]>

getTypeString

  • getTypeString(): string

grabFrame

  • grabFrame(): Future<VideoBuffer>
  • Returns Future<VideoBuffer>

removeOnDestroyed

  • removeOnDestroyed(value: IAction0): void

removeOnSize

  • removeOnSize(value: IAction1<Size>): void
  • Parameters

    • value: IAction1<Size>

    Returns void

removeOnStarted

  • removeOnStarted(value: IAction0): void

removeOnStopped

  • removeOnStopped(value: IAction0): void

setDynamicProperties

  • setDynamicProperties(value: Hash<string, Object>): void
  • internal

    Parameters

    • value: Hash<string, Object>

    Returns void

setDynamicValue

  • setDynamicValue(key: string, value: Object): void
  • Sets a property value in the local cache.

    Parameters

    • key: string

      The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions.

    • value: Object

      The property value. This can be any object that needs to be stored for future use.

    Returns void

setIsDirty

  • setIsDirty(value: boolean): void
  • Sets a value indicating whether this instance is dirty.
    internal

    Parameters

    • value: boolean

    Returns void

setIsSerialized

  • setIsSerialized(value: boolean): void
  • internal

    Parameters

    • value: boolean

    Returns void

setMuted

  • setMuted(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

setSerialized

  • setSerialized(value: string): void
  • internal

    Parameters

    • value: string

    Returns void

setSinkOutput

  • setSinkOutput(value: SinkOutput): void
  • Parameters

    • value: SinkOutput

    Returns void

setSourceInput

  • setSourceInput(value: SourceInput): void
  • Parameters

    • value: SourceInput

    Returns void

unsetDynamicValue

  • unsetDynamicValue(key: string): boolean
  • Unsets a property value in the local cache.

    Parameters

    • key: string

      The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions.

    Returns boolean

    true if the value was removed; otherwise, false.