The remote media stream interface.

interface IRemoteMediaStream {
    getAvailableTrackKinds(): MediaTrackKind[];
    getLabel(): string;
    getMediaStream(): MediaStream;
    getOwnerId(): string;
    onProviderChange(callback: ((providerId: undefined | string) => void)): Unsubscribe;
    subscribe(params?: MediaSubscriptionParams): void;
    unsubscribe(trackKinds?: MediaTrackKind | MediaTrackKind[]): void;
    update(params: MediaSubscriptionParams): void;
}

Hierarchy (view full)

Methods

  • Get the label of the stream.

    Returns string

    The label of the stream.

  • Get the owner ID of the stream.

    Returns string

    The owner ID of the stream.

  • Subscribe to when the provider of the stream changes.

    Parameters

    • callback: ((providerId: undefined | string) => void)

      The callback to invoke when the provider changes.

        • (providerId): void
        • Parameters

          • providerId: undefined | string

          Returns void

    Returns Unsubscribe

  • Unsubscribe from track kinds of the stream. Passing no track kinds will unsubscribe from all subscribed track kinds.

    Parameters

    Returns void