feat: streaming events and errors
Description
Adding some additional events and errors with relevant payloads to VHS to enable users to centralize streaming events and utilize the information passed with each error and event payload to inform their video playback code.
Specific Changes proposed
Add events and payloads for all phases of playback from manifest/playlist request - load - parse. Segment load - transmux/parse/decrypt - append. Errors and relevant payloads for common network, segment and playlist/manifest conditions.
Requirements Checklist
- [x] Feature implemented / Bug fixed
- [x] If necessary, more likely in a feature request than a bug fix
- [x] Unit Tests updated or fixed
- [ ] Docs/guides updated
- [ ] Example created (starter template on JSBin)
- [ ] Reviewed by Two Core Contributors
Codecov Report
Attention: Patch coverage is 88.68778% with 25 lines in your changes are missing coverage. Please review.
Project coverage is 86.31%. Comparing base (
b6ff608) to head (a14d0e6).
Additional details and impacted files
@@ Coverage Diff @@
## main #1508 +/- ##
==========================================
+ Coverage 86.29% 86.31% +0.01%
==========================================
Files 43 43
Lines 10901 11098 +197
Branches 2508 2532 +24
==========================================
+ Hits 9407 9579 +172
- Misses 1494 1519 +25
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.