From e5973549904b0b242eb5edde672989a834dc94ff Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 6 Apr 2013 10:49:48 -0400 Subject: [PATCH] #115 - prioritize hls ahead of mp4 --- dashboard-ui/scripts/mediaplayer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/mediaplayer.js b/dashboard-ui/scripts/mediaplayer.js index 0fada88c24..be635ac7fd 100644 --- a/dashboard-ui/scripts/mediaplayer.js +++ b/dashboard-ui/scripts/mediaplayer.js @@ -261,10 +261,11 @@ audioCodec: 'Vorbis' })); - (this).src([{ type: "video/webm", src: webmVideoUrl }, + (this).src([ + { type: "application/x-mpegURL", src: hlsVideoUrl }, + { type: "video/webm", src: webmVideoUrl }, { type: "video/mp4", src: mp4VideoUrl }, { type: "video/mp2t; codecs='h264, aac'", src: tsVideoUrl }, - { type: "application/x-mpegURL", src: hlsVideoUrl }, { type: "video/ogg", src: ogvVideoUrl }] ).volume(volume);