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

chapter downloading fixes

This commit is contained in:
Luke Pulverenti 2014-06-11 22:38:40 -04:00
parent f977419f95
commit 462766c0db
2 changed files with 94 additions and 16 deletions

View file

@ -218,6 +218,17 @@
$(self).trigger('positionchange', [state]);
};
self.supportsTextTracks = function () {
// Does not support changing tracks via mode property
if ($.browser.mozilla) {
return false;
}
// For now, until perfected
return false;
};
self.canPlayVideoDirect = function (mediaSource, videoStream, audioStream, subtitleStream, maxWidth, bitrate) {
if (!mediaSource) {
@ -243,7 +254,7 @@
return false;
}
if (subtitleStream && subtitleStream.IsGraphicalSubtitleStream) {
if (subtitleStream && (subtitleStream.IsGraphicalSubtitleStream || !self.supportsTextTracks())) {
console.log('Transcoding because subtitles are required');
return false;
}
@ -257,7 +268,7 @@
console.log('Transcoding because bitrate is too high');
return false;
}
var extension = (mediaSource.Container || '').toLowerCase();
// m4v's with high profile failing in chrome
@ -1123,7 +1134,7 @@
function sendProgressUpdate() {
var state = self.getPlayerStateInternal(currentMediaElement, self.currentItem, self.currentMediaSource);
var info = {
QueueableMediaTypes: state.NowPlayingItem.MediaType,
ItemId: state.NowPlayingItem.Id,