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

Configure VideoJS player for RTMP

XMLWordPrintable

    • MOODLE_35_STABLE
    • MOODLE_35_STABLE
    • MDL-58065-master
    • 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.

      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".

            kabalin Ruslan Kabalin
            meltonml Michelle Melton
            Tim Hunt Tim Hunt
            Andrew Lyons Andrew Lyons
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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