Embeds

Put the player on any site with an iframe or a script tag, and drive it from your page.

Control the playerjs
const player = document.querySelector("iframe").contentWindow; // Tell the player what to doplayer.postMessage({ type: "biscuit", method: "seek", value: 90 }, "*");player.postMessage({ type: "biscuit", method: "play" }, "*"); // And hear what it doeswindow.addEventListener("message", ({ data }) => {  if (data.type === "biscuit" && data.event === "ended") {    showNextVideo();  }});

What you get

  • One tagAn iframe, or a script tag that makes one in the ratio you set.
  • Options in the linkAutoplay, muted, looped, without controls, or from a start time.
  • CommandsPlay, pause, seek and mute from your page with postMessage.
  • EventsHear when it's ready, plays, pauses, ends, and how far it has got.

More for developers