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

HLS.js usage: bugfix, stability improvements and resilience improvement #2631

Merged
merged 1 commit into from Nov 3, 2023

Conversation

rse
Copy link
Contributor

@rse rse commented Nov 2, 2023

I propose the following changes to the HLS.js:

  • BUGFIX: pass "video" element to create() on restart triggering fatal-error
  • STABILITY: await MEDIA_ATTACHED event before performing "loadSource" on HLS
  • STABILITY: await MANIFEST_PARSED event before performing "play" on video element
  • RESILIENCE: on "MEDIA_ERROR" event perform "recoverMediaError" on HLS

Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Merging #2631 (ade4972) into main (42afc8d) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2631      +/-   ##
==========================================
- Coverage   59.30%   59.29%   -0.01%     
==========================================
  Files         144      144              
  Lines       15228    15228              
==========================================
- Hits         9031     9030       -1     
- Misses       5561     5562       +1     
  Partials      636      636              

see 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@aler9 aler9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, thanks for this contribution, just edit the lines i commented and this will be merged.

internal/core/hls_index.html Outdated Show resolved Hide resolved
…l-error

- STABILITY: await MEDIA_ATTACHED event before performing "loadSource" on HLS
- STABILITY: await MANIFEST_PARSED event before performing "play" on video element
- RESILIENCE: on "MEDIA_ERROR" event perform "recoverMediaError" on HLS
@rse
Copy link
Contributor Author

rse commented Nov 2, 2023

Code was now adjusted.

@aler9 aler9 merged commit 39a239c into bluenviron:main Nov 3, 2023
7 of 8 checks passed
@aler9
Copy link
Member

aler9 commented Nov 3, 2023

merged, thanks

@rse rse deleted the hls branch November 3, 2023 11:39
aler9 added a commit that referenced this pull request Jan 28, 2024
when a player received a stream with incompatible codecs, it started
polling the server for index.m3u8 in an infinite loop. This was caused
by #2631
aler9 added a commit that referenced this pull request Jan 28, 2024
…#2956)

when a player received a stream with incompatible codecs, it started
polling the server for index.m3u8 in an infinite loop. This was caused
by #2631
Copy link
Contributor

github-actions bot commented Feb 4, 2024

This issue is mentioned in release v1.5.1 🚀
Check out the entire changelog by clicking here

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.

None yet

2 participants