const options = { el: "#training", fetch_url: "https://your-storage.com/training-v1.zip", user: { name: "John Doe", email: "john@example.com" } }; // Default: resume latest. const launch = player.launchCourse(options); launch.state.then(result => { console.log(result.attempt_id, result.session_id, result.generation); // Store result.attempt_id in your LMS if you want to select it later. }); // After closing the previous player, choose one of these: // player.launchCourse({ ...options, attempt_mode: "new" }); // player.launchCourse({ ...options, attempt_id: savedAttemptId }); // player.launchCourse({ ...options, attempt_mode: "reset", attempt_id: savedAttemptId });