-
Notifications
You must be signed in to change notification settings - Fork 428
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: use audio offset for id3 with audio-only #1386
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1386 +/- ##
=======================================
Coverage 85.40% 85.40%
=======================================
Files 40 40
Lines 9963 9963
Branches 2308 2308
=======================================
Hits 8509 8509
Misses 1454 1454
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Hey @mister-ben, thanks a lot. This is great. Have a great weekend. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good fix. Thanks for this @mister-ben
My apologies @mister-ben, moving the common metadata functionality up to accommodate EventStream messed up your fix. The timestamp offset ternary now lives in http-streaming/src/playlist-controller.js Line 2015 in f6b9498
I think it could be done without the segmentData like this: |
That works with the test stream, but there's a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
id3 cues are not added correctly to audio-only streams, as the test for an audio-only stream is broken.
videoTimestampOffset()
will never benull
as it defaults to0
, so the audio offset is not used.Specific Changes proposed
Uses the
videoTimestampOffset()
whensegmentInfo.trackInfo.hasVideo
isfalse
rather than whenvideoTimestampOffset()
is nullFixes #130
Requirements Checklist
Example
{value: '{"webcastId":"635fc...
)Thanks to @berrutti for the test streams from #130