Skip to content

Commit

Permalink
Force media capabilities check for HEVC to avoid failure on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
robwalch committed Nov 15, 2024
1 parent 2d91f78 commit 097a068
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controller/abr-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -794,14 +794,15 @@ class AbrController extends Logger implements AbrComponentAPI {
| undefined;
if (
typeof mediaCapabilities?.decodingInfo === 'function' &&
requiresMediaCapabilitiesDecodingInfo(
(requiresMediaCapabilitiesDecodingInfo(
levelInfo,
audioTracksByGroup,
currentVideoRange,
currentFrameRate,
currentBw,
audioPreference,
)
) ||
level.videoCodec?.substring(0, 4) === 'hvc1') // Force media capabilities check for HEVC to avoid failure on Windows
) {
levelInfo.supportedPromise = getMediaDecodingInfoPromise(
levelInfo,
Expand Down

0 comments on commit 097a068

Please sign in to comment.