A simple SCORM (Sharable Content Object Reference Model) player for loading and running SCORM packages.
- Loads SCORM 1.2 packages.
- Tracks progress and completion status.
- Provides a minimal UI for interaction.
- Clone or download this repository.
- Install required dependencies if applicable.
- Ensure your web server is configured correctly to serve this project.
- Copy the entire "public" folder.
- Paste it into your existing project's "public" directory.
- Adjust paths and references as needed.
- Run the application on a web server.
- Place SCORM packages in the designated folder.
- Access the player in your browser to launch SCORM courses.
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Submit a pull request for review.
// src/App.tsx
import React from 'react';
import { ScormPreview } from 'scorm-player';
function App() {
return (
<div>
<h1>My SCORM App</h1>
<ScormPreview
uuid="some-scorm-uuid"
apiUrl="https://api.yourserver.com"
serviceWorkerUrl="/service-worker-scorm.js"
comunitate
onScormPost={handleScormPost}
onScormGet={handleScormGet}
/>
</div>
);
}
export default App;