fixes #577 - Subtitle Failures

This commit is contained in:
Luke Pulverenti 2013-10-23 14:58:05 -04:00
parent 16bd6ed28e
commit 008a512a5d

View File

@ -1474,7 +1474,7 @@
return i.Type == "Subtitle";
});
var currentIndex = getParameterByName('SubtitleStreamIndex', currentMediaElement.currentSrc);
var currentIndex = getParameterByName('SubtitleStreamIndex', currentMediaElement.currentSrc) || -1;
var html = '';
@ -1549,7 +1549,7 @@
return i.Type == "Video";
})[0];
var currentVideoBitrate = getParameterByName('videoBitrate', currentMediaElement.currentSrc) || getParameterByName('VideoBitrate', currentMediaElement.currentSrc);
var currentVideoBitrate = getParameterByName('videoBitrate', currentMediaElement.currentSrc);
var maxAllowedWidth = Math.max(screen.height, screen.width);