From f61a812c0ad0bd4503dc358a4421707239eb590b Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Tue, 12 Mar 2013 23:07:04 -0400 Subject: [PATCH] #39 - Support IE10 with dashboard playback --- MediaBrowser.WebDashboard/Html/scripts/MediaPlayer.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.WebDashboard/Html/scripts/MediaPlayer.js b/MediaBrowser.WebDashboard/Html/scripts/MediaPlayer.js index 307cd9b03..486527bd0 100644 --- a/MediaBrowser.WebDashboard/Html/scripts/MediaPlayer.js +++ b/MediaBrowser.WebDashboard/Html/scripts/MediaPlayer.js @@ -8,7 +8,7 @@ if (media.canPlayType) { - return media.canPlayType('video/mp2t').replace(/no/, '') || media.canPlayType('video/webm').replace(/no/, '') || media.canPlayType('application/x-mpegURL').replace(/no/, '') || media.canPlayType('video/ogv').replace(/no/, ''); + return media.canPlayType('video/mp4').replace(/no/, '') || media.canPlayType('video/mp2t').replace(/no/, '') || media.canPlayType('video/webm').replace(/no/, '') || media.canPlayType('application/x-mpegURL').replace(/no/, '') || media.canPlayType('video/ogv').replace(/no/, ''); } return false; @@ -119,6 +119,11 @@ maxHeight: screenHeight }; + var mp4VideoUrl = ApiClient.getUrl('Videos/' + item.Id + '/stream.mp4', $.extend({}, baseParams, { + videoCodec: 'h264', + audioCodec: 'aac' + })); + var tsVideoUrl = ApiClient.getUrl('Videos/' + item.Id + '/stream.ts', $.extend({}, baseParams, { videoCodec: 'h264', audioCodec: 'aac' @@ -141,6 +146,7 @@ var html = ''; html += '