diff --git a/dashboard-ui/scripts/mediaplayer.js b/dashboard-ui/scripts/mediaplayer.js index a3273e001d..1b98dcfc69 100644 --- a/dashboard-ui/scripts/mediaplayer.js +++ b/dashboard-ui/scripts/mediaplayer.js @@ -1058,11 +1058,11 @@ if (stream.Type == "Audio") { // Stream statically when possible - if (endsWith(item.Path, ".aac") && stream.BitRate <= 256000) { + if (endsWith(mediaVersion.Path, ".aac") && stream.BitRate <= 256000) { aacUrl += "&static=true" + seekParam; isStatic = true; } - else if (endsWith(item.Path, ".mp3") && stream.BitRate <= 256000) { + else if (endsWith(mediaVersion.Path, ".mp3") && stream.BitRate <= 256000) { mp3Url += "&static=true" + seekParam; isStatic = true; } @@ -1202,7 +1202,7 @@ return (trunc(titles[0], 30) + "
" + trunc(titles[1], 30)).replace("---", " "); }; - var getItemFields = "MediaStreams,Chapters,Path"; + var getItemFields = "MediaVersions"; } window.MediaPlayer = new mediaPlayer();