Skip to content

docs: add HEVC fallback repro page (ONCALL-11435) - #1094

Closed
tsi wants to merge 1 commit into
fix/hevc-h264-fallbackfrom
fix/hevc-h264-fallback-repro
Closed

tsi wants to merge 1 commit into
fix/hevc-h264-fallbackfrom
fix/hevc-h264-fallback-repro

Conversation

@tsi

@tsi tsi commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Stacked on #1093. Adds a repro page for ONCALL-11435 and two small defensive changes that are not required for the fix itself. Kept separate so the fix PR stays minimal; this one may not be merged.

Changes

  • docs/hevc-fallback.html: repro page for the HEVC → H264 fallback. ?simulateNoHevc=true stubs canPlayType / MediaSource.isTypeSupported / addSourceBuffer to report no HEVC support so the fallback can be exercised on any browser; &ver=4.1.2 loads a published build for comparison; &types=hls/h264 is the control. Not linked from the examples index.
  • Guard the source-switcher cldsourcechanged listener against an undefined source (source?.videoSources?.()). This was the customer's TypeError: Cannot read properties of undefined (reading 'videoSources'). With fix: don't undo Video.js source fallback on media error #1093 the TypeError no longer occurs in the reported scenario, so this is defensive only.
  • TODO on currentSourceType(), which throws once the plugin state has been reset by syncState.

Related

How to Test

Run the dev server and open hevc-fallback.html?simulateNoHevc=true. Expected on top of #1093: h265 errors once, h264 plays, snapshot at 10s shows error=null. With &ver=4.1.2: h265 is reloaded, the videoSources TypeError is logged, playback never starts.

Also guard the source-switcher listener against an undefined source
(the customer's "reading 'videoSources'" TypeError) and note the
follow-up on currentSourceType() throwing after the plugin state is reset.
@netlify

netlify Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cld-video-player ready!

Name Link
🔨 Latest commit d1c0dd3
🔍 Latest deploy log https://app.netlify.com/projects/cld-video-player/deploys/6abe1a317d722f0008270507
😎 Deploy Preview https://deploy-preview-1094--cld-video-player.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cld-vp-esm-pages ready!

Name Link
🔨 Latest commit d1c0dd3
🔍 Latest deploy log https://app.netlify.com/projects/cld-vp-esm-pages/deploys/6abe1a3191cd9a000855798c
😎 Deploy Preview https://deploy-preview-1094--cld-vp-esm-pages.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@tsi
tsi force-pushed the fix/hevc-h264-fallback branch from 1cc746c to f8d8783 Compare October 1, 2026 08:45
@tsi tsi closed this Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants