[sushi] all: add audio and video mimetypes from Totem
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] all: add audio and video mimetypes from Totem
- Date: Wed, 27 Apr 2011 21:05:24 +0000 (UTC)
commit 8461dd9b289cd08d88b30e2c6bcd76e97116c742
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Apr 27 17:03:52 2011 -0400
all: add audio and video mimetypes from Totem
src/js/viewers/audio.js | 48 ++++++++++++++++++++++++++++++++++++-
src/js/viewers/gst.js | 60 ++++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 106 insertions(+), 2 deletions(-)
---
diff --git a/src/js/viewers/audio.js b/src/js/viewers/audio.js
index fec47bc..7198abf 100644
--- a/src/js/viewers/audio.js
+++ b/src/js/viewers/audio.js
@@ -295,4 +295,50 @@ AudioRenderer.prototype = {
let handler = new MimeHandler.MimeHandler();
let renderer = new AudioRenderer();
-handler.registerMime("audio/mpeg", renderer);
\ No newline at end of file
+let audioTypes = [
+ "audio/3gpp",
+ "audio/ac3",
+ "audio/AMR",
+ "audio/AMR-WB",
+ "audio/basic",
+ "audio/flac",
+ "audio/midi",
+ "audio/mp2",
+ "audio/mp4",
+ "audio/mpeg",
+ "audio/ogg",
+ "audio/prs.sid",
+ "audio/vnd.rn-realaudio",
+ "audio/x-aiff",
+ "audio/x-ape",
+ "audio/x-flac",
+ "audio/x-gsm",
+ "audio/x-it",
+ "audio/x-m4a",
+ "audio/x-matroska",
+ "audio/x-mod",
+ "audio/x-mp3",
+ "audio/x-mpeg",
+ "audio/x-ms-asf",
+ "audio/x-ms-asx",
+ "audio/x-ms-wax",
+ "audio/x-ms-wma",
+ "audio/x-musepack",
+ "audio/x-pn-aiff",
+ "audio/x-pn-au",
+ "audio/x-pn-wav",
+ "audio/x-pn-windows-acm",
+ "audio/x-realaudio",
+ "audio/x-real-audio",
+ "audio/x-sbc",
+ "audio/x-speex",
+ "audio/x-tta",
+ "audio/x-wav",
+ "audio/x-wavpack",
+ "audio/x-vorbis",
+ "audio/x-vorbis+ogg",
+ "audio/x-xm",
+];
+
+for (idx in audioTypes)
+ handler.registerMime(audioTypes[idx], renderer);
diff --git a/src/js/viewers/gst.js b/src/js/viewers/gst.js
index 2b69c86..e423d2b 100644
--- a/src/js/viewers/gst.js
+++ b/src/js/viewers/gst.js
@@ -216,4 +216,62 @@ GstRenderer.prototype = {
let handler = new MimeHandler.MimeHandler();
let renderer = new GstRenderer();
-handler.registerMime("video/mp4", renderer);
\ No newline at end of file
+let videoTypes = [
+ "application/mxf",
+ "application/ogg",
+ "application/ram",
+ "application/sdp",
+ "application/vnd.ms-wpl",
+ "application/vnd.rn-realmedia",
+ "application/x-extension-m4a",
+ "application/x-extension-mp4",
+ "application/x-flash-video",
+ "application/x-matroska",
+ "application/x-netshow-channel",
+ "application/x-ogg",
+ "application/x-quicktimeplayer",
+ "application/x-shorten",
+ "image/vnd.rn-realpix",
+ "image/x-pict",
+ "misc/ultravox",
+ "text/x-google-video-pointer",
+ "video/3gpp",
+ "video/dv",
+ "video/fli",
+ "video/flv",
+ "video/mp2t",
+ "video/mp4",
+ "video/mp4v-es",
+ "video/mpeg",
+ "video/msvideo",
+ "video/ogg",
+ "video/quicktime",
+ "video/vivo",
+ "video/vnd.divx",
+ "video/vnd.rn-realvideo",
+ "video/vnd.vivo",
+ "video/webm",
+ "video/x-anim",
+ "video/x-avi",
+ "video/x-flc",
+ "video/x-fli",
+ "video/x-flic",
+ "video/x-flv",
+ "video/x-m4v",
+ "video/x-matroska",
+ "video/x-mpeg",
+ "video/x-ms-asf",
+ "video/x-ms-asx",
+ "video/x-msvideo",
+ "video/x-ms-wm",
+ "video/x-ms-wmv",
+ "video/x-ms-wmx",
+ "video/x-ms-wvx",
+ "video/x-nsv",
+ "video/x-ogm+ogg",
+ "video/x-theora+ogg",
+ "video/x-totem-stream"
+];
+
+for (idx in videoTypes)
+ handler.registerMime(videoTypes[idx], renderer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]