Skip to main content

XBlock to play self hosted h5p content inside open edX

Project description

Play H5P content in Open edX using h5pxblock

H5P Xblock provides ability to host and play H5P content in open edX. It has few more features

  1. Ability to mark H5P content complete in open edX
  2. Ability to capture score of H5P content in open edX
  3. Save learner state which can be retrieved later
  4. Ability to host H5P content on cloud storage like AWS S3

Setup

Install Xblock

pip install h5p-xblock

or if you're using tutor to manage your organization:

tutor config save --append OPENEDX_EXTRA_PIP_REQUIREMENTS=h5p-xblock
tutor images build openedx

Update Advanced Settings of course

Update course advanced settings by adding h5pxblock

Update course advanced settings

Upload H5P Content

Xblock should be available in Advanced component list of course unit now. Add xblock in unit and click "Edit" button to upload H5P content and configure it.

Upload and configure H5P content in Studio

Publish Content

Use "Preview" button to preview it or publish your content and use "View Live Version" button to see how it appears on LMS

Preview H5P content in LMS

Configuring S3 as a Storage Backend

H5P relies on DEFAULT_FILE_STORAGE setting to stores h5p content. In case of S3 storage, make sure your platform level S3 storage settings are set appropriately. If you either have set AWS_QUERYSTRING_AUTH = True then you have to set custom S3 storage settings for H5P xblock since singed url are not supported or if you want to store H5P content in a separate S3 bucket instead of default one you have to set custom S3 storage settings too.

Here is the required configuration:

H5PXBLOCK_STORAGE = {
    "storage_class": "storages.backends.s3boto3.S3Boto3Storage",
    "settings": {
        "bucket_name": "my-s3-public-bucket",
        "querystring_auth": False,
    },
}

Please ensure that your bucket is publicly accessible to enable seamless content storage and retrieval via S3.

Working with translations

You can help by translating this project. Follow the steps below:

  1. You need i18n_tool to "collect" and "compile" translations. If you already have it, proceed to the next item; otherwise:
pip install git+https://github.com/openedx/i18n-tools
  1. Create a folder for the translations in locale/, eg: locale/es_419/LC_MESSAGES/, and create your text.po file with all the translations.
  2. Run make compile_translations, this will generate the text.mo file.
  3. Create a pull request with your changes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

h5p_xblock-0.2.15.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

h5p_xblock-0.2.15-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

Details for the file h5p_xblock-0.2.15.tar.gz.

File metadata

  • Download URL: h5p_xblock-0.2.15.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for h5p_xblock-0.2.15.tar.gz
Algorithm Hash digest
SHA256 46ab184d9851ba58ac17ee61b93b7d1ef7f4ae90f9539cce24e9e094369be33c
MD5 abcabbfdc02162b23ba1ecc284554809
BLAKE2b-256 c6a8b79b4240d0359d34e5d8b63815b3eeffc419bbc5169076f61004f1bf6949

See more details on using hashes here.

File details

Details for the file h5p_xblock-0.2.15-py3-none-any.whl.

File metadata

  • Download URL: h5p_xblock-0.2.15-py3-none-any.whl
  • Upload date:
  • Size: 42.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for h5p_xblock-0.2.15-py3-none-any.whl
Algorithm Hash digest
SHA256 05bd9d6e00442f251322cf837d81d04b9f8689b949f8756245a5567d6da8409e
MD5 a6a6db46f50a86f33865023391334538
BLAKE2b-256 f2e7eb578174eedca0c6722715e99153329d35c47522ff4220b2bf58aa8e0744

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page