Support HTML-based resources in Assets
Hello guys, as described in #1791 the idea behind this plugin is to build a basic integration between Adapt AT and Adobe Animate CC, as well as any other external animation editor that can export animations to static HTML/JS files. Such editors normally export their animations to a ZIP file containing multiple static resources. The Adobe Animate .OAM package is an example of that (I can include one if needed).
With this new “Animation Asset Unpack” (AAU) plugin, the Adapt AT user can upload the animation OAM file into the assets library, and reference it into the course (as you normally do with images). Then the AAU plugin takes care of processing the OAM package during preview/publishing. As result, the animation is available to the output course in HTML format.
The AAU plugin works by adding a behavior to the default Preview/Publish features of Adapt AT. When installed, the AAU plugin starts watching the temp build directory of the course, and gets notified when a new file with OAM extension is available into the directory. Then it proceeds unpacking the OAM file into the “course/assets” folder, and removing the input package no longer needed.
This is an example of the output you get in course assets:
- /course
- /assets
- /myAnimation
- /index.html
- /anyOtherStaticResource
- /myAnimation
- /assets
I tried to develop this new feature without making changes to the "core" code. I mean, I developed a back-end output plugin (adapt_authoring/plugins/output/animationAssetUnpack) with the intent of making the plugin 100% self contained. But I must say that I could not achieve that, and I had to change 1 line of code in the default output plugin too (adapt_authoring/plugins/output/adapt). I hope that it is not to be a problem.
To see this feature in action you also need to install the new "Adapt Animation Frame" component, that I have just released to the Adapt plugin repository (or https://github.com/fabiobeoni/adapt-animation-frame).
Some module dependencies are listed in the package.json of the plugin and need to be installed.
Two sample animation files are available here to test the plugin.
Thanks! F.