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

Add support for keyboard hotkeys in VideoJS

    XMLWordPrintable

Details

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • MDL-71064-311
    • 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

    Description

      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

      Attachments

        Activity

          People

            pholden Paul Holden
            psuet psuet
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Anna Carissa Sadia Anna Carissa Sadia
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              17/May/21

              Time Tracking

                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