Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebRtcStream

Hierarchy

  • WebRtcStreamBase
    • WebRtcStream

Implements

  • IStream
  • IInternalStream

Index

Constructors

constructor

  • Initializes a new instance of the fm.icelink.streamBase class.

    Parameters

    • type: StreamType

      The type.

    Returns WebRtcStream

Properties

Private _connection

_connection: WebRtcConnection
internal

Methods

Abstract _getExternal

  • _getExternal(): IExternalStream
  • internal

    Returns IExternalStream

addOnDirectionChange

  • addOnDirectionChange(value: IAction0): void
  • Adds a handler that is raised when the stream direction change has occurred.

    Parameters

    • value: IAction0

    Returns void

Abstract changeDirection

  • changeDirection(newDirection: StreamDirection): Error
  • Changes this stream's direction.

    Parameters

    • newDirection: StreamDirection

    Returns Error

getConnection

  • getConnection(): WebRtcConnection
  • Returns WebRtcConnection

Abstract getDirection

  • getDirection(): StreamDirection
  • Gets the current direction.

    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
  • Gets the identifier.

    Returns string

getIsDirty

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

    Returns boolean

getIsSerialized

  • getIsSerialized(): boolean

Abstract getLabel

  • getLabel(): string
  • Gets a label that identifies this class.

    Returns string

Abstract getLocalDirection

  • getLocalDirection(): StreamDirection
  • Gets current direction indicated by the local description.

    Returns StreamDirection

getLocalReceive

  • getLocalReceive(): boolean
  • Gets a value indicating whether receiving media is supported by the local peer on this stream.

    Returns boolean

getLocalSend

  • getLocalSend(): boolean
  • Gets a value indicating whether sending media is supported by the local peer on this stream.

    Returns boolean

Abstract getRemoteDirection

  • getRemoteDirection(): StreamDirection
  • Gets current direction indicated by the remote description.

    Returns StreamDirection

getRemoteReceive

  • getRemoteReceive(): boolean
  • Gets a value indicating whether receiving media is supported by the local peer on this stream. Returns false if the remote stream direction has not been received.

    Returns boolean

getRemoteSend

  • getRemoteSend(): boolean
  • Gets a value indicating whether sending media is supported by the remote peer on this stream. Returns false if the remote stream direction has not been received.

    Returns boolean

getSerialized

  • getSerialized(): string

getTag

  • getTag(): string
  • Gets an optional tag to identify this instance.

    Returns string

getType

  • getType(): StreamType
  • Gets the type.

    Returns StreamType

getTypeString

  • getTypeString(): string
  • Returns string

processSdpMediaDescription

  • processSdpMediaDescription(sdpMessage: Message, sdpMediaDescription: MediaDescription, isLocalDescription: boolean, isOffer: boolean, isRenegotiation: boolean): Error
  • Parameters

    • sdpMessage: Message
    • sdpMediaDescription: MediaDescription
    • isLocalDescription: boolean
    • isOffer: boolean
    • isRenegotiation: boolean

    Returns Error

removeOnDirectionChange

  • removeOnDirectionChange(value: IAction0): void
  • Removes a handler that is raised when the stream direction change has occurred.

    Parameters

    • value: IAction0

    Returns void

setConnection

  • setConnection(remoteTrack: WebRtcConnection): void
  • Parameters

    • remoteTrack: WebRtcConnection

    Returns 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
  • Sets the identifier.

    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

Abstract setLocalDirection

  • setLocalDirection(value: StreamDirection): void
  • Sets current direction indicated by the local description.

    Parameters

    • value: StreamDirection

    Returns void

setLocalReceive

  • setLocalReceive(value: boolean): void
  • Sets a value indicating whether receiving media is supported by the local peer on this stream.

    Parameters

    • value: boolean

    Returns void

setLocalSend

  • setLocalSend(value: boolean): void
  • Sets a value indicating whether sending media is supported by the local peer on this stream.

    Parameters

    • value: boolean

    Returns void

Protected Abstract setRemoteDirection

  • setRemoteDirection(value: StreamDirection): void
  • Sets current direction indicated by the remote description.

    Parameters

    • value: StreamDirection

    Returns void

setSerialized

  • setSerialized(value: string): void
  • internal

    Parameters

    • value: string

    Returns void

setTag

  • setTag(value: string): void
  • Sets an optional tag to identify this instance.

    Parameters

    • value: string

    Returns void

toString

  • toString(): string
  • Returns a string that represents this instance.

    Returns string

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.