From 31317a0954347a052d21f634e0a3215cf3b77599 Mon Sep 17 00:00:00 2001 From: Techywarrior Date: Wed, 17 Apr 2013 20:03:34 -0700 Subject: [PATCH] added mkv stream for chrome --- dashboard-ui/scripts/mediaplayer.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dashboard-ui/scripts/mediaplayer.js b/dashboard-ui/scripts/mediaplayer.js index b8028dc89b..749ee0b44f 100644 --- a/dashboard-ui/scripts/mediaplayer.js +++ b/dashboard-ui/scripts/mediaplayer.js @@ -150,8 +150,14 @@ audioCodec: 'Vorbis' })); + var mkvVideoUrl = ApiClient.getUrl('Videos/' + item.Id + '/stream.mkv', $.extend({}, baseParams, { + videoCodec: 'h264', + audioCodec: 'aac' + })); + (this).src([ { type: "application/x-mpegURL", src: hlsVideoUrl }, + { type: "video/x-matroska", src: mkvVideoUrl }, { type: "video/webm", src: webmVideoUrl }, { type: "video/mp4", src: mp4VideoUrl }, { type: "video/mp2t; codecs='h264, aac'", src: tsVideoUrl },