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

Play mps3 natively on Firefox

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.6.1, 2.7
    • Fix Version/s: None
    • Component/s: Filters, Resource
    • Labels:
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE

      Description

      If you untick the core_media_enable_mp3 setting in the Media Embedding seccton of Admin (help text: "Files with extension *.mp3. Plays audio using Flowplayer, requires Flash plugin.") and have the core_media_enable_html5audio ticked (help text: "Audio files with extension *.ogg, *.aac and *.mp3. Used primarily for mobile devices. (Format support depends on browser.)") then, unlike Safari/Chrome/IE9+, Firefox will not have audio tags created for it.

      This was done since Firefox didn't support mp3, but now it (mostly) does:

      https://developer.mozilla.org/en-US/docs/HTML/Supported_media_formats#MP3

      As I type that page seems slightly out of date as my version 26 on XP plays MP3 files.

      The code that does this is here:

      https://github.com/moodle/moodle/blob/master/lib/medialib.php#L1131-L1158

      Possibly because of this same code, the files that you upload into Moodle (as opposed to linking to them) get played in Firefox but are treated like video files (and so take up much more space than necessary).

      I'd suggest that with this change, the default in Moodle should be to use HTML5 audio rather than Flash, but maybe that's another bug to be filed once this one is done.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              bawjaws David Scotson
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: