-
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,7 +85,7 @@ define( | |
|
||
window.Hls = Hls; | ||
mediaElementPlayer = new mejs.MediaElementPlayer(targetElement, { | ||
renderers: ["html5", "native_hls"], | ||
renderers: ["native_hls", "html5"], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I removed the |
||
alwaysShowControls: true, | ||
autoRewind: false, | ||
stretching: "fill", | ||
|
@@ -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) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As mentioned in #646, I didn't see such a case, but Marcus did, I don't know. But I compared in my other PR both functions (isNaN and !isFinite) and I think it should be okay like this. |
||
return; | ||
} | ||
|
||
|
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 likeShould work, but please double-check me on this.
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.
I integrated the sort as you suggested. It works: #646