Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
clappr with playlist
<!DOCTYPE html>
<meta charset="utf-8">
<script src=""></script>
<div id="player"></div>
var playlist = [
var player = new Clappr.Player({
source: playlist.shift(),
parentId: "#player",
autoPlay: true,
hideMediaControl: false,
// fired when player ends the video
player.on(Clappr.Events.PLAYER_ENDED, function () {
if (playlist.length > 0) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment