-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fixes for serverless HLS #627
base: master
Are you sure you want to change the base?
Conversation
9e54332
to
3869297
Compare
@@ -159,6 +159,7 @@ define([ | |||
RegExp.prototype.test.bind(/application\/.*|video\/.*/), | |||
_.property("mimetype") | |||
)); | |||
videos = _.sortBy(videos, "master").reverse(); |
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.
Can we integrate this in the sort
below? Something like
videos.sort(
util.lexicographical([
util.firstWith(
_.property("master")
),
// [...]
])
);
Should work, but please double-check me on this.
renderers: ["html5", "native_hls"], | ||
renderers: ["native_hls", "html5"], |
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.
Is this necessary even with the correct sort order of the videos? 🤔
Looking at the docs for this setting I also wonder: Can we get away with not specifying this at all?
if (isNaN(self.getDuration()) || mediaElement.readyState < 1) { | ||
if (!isFinite(self.getDuration()) || mediaElement.readyState < 1) { |
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.
Wouldn't live streams have infinite durations? 🤔 Although to be fair, the rest of the tool can't deal with those, either. x)
Still, I wonder: Did you encounter a case where the duration is infinite first, and then changes to something finite?
Pinging @luniki to look at this review since he is the original author of the patch IIRC. |
PR opencast#627: Fixes for serverless HLS
Actual changes from @luniki.