-
Bug
-
Resolution: Fixed
-
Major
-
3.11.6, 4.0.5, 4.1, 4.1.6, 4.2, 4.2.3, 4.3
Description
MP3 files that are added using folder resources cannot be played with Chrome. The same files when accessed using Firefox, play without issue.
Steps to replicate
1. Add a new file resource to a course.
2. Provide a name and upload any .mp3 file (a sample file is attached).
3. Using Google Chrome, open the new file resource and click the play button. Observe that the mp3 clip plays successfully.
4. Add a new folder resource to the course.
5. Provide a name and upload the SAME .mp3 file. Un-select the option "Force download of files".
6. Using Google Chrome, click on the new folder and then click on the .mp3 file.
OBSERVED BEHAVIOR:
A media player opens within the browser window, but you cannot play the mp3 file.
EXPECTED BEHAVIOR:
A media player opens within the browser window and can be used to play and interact with the mp3 file.
ADDITIONAL INVESTIGATION NOTES
Chrome console returns this error when trying to load the mp3 file from a folder resource:
Refused to load media from '<url> because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'media-src' was not explicitly set, so 'default-src' is used as a fallback. (Video was recorded in the Moodle Sandbox testing site https://sandbox.moodledemo.net/)
- duplicates
-
MDL-76682 Content Security Policy for folders disallows opening of videos in browser
-
- Closed
-