Skip to main content

Playback

Public playback

Use the worker URL:

https://worker.hesedvid.com/{publicID}/master.m3u8

Private playback (signed)

Get a signed URL:

GET /v1/api/{orgID}/videos/{publicID}/signed-url?expiration=1h

Use the returned signed_url in your player (e.g., HLS.js).

HLS.js example

<video id="v" controls playsinline></video>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<script>
(async () => {
const res = await fetch(`${SERVER}/v1/api/${ORG}/videos/${PUBLIC_ID}/signed-url?expiration=1h`, { credentials: 'include' });
const { body: { signed_url } } = await res.json();
const v = document.getElementById('v');
if (Hls.isSupported()) {
const hls = new Hls();
hls.loadSource(signed_url);
hls.attachMedia(v);
} else {
v.src = signed_url;
}
})();
</script>

Startup latency

Low-latency options: append ?micro=1 and optionally &ll=1&start=<seconds> to bootstrap initial playback faster.