0.0.0 • Published 8 months ago
@escolalms/scorm-player v0.0.0
SCORM Player
A simple SCORM (Sharable Content Object Reference Model) player for loading and running SCORM packages.
Features
- Loads SCORM 1.2 packages.
- Tracks progress and completion status.
- Provides a minimal UI for interaction.
Installation
- Clone or download this repository.
- Install required dependencies if applicable.
- Ensure your web server is configured correctly to serve this project.
Copying the Public Folder
- Copy the entire "public" folder.
- Paste it into your existing project's "public" directory.
- Adjust paths and references as needed.
Getting Started
- Run the application on a web server.
- Place SCORM packages in the designated folder.
- Access the player in your browser to launch SCORM courses.
Contributing
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Submit a pull request for review.
Usage Example
// 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;0.0.0
8 months ago