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

Fixes for serverless HLS #627

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KatrinIhler
Copy link
Member

Actual changes from @luniki.

  • Pefer master playlists over non-master playlists and mp4s
  • Prefer native_hls renderer
  • Wait for !isFinitite instead of isNan for this renderer

@@ -159,6 +159,7 @@ define([
RegExp.prototype.test.bind(/application\/.*|video\/.*/),
_.property("mimetype")
));
videos = _.sortBy(videos, "master").reverse();
Copy link
Member

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"],
Copy link
Member

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) {
Copy link
Member

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?

@JulianKniephoff
Copy link
Member

Pinging @luniki to look at this review since he is the original author of the patch IIRC.

marwyg added a commit to marwyg/annotation-tool that referenced this pull request Nov 15, 2024
PR opencast#627: Fixes for serverless HLS
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