Use CarCutter WebPlayer with Vanilla JS/TS
Use CarCutter WebPlayer with Vanilla JS/TS
1. Install package: npm install @car-cutter/vanilla-webplayer
2. Import: import { appendWebPlayer } from "@car-cutter/vanilla-webplayer"
3. Use:
``js
const targetElement = document.getElementById("target");
appendWebPlayer(targetElement, {
compositionUrl: url,
});
``
For more customization, take a look at the Online Documentation