jwplayer-managment-api

1.0.6 • Public • Published

jwplayer-managment-api

A NodeJS wrapper for jwplayer managment API

Install

$ npm install --save jwplayer-managment-api

Usage

const JwPlayerApi = require('jwplayer-managment-api');
const jwPlayerApi = new JwPlayerApi({
  key: "********",
  secret: "********"
})
 
const endpoint = "videos/create";
 
const params = {
  title,
  sourcetype: "url",
  sourceurl: "https://videoUrl.mp4",
  sourceformat: 'mp4',
  tags: "tag"
}
 
jwPlayerApi.makeRequest(endpoint,params).then(console.log).catch(console.error)
 
// OR 
 
console.log(jwPlayerApi.generateUrl(endpoint,params))

Read JW Player Docs

To see the complete list of enpoints and the params they take checkout JW Player API Docs

License

MIT © 2019 Bitbean LLC

Package Sidebar

Install

npm i jwplayer-managment-api

Weekly Downloads

4

Version

1.0.6

License

MIT

Unpacked Size

5.25 kB

Total Files

5

Last publish

Collaborators

  • shua0613