import Transloadit from 'transloadit';
export default defineComponent({
props: {
transloadit: {
type: "app",
app: "transloadit",
}
},
async run({ steps, $ }) {
const transloadit = new Transloadit({
authKey: this.transloadit.$auth.auth_key,
authSecret: this.transloadit.$auth.auth_secret
})
const options = {
params: {
steps: {
"encoded": {
"use": ":original",
"robot": "/video/encode",
"preset": "iphone-high"
},
"thumbed": {
"use": "encoded",
"robot": "/video/thumbs",
"count": 8
}
}
},
waitForCompletion: true,
}
return await transloadit.createAssembly(options);
},
})
Emit new event when a Transloadit assembly finishes processing. See the documentation
Emit new event when a failed occurs during assembly processing. See the documentation
Cancel a running assembly by its assembly ID. Useful for aborting processing jobs that are no longer needed. See the documentation
Create a new assembly to process files using a specified template and steps. See the documentation
Retrieve the current status and results of an existing assembly. See the documentation
Transloadit uses API keys for authentication. When you connect your Transloadit account, Pipedream securely stores the keys so you can easily authenticate to Transloadit APIs in both code and no-code steps.