Skip to content

mode macro not honored with --scorm-embed option #68

@rschroll

Description

@rschroll

By setting the mode macro, the default mode of the document can be controlled. This works with the default SCORM output as well as the --scorm-iframe output. However, this setting is ignored with the --scorm-embed option set, and the document always opens in "Textbook" mode.

Based on my poking around a bit, I think the problem may actually be in the LiaScript project. It looks like there are slightly different paths for loading a LiaScript document from a URL vs from a JS object, and I wonder if the latter is missing the mode-setting code. But I'm not confident in that analysis, so I'm opening the issue here.

Most of my testing has been with the Scorm2004 format, but from what I've seen, the Scorm1.2 format also has this problem.

Note that the problem can be observed independent of an LMS: If you unzip the SCORM package made with --scorm-embed and then load the index.html into a browser, it will load in Textbook mode, regarless of the mode macro value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions