Public
Like
videoStorage
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Intended to be imported into other Vals and used with Mux Webhooks (like our webhookHandler. Stores videos off into Sqlite.
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 |
getAllVideos
Lists all the videos in the databasebackfillVideo
Takes a video object and puts it in the DB. Useful if you're iterating over to...you guessed it, backfill content.
Migrated from folder: streamdotnew/videoStorage