A wrapper for jwplayer managment API
$ npm install --save jwplayer-managment-api
const JwPlayerApi = require('jwplayer-api');
const jwPlayerApi = new JwPlayerApi({
key: "********",
secret: "********"
})
const url = "videos/create";
const params = {
title,
sourcetype: "url",
sourceurl: "https://videoUrl.mp4",
sourceformat: 'mp4',
tags: "tag"
}
jwPlayerApi.makeRequest('/videos/create',params).then(console.log).catch(console.error)
// OR
console.log(jwPlayerApi.generateUrl('/videos/create',params))
MIT © 2019 Bitbean LLC