const player = ScormBoxPlayer.initialize("YOUR_REGISTRATION_KEY"); const learnerCourse = { course_id: "COURSE_ID_FROM_LTI_CREATION", user: { name: "John Doe", email: "john@example.com" } }; const launch = player.launchCourse({ ...learnerCourse, el: "#training", display_mode: "iframe", attempt_mode: "resume" }); launch.onEvent((type, result) => console.log(type, result.normalized_details)); launch.ready.catch(error => console.error(error.message)); // Read again later if the provider grades asynchronously. const saved = await player.getResult(learnerCourse); console.log(saved.normalized_details, saved.runtime_details);