[Sugar-devel] [PATCH] add mp3 to partial fix - SL #3933 #4465

James Cameron quozl at laptop.org
Thu Oct 2 00:23:51 EDT 2014


A previous patch 4bc0218 made the embedded audio player buttons larger
for OGG files.

This patch extends that to MP3 files.
---
 browser.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/browser.py b/browser.py
index 35c7437..ae4d60e 100644
--- a/browser.py
+++ b/browser.py
@@ -716,7 +716,7 @@ class Browser(WebKit.WebView):
             policy_decision.ignore()
             return True
 
-        elif mimetype == 'audio/x-vorbis+ogg':
+        elif mimetype == 'audio/x-vorbis+ogg' or mimetype == 'audio/mpeg':
             self._inject_media_style = True
 
         elif not self.can_show_mime_type(mimetype):
-- 
1.8.3.2



More information about the Sugar-devel mailing list