Repository navigation
@run402/functions v4.19.0
·
105 commits
to main
since this release
Video preparation for delegated uploads
assets.createUpload({ ..., video })(anduploads.handler's open path) acceptsvideo: { transcript?, language?, maxCostUsdMicros? }for avideo/*upload. Once the upload completes, run402 prepares it: a web copy that streams and seeks in every browser (H.264 MP4, at most 1280 px), a poster JPEG, and withtranscript: truea timed transcript in the spoken language.language(ISO 639-1) skips detection;maxCostUsdMicroscaps the charge, and a longer video fails before any work and costs nothing.uploads.handler({ onVideo, onVideoFailed })hears the result in a second durable run:onVideogets the asset with itsvideooutputs,onVideoFailedgets{ code, message }.assets.sign/signManytake the video variantsvideo_web,video_posterandvideo_transcript, andAssetRef.videotypes the outputs.- Billing is per started minute of video, at least five, at the prices published under
videoinGET /tiers/v1, debited from the organization's allowance once the outputs exist.