Interface ILocalDynamicMediaStream

The local dynamic media stream interface.

interface ILocalDynamicMediaStream {
    addTrack(track: MediaStreamTrack): void;
    getLabel(): string;
    getMediaStream(): MediaStream;
    getOwnerId(): string;
    removeTrack(param: MediaStreamTrack | MediaTrackKind): null | MediaStreamTrack;
    replaceTrack(track: MediaStreamTrack): void;
    setPriority(priority: MediaStreamPriority): void;
    setTransformations(transformations: MediaStreamTransformer[]): void;
    unpublish(): void;
}

Hierarchy (view full)

Methods

  • Add a track to the stream. This will replace any existing track of the same kind.

    Parameters

    Returns void

  • Replace the track with same kind as the new track in the stream.

    Parameters

    Returns void