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

Try webrtc when mse fails with decoding error #11745

Merged
merged 3 commits into from
Jun 4, 2024
Merged

Conversation

hawkeye217
Copy link
Collaborator

On iOS and Safari desktop, some MSE streams with particular codecs never fire loadeddata and thus onPlaying never gets called and the player remains invisible, even though MSE data is streaming over the websocket.

Additionally, these particular streams tend to raise MEDIA_ERR_DECODE.

This PR checks for this very particular condition and falls back to webrtc if available. If webrtc times out, jsmpeg is used.

@hawkeye217 hawkeye217 changed the title Try webrtc mse fails with decoding error Try webrtc when mse fails with decoding error Jun 4, 2024
Copy link

netlify bot commented Jun 4, 2024

Deploy Preview for frigate-docs canceled.

Name Link
🔨 Latest commit 97f7ec6
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/665f2d9cd970310008f0b90b

@NickM-27 NickM-27 merged commit 3f0a954 into dev Jun 4, 2024
13 checks passed
@NickM-27 NickM-27 deleted the mse-decode-error branch June 4, 2024 15:11
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