upload(segments, manifest, options)
Encrypts HLS segments in the browser and uploads them to S3 via presigned URLs.
Parameters:
Returns:
Promise<Result<UploadResult, UploaderError>>
UploadOptions
SegmentInput
UploadResult
UploadProgress
The onProgress callback receives:
rewriteManifest(manifest, opts)
Rewrites an HLS manifest to include EXT-X-KEY tags pointing to the key server and replaces segment URIs with uploaded URLs. This is called internally by upload() — you only need it directly for custom upload pipelines.
Exported from @blindcast/storage:
Returns:
Result<string, StorageError> — the rewritten manifest text
Error codes
See Error Codes for all error codes across BlindCast.