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

Fix missing media versions

This commit is contained in:
Luke Pulverenti 2014-03-21 12:55:34 -04:00
parent 0f37c36d24
commit b14dfd11d9

View file

@ -1058,11 +1058,11 @@
if (stream.Type == "Audio") { if (stream.Type == "Audio") {
// Stream statically when possible // Stream statically when possible
if (endsWith(item.Path, ".aac") && stream.BitRate <= 256000) { if (endsWith(mediaVersion.Path, ".aac") && stream.BitRate <= 256000) {
aacUrl += "&static=true" + seekParam; aacUrl += "&static=true" + seekParam;
isStatic = true; isStatic = true;
} }
else if (endsWith(item.Path, ".mp3") && stream.BitRate <= 256000) { else if (endsWith(mediaVersion.Path, ".mp3") && stream.BitRate <= 256000) {
mp3Url += "&static=true" + seekParam; mp3Url += "&static=true" + seekParam;
isStatic = true; isStatic = true;
} }
@ -1202,7 +1202,7 @@
return (trunc(titles[0], 30) + "<br />" + trunc(titles[1], 30)).replace("---", "&nbsp;"); return (trunc(titles[0], 30) + "<br />" + trunc(titles[1], 30)).replace("---", "&nbsp;");
}; };
var getItemFields = "MediaStreams,Chapters,Path"; var getItemFields = "MediaVersions";
} }
window.MediaPlayer = new mediaPlayer(); window.MediaPlayer = new mediaPlayer();