Returns true when the media's sampling rate is within the supported range.
Only audio content types are gated; every other content type passes through.
The upper bound is maxSampleRate when set, otherwise the platform's
AudioContext-reported output rate (Firefox is hard-capped at 48kHz, which it
cannot decode beyond via MSE). The optional lower bound is minSampleRate.
Both bounds are soft, and soft together: when no audio rendition sits in the
acceptable [minSampleRate, maxSampleRate] band, a single fallback is kept so
playback is never stranded — the highest rate the ceiling can decode, or, when
every rate is above the ceiling, the lowest. This holds even when renditions
straddle an empty band (some below the floor, some above the ceiling). Only
audio renditions count toward the fallback — a co-present video quality (no
audio rate) never influences it. Firefox is the exception: its 48kHz cap is
hard, with no fallback.
Returns true when the media's sampling rate is within the supported range. Only audio content types are gated; every other content type passes through.
The upper bound is
maxSampleRatewhen set, otherwise the platform'sAudioContext-reported output rate (Firefox is hard-capped at 48kHz, which it cannot decode beyond via MSE). The optional lower bound isminSampleRate. Both bounds are soft, and soft together: when no audio rendition sits in the acceptable[minSampleRate, maxSampleRate]band, a single fallback is kept so playback is never stranded — the highest rate the ceiling can decode, or, when every rate is above the ceiling, the lowest. This holds even when renditions straddle an empty band (some below the floor, some above the ceiling). Only audio renditions count toward the fallback — a co-present video quality (no audio rate) never influences it. Firefox is the exception: its 48kHz cap is hard, with no fallback.