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

Configure VideoJS player for RTMP

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.5
    • Component/s: Media
    • Testing Instructions:
      Hide

      Steps for testing:

      1. Open media_videojs settings and enable both flash and RTMP.
      2. Add page to the course and in the editor insert the URL link pointing to rtmp://184.72.239.149/vod/&mp4:BigBuckBunny_115k.mov (example stream URL is  taken from https://www.hdwplayer.com/rtmp-player/)
      3. Save and view the page in the browser. It might be that you will see the error "No compatible source was found for this media.", in this case set Flash setting to "Allow" in your browser (rather than "ask"). This browser behaviour is not specific to this patch, any flash content seem require explicit permissions in Chrome at least on my PC.

      The unit test is provided as well.

      Show
      Steps for testing: Open media_videojs settings and enable both flash and RTMP. Add page to the course and in the editor insert the URL link pointing to rtmp://184.72.239.149/vod/&mp4:BigBuckBunny_115k.mov (example stream URL is  taken from https://www.hdwplayer.com/rtmp-player/) Save and view the page in the browser. It might be that you will see the error "No compatible source was found for this media.", in this case set Flash setting to "Allow" in your browser (rather than "ask"). This browser behaviour is not specific to this patch, any flash content seem require explicit permissions in Chrome at least on my PC. The unit test is provided as well.
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull Master Branch:
      MDL-58065-master

      Description

      Full Steps

      • Go into a course
      • Turn editing on
      • Add HTML5 video source code or RTMP video link (from repository or just as link/video link)
      • Save

      What I Expected

      • Core multimedia filter should configure VideoJS player to wrap HTML5 video source code for RTMP src

      What Actually Happens

      • VideoJS player reports that media could not be loaded, either because the server or network failed or because the format is not supported. The core multimedia filter in the media/classes/manager.php file, get_mimetype() function does not account for the initial rtmp:// in the video src URL. It only looks at the filetype .mp4 and returns type="video/mp4". VideoJS will work with RTMP, but the type needs to be specified as "rtmp/mp4".

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  17/May/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h