Saltar al contenido principal

Function: openScorm()

function openScorm(
browser,
siteUrl,
activityId,
options?
): Promise<OpenedScorm>;

Defined in: areas/scorm/scorm.ts:207

Opens a SCORM in Moodle's player, in normal mode, on the browser's working tab (ADR-007), for the person (or a program driving the tab) to do it there: the last attempt continues unless newAttempt, at the activity's first SCO unless scoId. Resolves once the SCO's frame has loaded. Opening the player is what starts an attempt in Moodle.

Parameters​

ParameterType
browserBrowserManager
siteUrlstring
activityIdnumber
options{ newAttempt?: boolean; scoId?: number; }
options.newAttempt?boolean
options.scoId?number

Returns​

Promise<OpenedScorm>