-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
addChaptersTrack work in append mode, Expected? #4750
Comments
@avelad, do I recall correctly that you wrote the chapters code? Is this a bug? |
If this is wrong, @WINOFFRG is willing to work on a fix. |
It’s not a bug, it’s designed to work on append mode, but we need filter duplicates… |
OK. @WINOFFRG, your PR would be welcome! |
Hi! While I was working on the fix for this, I found another issue. @avelad Can you please check and confirm this? How are we actually handling multiple chapter tracks with same language? Lines 5004 to 5006 in 76f96b9
If you check the above function, this will always return the first track of that language. Essentially the function A solution that comes to my mind is whenever we create a trackElement we must also pass an How does this look to you? |
For me, it’s ok! |
fixes #4750 Solved by creating a `Set` for filtering out deplicate elements. Need confirmation, Shouldn't we add an `assert` for `language` argument passed to https://github.com/shaka-project/shaka-player/blob/76f96b9fee2dc43b03f6803dd80c51fdc5b73a9e/lib/player.js#L4340-L4342
fixes #4750 Solved by creating a `Set` for filtering out deplicate elements. Need confirmation, Shouldn't we add an `assert` for `language` argument passed to https://github.com/shaka-project/shaka-player/blob/76f96b9fee2dc43b03f6803dd80c51fdc5b73a9e/lib/player.js#L4340-L4342
fixes #4750 Solved by creating a `Set` for filtering out deplicate elements. Need confirmation, Shouldn't we add an `assert` for `language` argument passed to https://github.com/shaka-project/shaka-player/blob/76f96b9fee2dc43b03f6803dd80c51fdc5b73a9e/lib/player.js#L4340-L4342
fixes #4750 Solved by creating a `Set` for filtering out deplicate elements. Need confirmation, Shouldn't we add an `assert` for `language` argument passed to https://github.com/shaka-project/shaka-player/blob/76f96b9fee2dc43b03f6803dd80c51fdc5b73a9e/lib/player.js#L4340-L4342
fixes #4750 Solved by creating a `Set` for filtering out deplicate elements. Need confirmation, Shouldn't we add an `assert` for `language` argument passed to https://github.com/shaka-project/shaka-player/blob/76f96b9fee2dc43b03f6803dd80c51fdc5b73a9e/lib/player.js#L4340-L4342
fixes shaka-project#4750 Solved by creating a `Set` for filtering out deplicate elements. Need confirmation, Shouldn't we add an `assert` for `language` argument passed to https://github.com/shaka-project/shaka-player/blob/76f96b9fee2dc43b03f6803dd80c51fdc5b73a9e/lib/player.js#L4340-L4342
Have you read the Tutorials?
Yes
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
v4.3.0 (uncompiled)
Please ask your question
On a running stream if we call
player.addChaptersTrack
it appends the newly parsed chapters to the existing one, Is this an expected behavior? Shouldn't we have a comparator that sorts the chapters based on time? This way we could handle many edge cases like:id
ortimestamp
.In case this could be considered a fix, I can work on it.
The text was updated successfully, but these errors were encountered: