-
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: update m3u8 parser version and restore dateTimeObject and dateTimeString usage #1412
Conversation
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.
LGTM. Obviously lets get the parser update in here then +1 from me.
@@ -421,7 +421,7 @@ export default class PlaylistLoader extends EventTarget { | |||
this.dateRangesStorage_.setPendingDateRanges(mediaPlaylist.dateRanges); | |||
const availableDateRanges = this.dateRangesStorage_.getDateRangesToProcess(); | |||
|
|||
if (!availableDateRanges.length) { | |||
if (!availableDateRanges.length || !this.addDateRangesToTextTrack_) { |
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.
Noticed that there were several !this.addDateRangesToTextTrack_ is not a function
errors when I tested dateRanges with a specific stream. On logging !!his.addDateRangesToTextTrack_
, noticed that the function was undefined on every alternate loadedplaylist
event (line 410). Not sure why this is happening, so added a quick fix here before debugging in detail.
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.
This seems to be because the test stream has subtitles, which in this case we create a PlaylistLoader
for, this does not have the addDateRangesToTextTrack_
function defined, as it is only needed for the mainPlaylistLoader
for HLS.
Codecov Report
@@ Coverage Diff @@
## main #1412 +/- ##
==========================================
- Coverage 85.56% 85.55% -0.01%
==========================================
Files 41 41
Lines 10147 10145 -2
Branches 2353 2351 -2
==========================================
- Hits 8682 8680 -2
Misses 1465 1465
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
This PR shouldn't be merged before
Description
Restores dateTimeObject and dateTimeString segment properties that were previously removed and refactored in these two PRs