-
Notifications
You must be signed in to change notification settings - Fork 101
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
feat: ll-hls warnings and info #131
Conversation
brandonocasey
commented
Jan 20, 2021
•
edited
Loading
edited
- Adds warning/info logs for all ll-hls tags
- Adds defaults for ll-hls tags
// we need this helper because defaults are based upon targetDuration and | ||
// partTargetDuration being set, but they may not be if SERVER-CONTROL appears before | ||
// target durations are set. | ||
const setHoldBack = function(manifest) { |
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.
Had to break this into it's own function see the comment above this function.
test/fixtures/m3u8/llhlsDelta.json
Outdated
@@ -172,7 +173,7 @@ | |||
"CAN-BLOCK-RELOAD": true, | |||
"CAN-SKIP-UNTIL": 12, | |||
"PART-HOLD-BACK": 1, | |||
"HOLD-BACK": 2 | |||
"HOLD-BACK": 12 |
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.
targetDuration is 4 for this source, which means HOLD-BACK has to be at least 12.
1990190
to
e21afd7
Compare
this.parser.end(); | ||
|
||
const warnings = [ | ||
'ignoring invalid target duration: undefined' |
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 has undefined
because we tried to parse foo
as an int which failed, and we just didn't set a value in that case?
If we would want to fix this, we'd want to do it in a separate PR.
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.
I think I will be fixing up some of the old warnings and info logs to better represent what we are doing now in another pull request.
938cb5a
to
a4565ce
Compare