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

embedded h5p audio files were not consistently displaying from a single Moodle quiz page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.10.6
    • Fix Version/s: None
    • Component/s: H5P
    • Labels:
      None
    • Affected Branches:
      MOODLE_310_STABLE

      Description

      Platform: Moodle

      Operating system: Windows

      Browser: Respondus

       

      Description

      Embedded H5P audio wasn't displaying for some Moodle users in the Respondus browser. The error message was "You do not have access to this content. Try logging in" ('Microsoft Teams-image.png'). It worked as expected for other users.

       

      Steps taken to reproduce

      We replicated the original student journey on the live site. We recreated the quiz page in a Moodle sandbox using the system generated h5p audio embed code.

       

      Expected result

      The embedded H5P audio should display and autoplay upon pageload

       

      Actual result

      The embedded h5p audio playback worked as expected in Chrome, Respondus and MSEdge browsers on the live site. However, closer inspection of the system-generated h5p audio source in the Moodle sandbox revealed an instability with how Moodle/jquery might attempt to configure the H5P module's settings in some browsers ('Capture.png')

       

      Excerpt from https://moodle.arts.ac.uk/mod/hvp/embed.php?id=635681

       

       

      <script>
      //<![CDATA[
      var require = {
      baseUrl : 'https://moodle.arts.ac.uk/lib/requirejs.php/1628073064/',
      // We only support AMD modules with an explicit define() statement.
      enforceDefine: true,
      skipDataMain: true,
      waitSeconds : 0,

      paths:

      { jquery: 'https://moodle.arts.ac.uk/lib/javascript.php/1628073064/lib/jquery/jquery-3.5.1.min', jqueryui: 'https://moodle.arts.ac.uk/lib/javascript.php/1628073064/lib/jquery/ui-1.12.1/jquery-ui.min', jqueryprivate: 'https://moodle.arts.ac.uk/lib/javascript.php/1628073064/lib/requirejs/jquery-private' }

      ,

      // Custom jquery config map.
      map:

      { // '*' means all modules will get 'jqueryprivate' // for their 'jquery' dependency. '*': \{ jquery: 'jqueryprivate' }

      ,
      // Stub module for 'process'. This is a workaround for a bug in MathJax (see MDL-60458).
      '*': { process: 'core/first' },

      // 'jquery-private' wants the real jQuery module
      // though. If this line was not here, there would
      // be an unresolvable cyclic dependency.
      jqueryprivate: { jquery: 'jquery' }
      }
      };

      //]]>
      </script>

       

       

       

       

       

        Attachments

        1. Capture.PNG
          Capture.PNG
          122 kB
        2. Capture2.PNG
          Capture2.PNG
          85 kB
        3. MicrosoftTeams-image (4)1 (002).png
          MicrosoftTeams-image (4)1 (002).png
          2.38 MB

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rgparry rgparry
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: