Skip to main content

WebPlayer with <script/> tag

Usage

  1. Import script in <head> :
<script src="https://cdn.car-cutter.com/libs/web-player/v3/bundle.js"></script>
  1. Use the custom element : cc-webplayer
<cc-webplayer composition-url="..." />

Quick start

index.html
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WebPlayer Demo</title>

<script src="https://cdn.car-cutter.com/libs/web-player/v3/bundle.js"></script>
</head>

<body>
<main>
<div style="max-width: 800px; marginInline: auto">
<cc-webplayer
composition-url="https://cdn.car-cutter.com/libs/web-player/v3/demos/composition.json"
>
</cc-webplayer>
</div>
</main>
</body>
</html>

Next steps

For more customisation, take a look at available attributes in the Attributes section