Player & Embed Integrations
๐ PINNED
20 h ago ยท 7 views
Controlling the embedded player with Player.js
V
Veluraq Team
Official Staff
Published on 11/7/2026
### Control the player from your page
The Veluraq player implements the **Player.js** protocol.
```html
<iframe id="video-frame" src="https://YOUR_HOST/embed/LIBRARY_ID/VIDEO_ID" allow="autoplay; fullscreen" width="640" height="360"></iframe>
<script src="https://cdn.jsdelivr.net/npm/playerjs@0.0.12/dist/player.min.js"></script>
<script>
const player = new playerjs.Player(document.getElementById('video-frame'));
player.on('ready', () => console.log('Player is ready'));
player.on('timeupdate', (d) => console.log(d.seconds, d.duration));
// player.play(); player.pause(); player.setCurrentTime(45);
</script>
```
#player#embed#playerjs