-
Improvement
-
Resolution: Fixed
-
Minor
-
3.8
-
MOODLE_38_STABLE
-
MOODLE_38_STABLE
-
MDL-66388-master-2 -
-
H5P Sprint 1, H5P Sprint 2, H5P Sprint 3
As a tool for content creators, to make it easier to use existing H5P content in Moodle, we have to create a new Atto button to add H5P content. The behavior of the new “insert H5P content” button allows to add a new URL to an external H5P content.
For URLs like https://xxx.h5p.com/content/yyy or https://h5p.org/h5p/embed/yyy the button should add the HTML code above:
<iframe src="https://xxx.h5p.com/content/yyy/embed" width="www" height="hhh" frameborder="0" allowfullscreen="allowfullscreen" allow="geolocation *; microphone *; camera *; midi *; encrypted-media *"></iframe><script src="https://xxx.h5p.com/js/h5p-resizer.js" charset="UTF-8"></script> |
or
<iframe src="https://h5p.org/h5p/embed/yyy" width="www" height="hhh" frameborder="0" allowfullscreen="allowfullscreen"></iframe> |
<script src="https://h5p.org/sites/all/modules/h5p/library/js/h5p-resizer.js" charset="UTF-8"></script> |
|
Tasks:
- Create a basic skeleton H5P plugin for Atto
- Create templates/icon/styles for JS tabs
- Add TAB Pane for Embed URL H5P. Allow external URLs from h5p.com and hp5.org
- Create new capability for using H5P atto button
- Create callbacks
- Privacy: No user data