Skip to content
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

Merged
merged 4 commits into from
Jan 22, 2021
Merged

feat: ll-hls warnings and info #131

merged 4 commits into from
Jan 22, 2021

Conversation

brandonocasey
Copy link
Contributor

@brandonocasey brandonocasey commented Jan 20, 2021

  1. Adds warning/info logs for all ll-hls tags
  2. 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) {
Copy link
Contributor Author

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.

@@ -172,7 +173,7 @@
"CAN-BLOCK-RELOAD": true,
"CAN-SKIP-UNTIL": 12,
"PART-HOLD-BACK": 1,
"HOLD-BACK": 2
"HOLD-BACK": 12
Copy link
Contributor Author

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.

src/parser.js Show resolved Hide resolved
src/parser.js Show resolved Hide resolved
src/parser.js Outdated Show resolved Hide resolved
src/parser.js Outdated Show resolved Hide resolved
src/parser.js Outdated Show resolved Hide resolved
src/parser.js Outdated Show resolved Hide resolved
src/parser.js Outdated Show resolved Hide resolved
src/parser.js Outdated Show resolved Hide resolved
test/parser.test.js Outdated Show resolved Hide resolved
this.parser.end();

const warnings = [
'ignoring invalid target duration: undefined'
Copy link
Member

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.

Copy link
Contributor Author

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.

@brandonocasey brandonocasey merged commit 4f4da3d into main Jan 22, 2021
@brandonocasey brandonocasey deleted the feat/llhls-warnings branch January 22, 2021 18:07
miadabdi pushed a commit to miadabdi/m3u8-parser that referenced this pull request Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants