Permalink
Browse files

adjusted preview with correct mp3 (mpeg) mime-type and m4a

  • Loading branch information...
1 parent e19bbdb commit f4c696417bef345d6582fe604cc4c25f60de7e43 @coolaj86 coolaj86 committed Jun 30, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 browser/app.js
View
@@ -288,7 +288,13 @@
$('#itemview').prepend('<img src="' + url + '" />');
break;
case 'mp3':
- $('#itemview').prepend('<audio controls="controls"><source src="' + url + '" type="audio/mp3" /></audio>');
+ $('#itemview').prepend('<audio controls="controls"><source src="' + url + '" type="audio/mpeg" /></audio>');
+ break;
+ case 'm4a':
+ $('#itemview').prepend('<audio controls="controls"><source src="' + url + '" /></audio>');
+ break;
+ case 'ogg':
+ $('#itemview').prepend('<audio controls="controls"><source src="' + url + '" type="audio/ogg" /></audio>');
break;
case 'mp4':
$('#itemview').prepend('<video controls="controls"><source src="' + url + '" type="video/mp4" /></video>');

0 comments on commit f4c6964

Please sign in to comment.