Vinyl
    Preparing search index...

    Class QualitySelectorImpl

    Provides the logging prefix for all logs made by this target.

    Implements

    Index

    Constructors

    Properties

    logPrefix: string

    A string prefix for all log statements made by this target.

    Accessors

    • get "[toStringTag]"(): string

      Returns string

    • get disposed(): boolean

      Returns boolean

    Methods

    • Returns void

    • Returns the quality that should currently be streamed.

      Parameters

      • qualities: readonly MediaQualityMetadata[]

        A sorted list of qualities for the currently streaming media. All qualities are expected to be playable.

        Higher bandwidth values are expected to also mean higher quality. That is, if there are multiple playable qualities where one has a higher quality ranking and lower bandwidth, the less efficient representation should be filtered out before the request.

      • prefetchState: PrefetchState

        The current prefetch state.

      Returns number

      Returns the index of the quality to stream.