From 2eb17f4c320fd0442668de912553b8e9a3de33d9 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Tue, 9 Feb 2016 19:44:07 -0800 Subject: [PATCH] Fix MIME mapping for ogg/vorbis -> audio/ogg --- player/raw-file.coffee | 2 +- www/js/player.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/player/raw-file.coffee b/player/raw-file.coffee index 8cf63182..8053cd9c 100644 --- a/player/raw-file.coffee +++ b/player/raw-file.coffee @@ -5,7 +5,7 @@ codecToMimeType = (codec) -> when 'matroska/vp8', 'matroska/vp9' then 'video/webm' when 'ogg/theora' then 'video/ogg' when 'mp3' then 'audio/mp3' - when 'vorbis' then 'audio/vorbis' + when 'vorbis' then 'audio/ogg' else 'video/flv' window.FilePlayer = class FilePlayer extends VideoJSPlayer diff --git a/www/js/player.js b/www/js/player.js index 1cf52a40..3e6764cc 100644 --- a/www/js/player.js +++ b/www/js/player.js @@ -654,7 +654,7 @@ case 'mp3': return 'audio/mp3'; case 'vorbis': - return 'audio/vorbis'; + return 'audio/ogg'; default: return 'video/flv'; }