Amazon Vinyl
    Preparing search index...

    Interface ContentStream

    Any object that may be disposed.

    interface ContentStream {
        bufferingEnded: boolean;
        bufferingQuality: MediaQualityMetadata | null;
        contentType: ContentType;
        error: Error | null;
        fetchedRanges: ReadonlyRanges;
        playbackQuality: MediaQualityMetadata | null;
        streamingQuality: MediaQualityMetadata | null;
        activate(options: Maybe<ContentStreamActivateOptions>): void;
        clearPrefetch(): void;
        deactivate(): void;
        dispose(): void;
        hasAnyListeners(): boolean;
        hasListeners(type: keyof StreamingEventMap): boolean;
        on<K extends keyof StreamingEventMap>(
            type: K,
            handler: EventHandler<StreamingEventMap[K]>,
            options?: SignalOptions,
        ): Unsubscribe;
        preload(options: ContentStreamPreloadOptions): void;
        reset(): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index
    bufferingEnded: boolean

    True if the last segment has been appended.

    bufferingQuality: MediaQualityMetadata | null

    The quality of the currently buffered media for this stream.

    contentType: ContentType

    The content type for this stream. E.g. 'audio' or 'video'

    error: Error | null

    The error, if in an error state.

    fetchedRanges: ReadonlyRanges

    The prefetched time ranges.

    playbackQuality: MediaQualityMetadata | null

    The quality for the currently buffered media at currentTime for this stream.

    streamingQuality: MediaQualityMetadata | null

    The quality currently being requested.

    • Resets the track to recover from error states. Resets both the segment controller and buffering controller to clear failed segments and error conditions.

      Returns void