Moodle app H5P support

From MoodleDocs

Support by version

Before Moodle 3.8

  • H5P was supported via an activity plugin developed by the H5P Team (requires Moodle 3.5 onwards)
  • It worked in the app, the H5P content was launched in a special frame embedded in the app. Did not support offline browsing
  • Required certain site configuration changes (like enabling frame embedding)

Moodle 3.8

  • Initial core support added
  • H5P content only available via embedding (text editor and filter)
  • H5P content supported in the Moodle App 3.8

Moodle 3.9

  • New H5P activity plugin available in the core distribution
  • New Content Bank for managing H5P content in the Moodle site
  • H5P activities can be graded
  • H5P activities supported in the Moodle App 3.9

How H5P content is displayed?

Embedded

  • The content “auto-plays” in the web version and in the app if the display option 'Auto-play in mobile app' (new in Moodle LMS and app 5.0) is checked. Otherwise, it has to be manually played in the app by the student.
    • As a workaround for older Moodle LMS versions, you can add this HTML attribute in the main element used to embed the H5P file: data-mobileapp-autoplay="true"
  • The app will automatically download the content for offline use (so it is available without connection)
    • WiFi: Only if the package size is less than 20MB
    • 3G/4G: Only if the package size is less than 2MB
  • For larger packages, the student can always choose to download it manually (click top-right)
  • If the student is downloading the full course, all the embedded H5P packages will be downloaded
  • External H5P are not downloadable for offline use

As part of the core H5P activity (Moodle 3.9 onwards)

  • The content is automatically downloaded and “auto-plays” in the app if:
    • WiFi: Only if the package size is less than 20MB
    • 3G/4G: Only if the package size is less than 2MB
  • For larger packages, we display a Play button so the student can launch it.
  • The H5P is always downloaded (be careful with big H5P packages), it is required for activating tracking
  • In the Moodle Site Administration settings, downloading H5P packages can be disabled.
  • Students can review their previous attempts in the app

Working offline

  • Offline support is only available in the core H5P activity module
  • For the offline mode to work, the app needs to download the H5P zip package to the user's device. You can prevent H5P packages from being downloaded via Moodle settings (Moodle app features section), selecting the "View H5P offline" option. Please note that preventing the download of H5P packages will disable the offline support.
  • Students can download a full course with H5P activities or a single H5P activity
  • In both cases, if he is playing the package when it is not connected to the Internet, all the tracking information will be stored locally in the device
  • Once the user is connected back to the Internet, all the tracking information will be sent to the server for the teacher to review
  • If the H5P package has missing dependencies or errors, it might only work online and not offline