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

Add support for keyboard hotkeys in VideoJS

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.11
    • 3.10.1, 3.11, 4.0
    • Media
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • Hide
      1. Create a new course
      2. Add a new label activity with the following video inserted as Media:

        https://www.youtube.com/watch?v=dQw4w9WgXcQ
        

      3. Press Save and return to course
      4. Play the video
      5. Press "f" on your keyboard
      6. Confirm video is playing fullscreen
      7. Confirm following hotkeys also work:
        1. space = pause/play
        2. m = mute/unmute
        3. k = pause/play
      Show
      Create a new course Add a new label activity with the following video inserted as Media: https://www.youtube.com/watch?v=dQw4w9WgXcQ Press Save and return to course Play the video Press " f " on your keyboard Confirm video is playing fullscreen Confirm following hotkeys also work: space = pause/play m = mute/unmute k = pause/play

      I currently watch a ton of videos (with video.js) and would appreciate it if Moodle would enable keyboard hotkeys for common video operations.

      This change would allow more comfortable use, primarily if "Space" could be used to pause and play videos.

       

      f toggle fullscreen
      m toggle mute
      k toggle play/pause
      Space toggle play/pause

      https://docs.videojs.com/tutorial-options.html#useractions.hotkeys

      How to resolve:

      Just add 

      videojs.options.userActions.hotkeys = true
      

       
      to

      media/player/videojs/amd/src/loader.js:93

            pholden Paul Holden
            psuet psuet
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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