forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

getPodcastJobAudioBlob.ts10 lines, 453 bytesHistoryRawDownload
1import { blobClient } from "../client";
2
3/**
4 * The whole produced episode as one Blob. The audio door streams chunked with
5 * no length and ignores `Range`, so a browser cannot seek on the stream; the
6 * player loads this once and seeks inside a local object URL instead.
7 */
8export function getPodcastJobAudioBlob(jobId: string, signal?: AbortSignal): Promise<Blob> {
9 return blobClient(`/podcast/jobs/${encodeURIComponent(jobId)}/audio`, signal);
10}