Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MediaStream<TTrack>

Type parameters

  • TTrack

Hierarchy

  • Stream
    • MediaStream

Implements

  • IExternalStream
  • IMediaStream
  • IExternalMediaStream

Index

Constructors

constructor

  • new MediaStream(localTrack: TTrack, remoteTrack: TTrack): MediaStream

Properties

Private localTrack

localTrack: TTrack
internal

Private remoteTrack

remoteTrack: TTrack
internal

Methods

Abstract _getInternal

  • _getInternal(): IInternalMediaStream
  • internal

    Returns IInternalMediaStream

addOnDirectionChange

  • addOnDirectionChange(value: IAction0): void

changeDirection

  • changeDirection(newDirection: StreamDirection): Error
  • Parameters

    • newDirection: StreamDirection

    Returns Error

getDirection

  • getDirection(): StreamDirection
  • Returns StreamDirection

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.

getId

  • getId(): string
  • Returns string

getIsDirty

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

    Returns boolean

getIsSerialized

  • getIsSerialized(): boolean

getLabel

  • getLabel(): string
  • Returns string

getLocalBandwidth

  • getLocalBandwidth(): number
  • Returns number

getLocalDirection

  • getLocalDirection(): StreamDirection

getLocalReceive

  • getLocalReceive(): boolean

getLocalSend

  • getLocalSend(): boolean

getLocalTrack

  • getLocalTrack(): TTrack
  • Returns TTrack

getMuted

  • getMuted(): boolean
  • Returns boolean

getRemoteBandwidth

  • getRemoteBandwidth(): number
  • Returns number

getRemoteDirection

  • getRemoteDirection(): StreamDirection

getRemoteReceive

  • getRemoteReceive(): boolean

getRemoteSend

  • getRemoteSend(): boolean

getRemoteTrack

  • getRemoteTrack(): TTrack
  • Returns TTrack

getSerialized

  • getSerialized(): string

getTag

  • getTag(): string
  • Returns string

getType

  • getType(): StreamType
  • Returns StreamType

getTypeString

  • getTypeString(): string

removeOnDirectionChange

  • removeOnDirectionChange(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

setId

  • setId(value: string): void
  • Parameters

    • value: string

    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

setLocalBandwidth

  • setLocalBandwidth(value: number): void
  • Parameters

    • value: number

    Returns void

setLocalDirection

  • setLocalDirection(value: StreamDirection): void
  • Parameters

    • value: StreamDirection

    Returns void

setLocalReceive

  • setLocalReceive(receiveEnabled: boolean): void
  • Parameters

    • receiveEnabled: boolean

    Returns void

setLocalSend

  • setLocalSend(sendEnabled: boolean): void
  • Parameters

    • sendEnabled: boolean

    Returns void

setMuted

  • setMuted(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

setSerialized

  • setSerialized(value: string): void
  • internal

    Parameters

    • value: string

    Returns void

setTag

  • setTag(value: string): void
  • Parameters

    • value: string

    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.