Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hvc codec can't be played on Firefox #6572

Closed
ogous opened this issue Jul 24, 2024 · 1 comment
Closed

Hvc codec can't be played on Firefox #6572

ogous opened this issue Jul 24, 2024 · 1 comment

Comments

@ogous
Copy link

ogous commented Jul 24, 2024

Is your feature request related to a problem? Please describe.

H.265/HEVC in MPEG2-TS support released on canary version v1.5.14-0.canary.10461 m3u8 live streams play on Chrome, Safari and Opera but not Firefox.

Test permalink is here.

Hls.js throw these errors on Firefox:

3.279 | Buffer add codec error for video/mp4;codecs=hvc1.1.6.L120.B0:MediaSource.addSourceBuffer: Can't play type
3.279 | A media error occurred: bufferAddCodecError
3.28 | A media error occurred: bufferIncompatibleCodecsError
3.28 | Buffer append error
3.28 | A media error occurred: bufferAppendError

Describe the solution you'd like

We had to use external solutions like converting stream chunks to a supported format on Firefox.

Additional context

Tested on Firefox versions 128.0.0 and 128.0.2 (64-bit)

@ogous ogous added Feature proposal Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. labels Jul 24, 2024
@robwalch robwalch added Works as expected and removed Feature proposal Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. labels Jul 25, 2024
@robwalch
Copy link
Collaborator

robwalch commented Jul 25, 2024

HLS.js cannot play media that is not supported by the browser it is running in.

If you want an error before loading and parsing fragments, wrap your HLS media playlist in a multivariant playlist that specifies the CODECS of each variant so that HLS.js can filter out unsupported ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants