Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-74248

MP3 files uploaded to folder resources will not play in Chrome

XMLWordPrintable

      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/) 

            frederikmillingpytlick Frederik Milling Pytlick
            juanolivares Juan Olivares
            Tobias Garske Tobias Garske
            Ilya Tregubov Ilya Tregubov
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 44 minutes
                44m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.