aboutsummaryrefslogtreecommitdiff
path: root/ext/js
diff options
context:
space:
mode:
authorDarius Jahandarie <djahandarie@gmail.com>2023-03-23 23:03:38 +0900
committerGitHub <noreply@github.com>2023-03-23 23:03:38 +0900
commite358d21b5a35395d91129102ddc0ce69d8e2f078 (patch)
tree14bcb2ea85b2c2c656037d48225773ebc25d62bd /ext/js
parent227879aebe27de950f28940e337cb37fe62a83d6 (diff)
parent6c59edd1e74c15865570f6675be5ec64af130a25 (diff)
Merge pull request #8 from ctpk/master
Apply .aac extension so playback works in downstream Anki clients
Diffstat (limited to 'ext/js')
-rw-r--r--ext/js/media/media-util.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/js/media/media-util.js b/ext/js/media/media-util.js
index f62baba2..eb7f95f8 100644
--- a/ext/js/media/media-util.js
+++ b/ext/js/media/media-util.js
@@ -108,6 +108,8 @@ class MediaUtil {
*/
static getFileExtensionFromAudioMediaType(mediaType) {
switch (mediaType) {
+ case 'audio/aac':
+ return '.aac';
case 'audio/mpeg':
case 'audio/mp3':
return '.mp3';