support .wav and .m4a for embedded media

Bug #1838483 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Lisa Seeto

Bug Description

.wav and .m4a, 2 formats that are produced natively by iOS devices should be supported in the "Embedded media" block. That means they'll also need to be able to be turned on or off at /admin/extensions/pluginconfig.php?plugintype=blocktype&pluginname=file/internalmedia (Admin menu -> Extensions -> Plugin administration -> Plugins blocktype internalmedia

It will need to be checked if both formats can be served by our internal HTML5 player video.js or if it's only m4a.

Lisa Seeto (lisaseeto)
Changed in mahara:
status: Confirmed → In Progress
Lisa Seeto (lisaseeto)
Changed in mahara:
status: In Progress → Confirmed
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/10254

Lisa Seeto (lisaseeto)
Changed in mahara:
status: Confirmed → In Progress
Revision history for this message
Steven (stevens-q) wrote :

Commit hash: d7c61f86813dddc8e03fc2295bd09f9fa9cca764
Environment tested: Master
Browser tested: Chrome
Theme used: Raw

PRECONDITIONS:
------------------------
1) Test for uploading M4A file format using iPhone

TEST STEPS: Admin enable new media formats
------------------------
1) Log in as Site admin
2) Browse to Admin menu > Extensions > Plugin administration > file/internalmedia (first column 1/4 way down)
3) click the cog icon
4) Verify that there are new media formats of M4A audio file and WAV audio file ✔
5) Enable the new formats and save (might as well enable all formats)
6) Create or edit a portfolio page
7) Add an embedded media block to the page - and use the file format M4A file
8) Add an embedded media block to the page - and use the file format WAV file
9) Verify that the files can be uploaded ✔
10) Verify that the madia plays as expected ✔

Catalyst QA Approved ✔

Revision history for this message
Steven (stevens-q) wrote :

Commit hash: ea516e0261875281c7786e24e5669c65148a0383
Environment tested: Master
Browser tested: Chrome
Theme used: Raw

PRECONDITIONS:
------------------------
1) Mahara User3 exists (no roles) and has a portfolio page "Media testing"
2) Embedded media blocks are added to a portfolio page with the following file formats:
 a) .m4a - M4B is a file extension for an MPEG-4 part 14 audio layer audio book container file format used by iTunes
 b) .m4b - M4A is a file extension for an audio file encoded with advanced audio coding (AAC) which is a lossy compression
 c) .m4p - M4P stands for MPEG 4 Protected (audio). The M4P file extension is seen in an Apple iTunes purchased song which uses Apples “Fairplay” DRM
 d) .m4r - A file with the M4R file extension is an iTunes Ringtone file.

TEST STEPS: Admin enable new media formats
------------------------
1) Log Mahara User1
2) Browse to the portfolio page mentioned in preconditions
3) Verify that the 4 media blocks are working as expected
4) download patch ea516e0261875281c7786e24e5669c65148a0383
5) Log out and log in as Site admin
6) Browse to Admin menu > Extensions > Plugin administration > file/internalmedia (first column 1/4 way down)
7) click the cog icon
8) Verify that there are new media formats of M4A audio file and WAV audio file ✔
9) Enable the new formats and save (might as well enable all formats)
10) Log out and lohg in as Mahara User1
11) Browse to the portfolio page mentioned in preconditions
12) Verify that the 4 media blocks are working as expected
13) Add an embedded media block to the page - and use the file format M4A file
14) Add an embedded media block to the page - and use the file format WAV file
15) Verify that the files can be uploaded ✔
156) Verify that the madia plays as expected ✔

Catalyst QA Approved ✔

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/10254
Committed: https://git.mahara.org/mahara/mahara/commit/4681451f46460cd76fa7f6bb911a7793b06be7ec
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 4681451f46460cd76fa7f6bb911a7793b06be7ec
Author: Lisa Seeto <email address hidden>
Date: Fri Aug 9 10:34:47 2019 +1200

Bug 1838483: support .wav and .m4a for embedded media

added the .wav and .m4a files to the plugin administration list of file types for internal media
added new string for m4a audio file
clean up artefact_file_mime_types to change m4a, m4b, m4p and m4r files to be audio/mp4
perform upgrade to update existing files to have the new mimetype

Change-Id: I6940c249cd715cfc373c1e0881a86da9c86a2e1b
Signed-off-by: Lisa Seeto <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
tags: added: nominatedfeature
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.