mux
videoStorage
Script
Video Storage Intended to be imported into other Vals and used with Mux Webhooks (like our webhookHandler . Stores videos off into Sqlite. Webhook handlers At least these are how we use them in the webhookHandler | Function | Mux Event | Note |
|------------------|-------------------|-------------------------------|
| createVideo() | video.upload.created | Triggered when a direct upload is initially created |
| updateVideoCreated() | video.upload.asset_created | Triggered when an asset is created |
| updateVideoReady() | video.asset.ready | An asset is ready for playback | Others getAllVideos Lists all the videos in the database backfillVideo Takes a video object and puts it in the DB. Useful if you're iterating over to...you guessed it, backfill content.
0
Updated: April 3, 2024