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

Add sub plugins to VideoJS media plugin

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 3.5, 3.8
    • Media
    • MOODLE_35_STABLE, MOODLE_38_STABLE
    • master_MDL-62337_videojs_subplugins
    • Hide

      Enabling Download Plugin

      This tests checks the functionality of  enabling and disabling of the download plugin bundled with the patch

      1. With this patch applied create a course in Moodle
      2. Add a new label resource to the course
      3. Add an MP4 Video as a link using the insert media button from the atto editor
      4. Save the label
      5. Observe the video embedded into the course
      6. Play the video
      7. observe that the video download button in the UI does not appear (see attached file Download_plugin_disabled.png)
      8. As an administrator navigate to the VideoJS plugins overview page (Site admin > plugins > media players > VideoJS player > VideoJS plugins overview)
      9. Enable the "Download videos" plugin (see attached file VideoJS Plugin settings.png)
      10. Navigate back to the course containing the video embedded as a label
      11. Play the video
      12. Observe that the download video button does appear in the player UI (see attached file: VideoJS Plugin enabled.png)
      13. Click the download video button and download the video locally.

      Installing Test Plugin

      This test checks installing an additional plugin into Moodle and its settings.

      1.  Install the test VideoJS plugin from:  https://github.com/mattporritt/moodle-videojs_testplugin
      2. As an administrator navigate to the VideoJS plugins overview page (Site admin > plugins > media players > VideoJS player > VideoJS plugins overview)
      3.  Enable the "Test plugin"
      4. Click on the settings link for the Test Plugin
      5. Ensure that the "Test setting" has a value entered and click  save
      6. Navigate to the course with the embedded video created in the previous test
      7. Open the javascript console in web browser you are using to test
      8. Reload the course page and observe that a JavaScript log entry appears that matches the test value for the test setting
      9. Click to play the video
      10. Observe that when video playback starts the message "playback has started!" appears in the JavaScript console log
      11.  Go back to the VideoJS plugin overview and disable the test plugin
      12. Return to the course with the video
      13. Play the video and observe that both messages now do not appear in the console

       

      Show
      Enabling Download Plugin This tests checks the functionality of  enabling and disabling of the download plugin bundled with the patch With this patch applied create a course in Moodle Add a new label resource to the course Add an MP4 Video as a link using the insert media button from the atto editor Save the label Observe the video embedded into the course Play the video observe that the video download button in the UI does not appear (see attached file Download_plugin_disabled.png) As an administrator navigate to the VideoJS plugins overview page (Site admin > plugins > media players > VideoJS player > VideoJS plugins overview) Enable the "Download videos" plugin (see attached file VideoJS Plugin settings.png) Navigate back to the course containing the video embedded as a label Play the video Observe that the download video button does appear in the player UI (see attached file: VideoJS Plugin enabled.png) Click the download video button and download the video locally. Installing Test Plugin This test checks installing an additional plugin into Moodle and its settings.  Install the test VideoJS plugin from:  https://github.com/mattporritt/moodle-videojs_testplugin As an administrator navigate to the VideoJS plugins overview page (Site admin > plugins > media players > VideoJS player > VideoJS plugins overview)  Enable the "Test plugin" Click on the settings link for the Test Plugin Ensure that the "Test setting" has a value entered and click  save Navigate to the course with the embedded video created in the previous test Open the javascript console in web browser you are using to test Reload the course page and observe that a JavaScript log entry appears that matches the test value for the test setting Click to play the video Observe that when video playback starts the message "playback has started!" appears in the JavaScript console log  Go back to the VideoJS plugin overview and disable the test plugin Return to the course with the video Play the video and observe that both messages now do not appear in the console  

      VideoJS project has a lot of very useful plugins that can be added to the Moodle VideoJS media plugin, if it had a subplugin infrastructure. 

      Commonly useful plugins:

      • Playlist
      • Thumbnails
      • MPEG-DASH / HLS
      • Annotation
      • Interactive transcript
      • Marks

      Full list of plugins:

      https://github.com/videojs/video.js/wiki/Plugins

            Unassigned Unassigned
            nadavkav Nadav Kavalerchik
            Brendan Heywood Brendan Heywood
            Votes:
            9 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m

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