Skip to content

Commit

Permalink
Merge Draft PR opencast#627 into 'main'
Browse files Browse the repository at this point in the history
PR opencast#627: Fixes for serverless HLS
  • Loading branch information
marwyg committed Nov 15, 2024
2 parents bf86e06 + 3869297 commit 666bf1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/js/integrations/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ define([
RegExp.prototype.test.bind(/application\/.*|video\/.*/),
_.property("mimetype")
));
videos = _.sortBy(videos, "master").reverse();
videos.sort(
util.lexicographic([
util.firstWith(_.compose(
Expand Down
4 changes: 2 additions & 2 deletions frontend/js/player-adapter-html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ define(

window.Hls = Hls;
mediaElementPlayer = new mejs.MediaElementPlayer(targetElement, {
renderers: ["html5", "native_hls"],
renderers: ["native_hls", "html5"],
alwaysShowControls: true,
autoRewind: false,
stretching: "fill",
Expand All @@ -96,7 +96,7 @@ define(
*/
$(mediaElement).on("canplay durationchange", function () {
// If duration is still not valid
if (isNaN(self.getDuration()) || mediaElement.readyState < 1) {
if (!isFinite(self.getDuration()) || mediaElement.readyState < 1) {
return;
}

Expand Down

0 comments on commit 666bf1d

Please sign in to comment.