1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

hls updates

This commit is contained in:
Luke Pulverenti 2015-05-21 16:53:14 -04:00
parent 3beaf88745
commit 9e470c9f94
21 changed files with 315 additions and 164 deletions

View file

@ -943,6 +943,11 @@
self.getPosterUrl = function (item) {
// Safari often shows the poster under the video, which doesn't look good
if ($.browser.safari) {
return null;
}
var screenWidth = Math.max(screen.height, screen.width);
if (item.BackdropImageTags && item.BackdropImageTags.length) {
@ -1717,7 +1722,17 @@
}).on("timeupdate.mediaplayerevent", function () {
self.setCurrentTime(self.getCurrentTicks(this));
var currentTicks = self.getCurrentTicks(this);
// Seeing transcoded audio looping in safari, going past the runtime but restarting the audio
if ($.browser.safari && self.currentDurationTicks && (currentTicks > self.currentDurationTicks)) {
if (currentPlaylistIndex < self.playlist.length - 1) {
self.nextTrack();
} else {
self.stop();
}
} else {
self.setCurrentTime(currentTicks);
}
})[0];
};
@ -1734,7 +1749,7 @@
window.MediaPlayer = new mediaPlayer();
Dashboard.ready(function() {
Dashboard.ready(function () {
window.MediaController.registerPlayer(window.MediaPlayer);
window.MediaController.setActivePlayer(window.MediaPlayer, window.MediaPlayer.getTargets()[0]);
});