The World's Most Powerful & Flexible Video Platform
Emit new event when a new media conversion is completed or a media becomes available.
Creates a new media file in JW Player using fetch or external upload methods. See the documentation
Searches for a media or lists all media available in JW Player. See the documentation
The JW Player API offers a way to manage and deliver video content programmatically. On Pipedream, you can leverage this API to automate video publishing workflows, analyze viewer data, and integrate with other services. Creating, updating, and managing video metadata can be automated, as well as handling video transcoding jobs and analyzing performance with custom metrics. By tapping into Pipedream's serverless platform, you can build powerful automations without managing infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
jw_player: {
type: "app",
app: "jw_player",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.jwplayer.com/v2/sites/{{your_site_id}}/media/`,
headers: {
"Authorization": `${this.jw_player.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})
The Filter API in Pipedream allows for real-time data processing within workflows. It's designed to evaluate data against predefined conditions, enabling workflows to branch or perform specific actions based on those conditions. This API is instrumental in creating efficient, targeted automations that respond dynamically to diverse datasets. Using the Filter API, you can refine streams of data, ensuring that subsequent steps in your Pipedream workflow only execute when the data meets your specified criteria. This cuts down on unnecessary processing and facilitates the creation of more intelligent, context-aware systems.
export default defineComponent({
async run({ steps, $ }) {
let condition = false
if (condition == false) {
$.flow.exit("Ending workflow early because the condition is false")
} else {
$.export("$summary", "Continuing workflow, since condition for ending was not met.")
}
},
})