We’re currently building Pressbooks and embedding interactive content using the H5P plugin for WordPress. H5P activities are created in/for individual sites/books, and once published can be embedded anywhere. The plugin allows us to embed the activities using shortcodes, which most authors do. One problem that we’re encountering is that we haven’t yet tightly integrated H5P activities with the Pressbooks cloning routine. My understanding (which is admittedly limited) is that while H5P does provide an javascript API: https://h5p.org/documentation/api/H5P.html, it doesn’t currently produce the REST API endpoints we would need to clone these activities along with other content in a Pressbooks.
As I understand it, in order to allow H5P activities in book to be cloned using the Pressbooks cloning tool, two things need to happen: 1) REST API endpoints need to be added to H5P activities via the WordPress REST API and 2) The Pressbooks cloning routine should be modified so that it looks for and copy/clones any H5P activities exposed via the WordPress REST API. I’m interested in working with the H5P developer community to do #1, namely, to add custom endpoints to their H5P activities in their WordPress plugin. I’m sharing this here in the hope that others in the Pressbooks community may be interested in this work and can help me to better describe the use case and technical requirements for the H5P folks and because others here might be able to either figure out how to fund or contribute to a pull request with H5P and then move on to doing #2 above. Thoughts/advice/discussion/direction welcome!