diff options
author | Darius Jahandarie <djahandarie@gmail.com> | 2023-03-23 23:03:38 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 23:03:38 +0900 |
commit | e358d21b5a35395d91129102ddc0ce69d8e2f078 (patch) | |
tree | 14bcb2ea85b2c2c656037d48225773ebc25d62bd | |
parent | 227879aebe27de950f28940e337cb37fe62a83d6 (diff) | |
parent | 6c59edd1e74c15865570f6675be5ec64af130a25 (diff) |
Merge pull request #8 from ctpk/master
Apply .aac extension so playback works in downstream Anki clients
-rw-r--r-- | ext/js/media/media-util.js | 2 |
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'; |