PlayVideo

Playback options for the HLS stream URLs.

HLS URL

Each video returns a playlistUrl pointing to an HLS manifest:

https://cdn.playvideo.dev/{userId}/{collection}/{videoHash}/playlist.m3u8

HTML5 Video (Safari)

Safari supports HLS natively:

<video controls src="PLAYLIST_URL"></video>

hls.js (Chrome/Firefox)

<video id="player" controls></video>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<script>
  const video = document.getElementById('player');
  const hls = new Hls();
  hls.loadSource('PLAYLIST_URL');
  hls.attachMedia(video);
</script>

Embed Player

Use the hosted embed player:

<iframe
  src="https://api.playvideo.dev/embed/VIDEO_ID"
  width="100%"
  height="100%"
  frameborder="0"
  allow="autoplay; fullscreen"
></iframe>

CORS

Playback is served from cdn.playvideo.dev. Add your domain in dashboard settings if you embed on third‑party sites.