@icraft/player v1.0.21
Introduction
@icraft/player
@icraft/player is a native JavaScript component that allows you to easily integrate scenes edited in iCraft Editor into your projects, providing rich interaction events and methods.
Quick Start
Installation
npm
Install the @icraft/player package using npm or pnpm:
# Using npm
npm install @icraft/player --save
# Or using pnpm
pnpm install @icraft/player --saveNote: Some package managers may not automatically install the @icraft/engine package. If it's missing, please install it manually:
CDN
<script src="https://unpkg.com/@icraft/player@latest/dist/umd/icraft-player.min.js"></script>Basic Usage
Import and use the ICraftPlayer component in your project:
const player = new ICraftPlayer({
src: 'your-scene.iplayer',
container: document.getElementById('container'),
});Here, src is the URL of the .iplayer file exported from iCraft Editor, and container is the DOM element that will host the scene.
6 months ago
6 months ago
6 months ago
12 months ago
6 months ago
12 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
5 months ago
5 months ago
8 months ago
10 months ago
7 months ago
12 months ago
7 months ago
8 months ago
8 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago