diff --git a/AGENTS.md b/AGENTS.md
index 1c6e6d30..a06eb92d 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -264,7 +264,9 @@ packages/embed/ @missing-elements/h5p-embed — the embed page as a st
fetched from the site and the zip a Blob; lib/shared.mjs, EmbedError and
the player's file names, for the modules that import no Node (#122)
scorm/ the SCORM package's launch page (index.html, its title, language and
- build filled in by the writer) and scorm.js, its bridge to the LMS's API
+ build filled in by the writer), scorm.js, its bridge to the LMS's API,
+ and lz-string.js, lz-string 1.5.0 as npm publishes it (MIT, its licence
+ in its header), which the bridge compresses the saved state with (#124)
bin/h5p-embed.mjs the command
scripts/ build.mjs, dist/scorm-page.js: the SCORM page's script bundled with zip.js
and the player's `./plan` for a written site, which has no bundler
@@ -2443,22 +2445,71 @@ one row each; an LMS added here gets a row there.
The last `finished` counts, as `setFinished` does on an H5P site. On `beforeunload` it sets the
session time and `cmi.core.exit` (`suspend` unless finished) and commits; on `pagehide` it sets
- both again and calls `LMSFinish`. The commit is ILIAS's (#94, under *ILIAS plays it too*), and
+ both again and calls `LMSFinish`.
+ **Each answer goes into `cmi.interactions`** (#124, 2026-11-04, asked for by two of three
+ commenters on the Reddit demand check): every `answered` statement the element relays, by the
+ part's `subContentId`, with the question's words as the id, since 1.2 has no description field
+ and the id is what a report shows (a slug in printable ASCII, which 1.2's `CMIIdentifier`
+ allows and nothing else; the key for a question with no words; `-2` on a second question with
+ the same words), the xAPI type as 1.2 names it (`long-fill-in` as `fill-in`, `other` and an
+ unknown type left out), the pattern and the response cut to 255 (`CMIFeedback`; H5P's `0[,]2`
+ goes in as it is, which Moodle takes), `correct` or `wrong` from `success`, or from the score
+ where the content says nothing, as Fill in the Blanks does not (full marks, none, or the marks
+ themselves, a number 1.2 takes there), `neutral` with neither, the marks as `weighting`,
+ `result.duration` as `latency`, the time of day. **One index per question, written over on a
+ retry**, read in Moodle's code: its interactions report has one column per index for every
+ learner (`get_scorm_question_count` takes the highest index found), so an entry per attempt
+ would set one learner's columns against another's. The index and the id come from the
+ questions kept with the state (`questions` in `suspend_data`, a `[key, id]` per index, so that
+ the second of two questions with the same words keeps its `-2` in a later session), after
+ `cmi.interactions._count`, which 1.2 lets a SCO read and Moodle reloads from the attempt's
+ tracks; an attempt the LMS started over counts none, and they start again. The state is written
+ and committed with each answer as well as with each of the content's saves, since content that
+ keeps no state of its own sends no `userdata`, and its questions would otherwise take a new
+ index in every session; where the state cannot be written, the answer is still committed (both
+ found in #126's review). The fields are write-only; the reports read them. The commit is ILIAS's (#94, under *ILIAS plays it too*), and
only a commit: the content's last save comes after it, and the learner may stay. Moodle's API
sends with `navigator.sendBeacon` while unloading, and the `exit` it stored showed that the call
arrived. Content with no result of its own stays `incomplete`. Moodle takes `score.raw` as the
grade, against the activity's maximum grade (`grademax` is its `maxgrade` in
`scorm_grade_item_update`), so the README says to leave that at 100, Moodle's default.
+ Checked in Moodle 4.5.15 on 2026-11-04 with the demo quiz, three answers right: the four
+ interactions in the attempt's tracks with the ids from the questions' words, the types, the
+ patterns and responses, `correct` three times and `wrong` once, the weightings and latencies,
+ `get_scorm_question_count` 4, and the interactions report with a Response column per index.
- **Resume through `cmi.suspend_data`.** The element plays with `resume="host"`. Every `userdata`
- event rewrites `{ build, entries }` into `suspend_data` and commits. A launch hands `userData`
- back before `src` when the stamp matches. The stamp is the first 16 hex digits of the package's
+ event rewrites `{ build, entries, questions }` into `suspend_data`, compressed with lz-string's
+ `compressToBase64` since embed 1.5 (#124: ASCII, as 1.2's `CMIString4096` asks, and
+ synchronous, so the content's last save on `beforeunload` still lands, where the browser's
+ `CompressionStream` is asynchronous and could lose it), and commits. A state that begins with
+ `{`, written plain by a zip up to 1.4, is read as it is, so a learner's place survives the
+ upgrade. A launch hands `userData` back before `src` when the stamp matches. The stamp is the first 16 hex digits of the package's
SHA-256, or, with parts of the pack, of one over the package's and theirs, written into the page's
``. So a teacher who replaces the zip with another package does not
hand learners state saved against the old one, and a zip written with other parts starts them
over, as a refreshed package does in the player (the owner's rule of 2026-10-18). SCORM 1.2 keeps
- 4,096 characters; a larger state is not written, and the last one that fitted stays. Checked in
+ 4,096 characters; a larger state is not written, and the last one that fitted stays. Until #124
+ that was silent; now the page says so once, under the content (`#saving`), and in the console,
+ as it does when the LMS refuses the write, which the bridge checks `LMSSetValue`'s answer for.
+ `#saving` and the launch page's error, `#notice`, each sit in a live region that is on the page
+ from the start, empty (`role="status"`, `role="alert"`), as `ACCESSIBILITY.md` asks of a host,
+ since a region that appears with its text is not announced by every screen reader; until #126's
+ review each was the region itself, hidden.
+ Moodle takes 64,000 when its administrator turns "SCORM 1.2 standard mode" off
+ (`scormstandard` in `public/mod/scorm/datamodels/scorm_12.php`). Checked in
Moodle: a learner left after the first question, the next launch's `entry` was `resume`, and the
- quiz reopened on the second question.
+ quiz reopened on the second question; with the compressed state (220 characters) the same on
+ 2026-11-04, in standard mode. Measured that day on 23 packages of the corpus, the state as the
+ bridge writes it after a generic click-through: a quiz 170 to 240 plain and 180 to 210
+ compressed, Course Presentations 150 to 370 and 180 to 280, Interactive Books 630 to 2,330 and
+ 420 to 1,040, so nothing near the limit; a state under about 150 characters comes out longer
+ compressed, base64 costing a third. The 12-chapter book read to its last chapter in Moodle wrote
+ 996 characters and came back with its chapters' state, and on its first chapter: Interactive
+ Book takes its saved place (`urlFragments`, with `h5pbookid`) back only when that id is the
+ content id, which the boot script draws at random on every load (`integrationFor`), so no book
+ returns to its chapter in any `resume` mode, a runtime bug outside #124 (#127), measured the same day
+ in the plain player with `resume="device"`. Two corpus books carry Interactive Book 1.3, which
+ keeps no state at all.
- **Outside an LMS** the page finds no API, plays the package and reports nothing.
- **Frappe LMS plays it too, and records less.** Checked on 2026-10-30 against Frappe LMS's
`develop` branch in its own Docker setup, as an enrolled student in Chrome, with the demo's quiz,
@@ -2599,7 +2650,10 @@ one row each; an LMS added here gets a row there.
`scorm-browser.mjs`, `./scorm/browser`, is the page's, `buildScormInPage()`: the package a
`File`, the player's files, the runtime and the pack fetched from the site the page is on (`base`,
`pack` or `packBase`, or `assets` for a page that bundles the launch page, the bridge, the
- stylesheet and the licence list), each part checked against the index's SHA-256 since it came
+ compressor, the stylesheet and the licence list; a page that gives the launch page and not the
+ compressor, as one bundled for 1.4 does, gets the one at `base` or a zip without it, whose page
+ names none and whose bridge writes the state plain, rather than an export that fails for a file
+ it never had to serve), each part checked against the index's SHA-256 since it came
over the network, and the zip a `Blob`. The runtime's files are named by a list,
`RUNTIME_FILES`, plus the fonts from its `MANIFEST.json`, since a folder on a server cannot be
listed; `scorm-browser.test.ts` runs the builder in Node, which has `fetch`, `File` and
@@ -2609,7 +2663,8 @@ one row each; an LMS added here gets a row there.
badge where the page has one; the written site loads it as `scripts/build.mjs` bundles it with
zip.js and the player's `./plan` (`dist/scorm-page.js`, zip.js's licence in its header, since the
site has no bundler), from `scorm.html`, with the launch page and the bridge copied beside it as
- `scorm-launch.html` and `scorm.js` and the player's and the pack's versions in `config.js`. The
+ `scorm-launch.html`, `scorm.js` and `lz-string.js` and the player's and the pack's versions in
+ `config.js`. The
demo reuses the source at `/demo/scorm.html` in the site's own design: the pack's parts as Vite
emits them, the four files as `?raw` strings, the player's version from a `define`, and the
player's built files from the site root, which a dev middleware serves from the player's `dist/`
@@ -2630,7 +2685,15 @@ its refusals in Node. In Chromium it plays the unpacked zip under a page that ho
frames the launch page, as Moodle's player does. It covers:
- a passed and a failed result, the end of the session, resume, and refusing state saved by
- another build;
+ another build, and reading one a zip up to 1.4 wrote plain;
+- the quiz's four answers as interactions, and, through dispatched `xapi` events, the id from
+ the words and from the key, the second id for the same words, kept in a later session, the
+ type map, the 255 cut, the result from `success` and from the score, the questions written and
+ committed with each answer, one index per question across a retry and a second session, and an
+ attempt started over;
+- a state that fits only compressed, one that does not fit at all and the notice said once,
+ both notices' live regions on the page from the start, a write the LMS refuses, and a launch
+ page without the compressor, which writes the state plain;
- the commit on `beforeunload` and the finish on `pagehide`, by the event the launch page was
dispatching when it called, which is what ILIAS goes by, and a leave the learner stays from;
- a result with no score, and a state past 4,096 characters, through the element's events
diff --git a/apps/demo/demo/scorm-page.js b/apps/demo/demo/scorm-page.js
index 025cfb8d..a663c2de 100644
--- a/apps/demo/demo/scorm-page.js
+++ b/apps/demo/demo/scorm-page.js
@@ -9,9 +9,10 @@
import { startScormPage } from '@missing-elements/h5p-embed/scorm-page.js'
import launch from '@missing-elements/h5p-embed/scorm/index.html?raw'
import bridge from '@missing-elements/h5p-embed/scorm/scorm.js?raw'
+import lz from '@missing-elements/h5p-embed/scorm/lz-string.js?raw'
import css from '@missing-elements/h5p-embed/embed.css?raw'
import { pack } from '@missing-elements/h5p-libraries'
import libraries from '@missing-elements/h5p-libraries/libraries.txt?raw'
import { version as packVersion } from '@missing-elements/h5p-libraries/package.json'
-startScormPage({ base: '/', pack, assets: { launch, bridge, css, libraries }, version: __PLAYER_VERSION__, packVersion })
+startScormPage({ base: '/', pack, assets: { launch, bridge, lz, css, libraries }, version: __PLAYER_VERSION__, packVersion })
diff --git a/apps/demo/demo/scorm.html b/apps/demo/demo/scorm.html
index c97b7fcd..f0eb9cb1 100644
--- a/apps/demo/demo/scorm.html
+++ b/apps/demo/demo/scorm.html
@@ -4,14 +4,14 @@
Convert H5P to SCORM in your browser — h5p-offline-player
-
+
-
+
@@ -19,7 +19,7 @@
-
+
@@ -59,10 +59,11 @@
H5P to SCORM
In the LMS
Add the zip to a course as a SCORM activity. The LMS records the score out of 100, whether
- the content was passed or failed, or completed when it does not say, the time spent, and
- the learner's place, so the next launch continues where they left off. Content that reports
- no result of its own, an Accordion or a Virtual Tour, stays incomplete. The package plays
- with its own code on the LMS's origin, as every SCORM package does.
+ the content was passed or failed, or completed when it does not say, each question's
+ answer, the time spent, and the learner's place, so the next launch continues where they
+ left off. Content that reports no result of its own, an Accordion or a Virtual Tour, stays
+ incomplete. The package plays with its own code on the LMS's origin, as every SCORM
+ package does.
@@ -80,8 +81,9 @@
In the LMS
Another LMS that takes SCORM 1.2 may work as well; these are the ones checked, as a learner
in Chrome. The LMS has to be served over https, since the player needs its Service Worker.
- SCORM 1.2 keeps 4,096 characters of saved state, enough for a quiz; a larger state is not
- saved.
+ SCORM 1.2 keeps 4,096 characters of saved state; the zip writes it compressed, so a quiz
+ takes about 200 and a twelve-chapter Interactive Book about 1,000. One that does not fit is
+ not saved, and the learner is told under the content.
What goes in the zip
diff --git a/docs/compatibility.md b/docs/compatibility.md
index 175933de..f7a180d4 100644
--- a/docs/compatibility.md
+++ b/docs/compatibility.md
@@ -93,9 +93,10 @@ What is covered of the pack itself: the `pack` export, `parts/` with its `index.
their options and their types; and `resizer.js`, which speaks H5P's own resizer protocol.
- **The SCORM package `--scorm` writes**, and **`buildScorm()`**, with its options and types: SCORM
1.2, the elements its page sets (`cmi.core.score.raw`, `.min` and `.max`,
- `cmi.core.lesson_status`, `cmi.core.session_time`, `cmi.core.exit`), and what it keeps in
- `cmi.suspend_data`, which a zip written by a later version reads back unless the libraries it
- carries from the pack have changed.
+ `cmi.core.lesson_status`, `cmi.core.session_time`, `cmi.core.exit`, and since 1.5 each
+ question's `cmi.interactions.n`), and what it keeps in `cmi.suspend_data`, which a zip written
+ by a later version reads back unless the libraries it carries from the pack have changed: 1.5
+ writes it compressed and still reads what 1.4 wrote plain.
- **The SCORM page**, `scorm.html` on a written site, and **`buildScormInPage()`** and
**`startScormPage()`**, with their options and types: the same zip as `buildScorm()`'s, built in
the browser.
diff --git a/packages/embed/README.md b/packages/embed/README.md
index 57e733e0..9cc897c9 100644
--- a/packages/embed/README.md
+++ b/packages/embed/README.md
@@ -140,10 +140,18 @@ page that reports to the LMS. Add it to a course as a SCORM activity, in one of
- the score out of 100, and `passed` or `failed` when the content says whether it was passed,
`completed` when it does not. The content's last result counts, as on an H5P site;
+- each question's answer, as `cmi.interactions`: the question's words as the id, its type, the
+ answer given and the right one, `correct` or `wrong`, the marks it was worth and the time it
+ took. One interaction per question, written over when it is answered again, which is how
+ Moodle's interactions report lines learners up. SCORM 1.2 lets the content write these and
+ never read them; the LMS's reports do;
- the time spent in each session;
-- the learner's place: the content's saved state goes into `cmi.suspend_data`, and the next
- launch continues from it. SCORM 1.2 keeps 4,096 characters, enough for a quiz; a larger state is
- not saved.
+- the learner's place: the content's saved state goes into `cmi.suspend_data`, compressed, and
+ the next launch continues from it. SCORM 1.2 keeps 4,096 characters; compressed, a quiz's state
+ takes about 200, a twelve-chapter Interactive Book about 1,000, and none of 23 real packages
+ measured passed 1,100. One that does not fit is not saved, the last that fitted stays, and
+ the page says so under the content, once. Moodle keeps 64,000 when its administrator turns
+ "SCORM 1.2 standard mode" off.
An export from h5p.com or h5p.org, which leaves the libraries out, works as well: the zip carries
the ones it needs from the library pack, and only those. For a quiz with formulas, that is 11
@@ -237,8 +245,11 @@ and `build`, the stamp saved state is kept against. Every entry ships with TypeS
`buildScormInPage` from `@missing-elements/h5p-embed/scorm/browser` is the same build in a page:
it takes `file`, a `File` or `Blob`; `base`, the folder with the player's three files and
`frame-assets/` (the page's own by default); `pack` or `packBase`, as `startEmbed` takes them;
-`assets`, for a page that bundles the launch page's template, its bridge, `embed.css` and the
-pack's `libraries.txt` rather than serving them beside the player as the written site does;
+`assets`, for a page that bundles the launch page's template, its bridge, its compressor
+(`lz`, `scorm/lz-string.js`), `embed.css` and the pack's `libraries.txt` rather than serving them
+beside the player as the written site does, where a page that gives the template and not the
+compressor gets the one at `base`, or a zip without it that keeps the saved state plain, as 1.4
+did;
`version` and `packVersion`, for the zip's notice; and `onProgress`. It returns the zip as a
`Blob`, with its `name`, `title`, `libraries`, `build` and `size`. `startScormPage` from
`@missing-elements/h5p-embed/scorm-page.js` is the page's script, which reads the page's
diff --git a/packages/embed/bin/h5p-embed.mjs b/packages/embed/bin/h5p-embed.mjs
index e11affb2..edbaef62 100755
--- a/packages/embed/bin/h5p-embed.mjs
+++ b/packages/embed/bin/h5p-embed.mjs
@@ -95,7 +95,8 @@ if (values.scorm !== undefined) {
with the player ${zip.version}${supplied}.
Add it to a course as a SCORM package. The LMS gets the content's score and whether it passed,
-when the content reports them, and the time spent; the learner's place is kept between sessions.
+when the content reports them, each question's answer, and the time spent; the learner's place is
+kept between sessions.
The LMS must be served over https, as the player's Service Worker needs.`)
} catch (error) {
if (error instanceof EmbedError) {
diff --git a/packages/embed/lib/build.mjs b/packages/embed/lib/build.mjs
index 341fbbb6..f1fb91cc 100644
--- a/packages/embed/lib/build.mjs
+++ b/packages/embed/lib/build.mjs
@@ -32,6 +32,7 @@ const PAGE_FILES = ['embed.js', 'embed.css', 'main.js', 'resizer.js', 'scorm-mai
const SCORM_FILES = [
['scorm-launch.html', join(SCORM, 'index.html')],
['scorm.js', join(SCORM, 'scorm.js')],
+ ['lz-string.js', join(SCORM, 'lz-string.js')],
['scorm-page.js', join(DIST, 'scorm-page.js')]
]
@@ -318,6 +319,8 @@ function notice({ version, libraries }) {
the SCORM page, which builds a SCORM package of a .h5p in the browser, and
the launch page it puts in the zip: MIT. scorm-page.js also carries zip.js,
BSD-3-Clause, its licence in its header.
+ lz-string.js lz-string 1.5.0, which the zip's launch page compresses the learner's saved
+ state with: MIT, its licence in its header.
Caddyfile, nginx.conf, .htaccess, _headers, vercel.json
the same headers for five kinds of host; use the one yours reads
h5p-player.js, h5p-sw.js, h5p-jobs.js
diff --git a/packages/embed/lib/scorm-browser.mjs b/packages/embed/lib/scorm-browser.mjs
index e40f5885..9ce18640 100644
--- a/packages/embed/lib/scorm-browser.mjs
+++ b/packages/embed/lib/scorm-browser.mjs
@@ -27,16 +27,19 @@ import { EmbedError, PLAYER_FILES } from './shared.mjs'
* @property {string} [name] its file name, for the zip's name, the title's fallback and the
* messages; a `File`'s own by default
* @property {string | URL} [base] the folder that holds the player's three files and
- * `frame-assets/`, and, unless `assets` gives them, `scorm-launch.html`, `scorm.js`, `embed.css`
- * and `libraries.txt`: this page's own folder by default
+ * `frame-assets/`, and, unless `assets` gives them, `scorm-launch.html`, `scorm.js`,
+ * `lz-string.js`, `embed.css` and `libraries.txt`: this page's own folder by default
* @property {PackIndex | null} [pack] the library pack, as the `pack` export a bundler resolves;
* it wins over `packBase`
* @property {string | URL | null} [packBase] the folder of a copy of the pack's `parts/`, which
* the written site has as `libraries/`. Without either, a package that does not carry its
* libraries is refused
- * @property {{ launch?: string, bridge?: string | Blob, css?: string | Blob, libraries?: string | Blob }} [assets]
- * the launch page's template, its bridge, the stylesheet and the pack's licence list, for a page
- * that bundles them rather than serving them beside the player
+ * @property {{ launch?: string, bridge?: string | Blob, lz?: string | Blob, css?: string | Blob, libraries?: string | Blob }} [assets]
+ * the launch page's template, its bridge, the compressor the bridge keeps the saved state with
+ * (`scorm/lz-string.js`), the stylesheet and the pack's licence list, for a page that bundles
+ * them rather than serving them beside the player. A page that gives the launch page and not the
+ * compressor gets the one at `base`, or a zip without it, whose bridge writes the saved state
+ * plain, as embed 1.4 did
* @property {string} [version] the player's version, for the notice; `unknown` if not given
* @property {string | null} [packVersion] the pack's, the same way
* @property {(progress: ScormProgress) => void} [onProgress]
@@ -134,6 +137,17 @@ export async function buildScormInPage(options) {
onProgress({ step: 'libraries', libraries: parts.length })
/** @param {string} url @param {string} what */
const blob = async (url, what) => (await fetched(fetchImpl, url, what)).blob()
+ // The compressor came in 1.5, after pages that bundle the launch files were written: such a page
+ // that does not give it plays on without it, its state plain, rather than fail for a file it
+ // never had to serve.
+ const compressor = async () => {
+ try {
+ return await blob(at('lz-string.js'), "The launch page's compressor")
+ } catch (error) {
+ if (assets.launch !== undefined && error instanceof EmbedError) return null
+ throw error
+ }
+ }
/** @param {string[]} names @param {(name: string) => string} url @param {string} what */
const blobs = async (names, url, what) => new Map(await Promise.all(names.map(async (item) => /** @type {[string, Blob]} */ ([item, await blob(url(item), `${what} ${item}`)]))))
const partBlobs = await blobs(parts.map((part) => part.folder), (folder) => /** @type {import('./scorm-core.mjs').PackPart} */ (parts.find((part) => part.folder === folder)).url, 'The library part')
@@ -148,6 +162,7 @@ export async function buildScormInPage(options) {
const files = {
launch: assets.launch ?? (await (await fetched(fetchImpl, at('scorm-launch.html'), "The launch page's template")).text()),
bridge: assets.bridge !== undefined ? asBlob(assets.bridge) : await blob(at('scorm.js'), 'The launch page\'s script'),
+ lz: assets.lz !== undefined ? asBlob(assets.lz) : await compressor(),
css: assets.css !== undefined ? asBlob(assets.css) : await blob(at('embed.css'), 'The stylesheet'),
player: await blobs(PLAYER_FILES, at, "The player's file"),
runtime: await blobs(runtimeFiles(runtimeManifest), (path) => at(`frame-assets/${path}`), "The runtime's file"),
diff --git a/packages/embed/lib/scorm-core.mjs b/packages/embed/lib/scorm-core.mjs
index 690dc661..e3a22ebe 100644
--- a/packages/embed/lib/scorm-core.mjs
+++ b/packages/embed/lib/scorm-core.mjs
@@ -86,15 +86,22 @@ ${files.map((file) => ` `).join('\n')}
`
}
-/** @param {{ version: string, source: string, pack: string | null }} zip `pack`, the library pack's version when the zip carries parts of it */
-function notice({ version, source, pack }) {
+/** @param {{ version: string, source: string, pack: string | null, lz: boolean }} zip `pack`, the library pack's version when the zip carries parts of it; `lz`, whether it carries the compressor */
+function notice({ version, source, pack, lz }) {
return `This is a SCORM 1.2 package written by @missing-elements/h5p-embed. It plays ${source} in an
-LMS and reports its score, its result and the time spent, and keeps the learner's place.
+LMS and reports its score, its result, each question's answer and the time spent, and keeps the
+learner's place.
imsmanifest.xml the package's manifest
index.html, scorm.js, embed.css
the launch page and its bridge to the LMS: MIT
- h5p-player.js, h5p-sw.js, h5p-jobs.js
+${
+ lz
+ ? ` lz-string.js lz-string 1.5.0, which the bridge compresses the learner's saved state
+ with: MIT, its licence in its header.
+`
+ : ''
+} h5p-player.js, h5p-sw.js, h5p-jobs.js
@missing-elements/h5p-offline-player ${version}: MIT. The Service Worker,
h5p-sw.js, also carries zip.js, BSD-3-Clause, its licence in its header.
frame-assets/ @missing-elements/h5p-runtime, the H5P core runtime: GPL-3.0-only. Its
@@ -257,6 +264,9 @@ export async function readPackage(blob, name, pack, { useWebWorkers = false } =
* @typedef {object} ScormFiles
* @property {string} launch the launch page's template, `scorm/index.html`
* @property {Blob} bridge `scorm/scorm.js`
+ * @property {Blob | null} lz `scorm/lz-string.js`, which the bridge compresses the saved state
+ * with; without it the launch page names none, and the state is written plain, as embed 1.4
+ * wrote it
* @property {Blob} css `embed.css`
* @property {Map} player the player's files, by name
* @property {Map} runtime the runtime's files, by path under `frame-assets/`
@@ -291,6 +301,9 @@ export function scormEntries({ manifest, source, title, build, version, packVers
// The element plans from the zip's index what the writer planned, and plays the package's own
// libraries as they are.
.replace('%LIBRARIES%', pack ? ` libraries="pack" pack-base="./${LIBRARIES}/" refresh-libraries="off"` : '')
+ // Without the compressor, which a page that bundles the launch files may not give, the page
+ // names none, rather than a script the zip lacks.
+ .replace(/\n[ \t]*
@@ -16,6 +17,9 @@
Loading…
-
+
+