-
Notifications
You must be signed in to change notification settings - Fork 425
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
fix: cache aes keys for text tracks (#973) #1228
Conversation
💖 Thanks for opening this pull request! 💖 Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
Codecov Report
@@ Coverage Diff @@
## main #1228 +/- ##
=======================================
Coverage 86.30% 86.30%
=======================================
Files 39 39
Lines 9840 9842 +2
Branches 2292 2293 +1
=======================================
+ Hits 8492 8494 +2
Misses 1348 1348
Continue to review full report at Codecov.
|
Here's an example. |
@gkatsev the fix is easy and works, but right now chances are low that I will time to dive into the testing rabbit hole anytime soon, sorry. |
@gkatsev - is the lack of a test blocking this? |
A test would be greatly appreciated! |
@gkatsev - I feared as much ;-) |
Thank you for the PR @phloxic ! Our tests can use a good cleanup, and can be hard to parse, so no worries there. Thankfully, we already have some tests around caching encryption keys over in the segment loader tests, so I made a PR to move those over to loader common: phloxic#1 . The loader common tests are run against all types of loaders (including VTT). I ran the tests with your change commented out to prove the tests failed. Then ran again with the change included to show that they passed. And it looks good. Thanks again for the contribution. |
Move encryption key caching tests to common loader tests to cover VTT loader
Congrats on merging your first pull request! 🎉🎉🎉 |
Description
So far aes keys for vtt are not cached even when
cacheEncryptionKeys: true
.Specific Changes proposed
Call
segmentKey()
if the requested vtt segment includes a key before appending, so key can be cached.Requirements Checklist