H5P Xblock provides ability to host and play H5P content in open edX. It has few more features
- Ability to mark H5P content complete in open edX
- Ability to capture score of H5P content in open edX
- Save learner state which can be retrieved later
- Ability to host H5P content on cloud storage like AWS S3
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 course advanced settings by adding h5pxblock
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.
Use "Preview" button to preview it or publish your content and use "View Live Version" button to see how it appears on LMS
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.
You can help by translating this project. Follow the steps below:
- 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
- Create a folder for the translations in
locale/
, eg:locale/es_419/LC_MESSAGES/
, and create yourtext.po
file with all the translations. - Run
make compile_translations
, this will generate thetext.mo
file. - Create a pull request with your changes.