4

We have a content authoring tool that creates interactive learning activities (imagine a multiple choice quiz) packaged as self contained zip files that contain an index.html css / js / media assets (inc video).

We then create customised courses (an aggregation of these learning activities) and serve them to users.

My question is can I just upload these zip files to a web CMS (with global CDN) and then serve them directly to a user via some web app that just unzips the zip file on the client and renders the content on the browser? Or will this be horribly slow?

My problem is that the content of the zip files is self-contained, so I cannot host the media components separately somewhere like S3 with a global CDN and then reference them from the HTML.

1 Answers1

0

ePub uses a zipped format:

Ordered list of files in the OCF ZIP Container

mimetype
META-INF/container.xml
META-INF/signatures.xml
META-INF/encryption.xml
EPUB/As You Like It.opf
EPUB/book.html
EPUB/nav.html
EPUB/images/cover.png

The contents of the mimetype file

application/epub+zip

The contents of the META-INF/container.xml file

<?xml version="1.0"?>
<container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
    <rootfiles>
        <rootfile full-path="EPUB/As_You_Like_It.opf"
            media-type="application/oebps-package+xml" />
    </rootfiles>
</container>

and allows embedded video:

Audio or video embedded in an EPUB file should be contained in HTML5 tags, such as in the examples below:

<audio src="audio/example.mp3" />
<video src="video/example.mp4" width="640" height="480" />
<video title="Example Video" width="640" height="480" poster="images/example.jpg">
  <source src="video/example.mp4" />
  <source src="video/example.webm" />
</video>

References