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

Files API: Add Streaming file mime type support

    XMLWordPrintable

    Details

    • Database:
      Any
    • Testing Instructions:
      Hide

      Before applying the patch apply the following steps

      • Set up a course in Moodle
      • add a file resource or a resource containing a file of one (or all) of the file types listed in this issues description
      • Click and save the the test file resource
      • Using the browser inspector or other tool confirm that when the test file is downloaded that the mime-type sent is:
        • For .fmp4 & .ts: "application/octet-stream" (or txt / xml, depends of the browser)
        • For .mpd &.m3u8: their real mime-type, aka application/dash+xml and application/x-mpegURL
      • Optionally check the 'files' table in the database that all entries with the extension of the test file added have a 'mimetype' of "application/octet-stream"

      After applying the patch

      • Upgrade the site
      • Go back to the course in Moodle with the test file
      • Click and save the file resource
      • Using the browser inspector or other tool confirm that when the test file is downloaded that the mime-type sent now relates to the correct type as defined in the issue description
      • Optionally check the 'files' table in the database that all entries with the extension of the test file added have a 'mimetype'
      Show
      Before applying the patch apply the following steps Set up a course in Moodle add a file resource or a resource containing a file of one (or all) of the file types listed in this issues description Click and save the the test file resource Using the browser inspector or other tool confirm that when the test file is downloaded that the mime-type sent is: For .fmp4 & .ts: "application/octet-stream" (or txt / xml, depends of the browser) For .mpd &.m3u8: their real mime-type, aka application/dash+xml and application/x-mpegURL Optionally check the 'files' table in the database that all entries with the extension of the test file added have a 'mimetype' of "application/octet-stream" After applying the patch Upgrade the site Go back to the course in Moodle with the test file Click and save the file resource Using the browser inspector or other tool confirm that when the test file is downloaded that the mime-type sent now relates to the correct type as defined in the issue description Optionally check the 'files' table in the database that all entries with the extension of the test file added have a 'mimetype'
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
       master_MDL-66972_Streaming_file_types

      Description

      This is a follow up task from: MDL-63453

      Now that Video JS and Moodle support streaming file formats we should also update the supported file types in Moodle.  MDL-63453 add support for the playlist files for streaming media. This tracker adds file type support (correct mime type in DB, and correct mime type when serving) for the streaming media formats.

      The formats to add are:

      • .fmp4 - fragmented MPEG-4 (video/mp4)
      • .ts - MPEG transport stream (TS) - HTTP Streaming (video/MP2T)
      • .mpd - MPEG-DASH playlist (application/dash+xml )
      • .m3u8 - HLS playlist (application/x-mpegURL)

        Attachments

          Activity

            People

            Assignee:
            mattp@catalyst-au.net Matt Porritt
            Reporter:
            mattp@catalyst-au.net Matt Porritt
            Peer reviewer:
            Brendan Heywood
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Janelle Barcega
            Participants:
            Component watchers:
            Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Jun/20

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 40 minutes
                4h 40m