From 3fa20a55cb553d922fb23dd7dcbb43ca3089d8d9 Mon Sep 17 00:00:00 2001 From: Martin Wygas Date: Fri, 24 Jan 2025 13:26:53 +0100 Subject: [PATCH] Address review comments of #627 --- frontend/js/integrations/search.js | 4 +++- frontend/js/player-adapter-html5.js | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/js/integrations/search.js b/frontend/js/integrations/search.js index 42e6de5cb..30b5e0e31 100644 --- a/frontend/js/integrations/search.js +++ b/frontend/js/integrations/search.js @@ -159,9 +159,11 @@ define([ RegExp.prototype.test.bind(/application\/.*|video\/.*/), _.property("mimetype") )); - videos = _.sortBy(videos, "master").reverse(); videos.sort( util.lexicographic([ + util.firstWith( + _.property("master") + ), util.firstWith(_.compose( RegExp.prototype.test.bind(/composite\/.*/), _.property("type") diff --git a/frontend/js/player-adapter-html5.js b/frontend/js/player-adapter-html5.js index 5658ddae8..4bffa64ce 100644 --- a/frontend/js/player-adapter-html5.js +++ b/frontend/js/player-adapter-html5.js @@ -85,7 +85,6 @@ define( window.Hls = Hls; mediaElementPlayer = new mejs.MediaElementPlayer(targetElement, { - renderers: ["native_hls", "html5"], alwaysShowControls: true, autoRewind: false, stretching: "fill",