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

localize plugin installation process

This commit is contained in:
Luke Pulverenti 2014-08-31 15:15:33 -04:00
parent c444daa6e8
commit 7a319688de
7 changed files with 215 additions and 185 deletions

View file

@ -250,7 +250,9 @@
return false;
}
if ((videoStream.Codec || '').toLowerCase().indexOf('h264') == -1) {
var isH264 = (videoStream.Codec || '').toLowerCase().indexOf('h264') != -1;
if (!isH264) {
console.log('Transcoding because the content is not h264');
return false;
}
@ -282,9 +284,11 @@
var extension = (mediaSource.Container || '').toLowerCase();
// m4v's and mp4's with high profile failing in chrome
if (videoStream && videoStream.Profile == 'High') {
//return false;
var profile = (videoStream ? (videoStream.Profile || '') : '').toLowerCase();
// only support high, baseline variants and main variants
if (isH264 && profile != 'high' && profile.indexOf('baseline') == -1 && profile.indexOf('main') == -1) {
return false;
}
if (extension == 'm4v' || extension == 'mkv') {