From 35650f122be68725106f93af1890178328920b33 Mon Sep 17 00:00:00 2001
From: "B. Sc Pius Gyamenah" <pgyamenah001@st.ug.edu.gh>
Date: Fri, 17 Feb 2023 14:48:43 +0000
Subject: [PATCH] allow mp4/m4a selection in courseware audio block

Closes #2028 and #1058

Merge request studip/studip!1412
---
 resources/vue/components/courseware/CoursewareFileChooser.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resources/vue/components/courseware/CoursewareFileChooser.vue b/resources/vue/components/courseware/CoursewareFileChooser.vue
index 99bc17fd02b..e433c933146 100644
--- a/resources/vue/components/courseware/CoursewareFileChooser.vue
+++ b/resources/vue/components/courseware/CoursewareFileChooser.vue
@@ -92,7 +92,7 @@ export default {
                 if (this.isVideo && !videoConditions.some(condition => file.attributes['mime-type'].includes(condition))) {
                     return false;
                 }
-                const audioConditions = ['audio/wav', 'audio/ogg', 'audio/webm','audio/flac', 'audio/mpeg'];
+                const audioConditions = ['audio/wav', 'audio/ogg', 'audio/webm','audio/flac', 'audio/mpeg', 'audio/x-m4a', 'audio/mp4'];
                 if (this.isAudio && !audioConditions.some(condition => file.attributes['mime-type'].includes(condition)) ) {
                     return false;
                 }
-- 
GitLab