Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Fausto95/jw-player-api
A library wrapper around JW Player API
https://github.com/Fausto95/jw-player-api
Last synced: 2 months ago
JSON representation
A library wrapper around JW Player API
- Host: GitHub
- URL: https://github.com/Fausto95/jw-player-api
- Owner: Fausto95
- Archived: true
- Created: 2018-09-14T19:04:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-06T08:39:52.000Z (over 2 years ago)
- Last Synced: 2024-08-04T18:13:01.215Z (3 months ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/jwplayer-sdk
- Size: 188 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-made-by-angolans - jw-player-api
README
🚨🚨🚨 STALE 🚨🚨🚨
> While this library might still work, I'm no longer maintaining it. Feel free to fork and patch if needed.
`Examples`: https://repl.it/@Fausto95/jwplayer-sdk
`API-Reference`: https://jwplayer-sdk.netlify.com/
# 🔧 Installation
```shell
yarn add jwplayer-sdk
```
# ⚙️ Usage```js
// ES Modules
import JWPlayer from 'jwplayer-sdk';//initializating...
const JWAPI = new JWPlayer({
apiKey: 'your apiKey goes here',
secretKey: 'your secreteKey goes here',
});const videos = await JWAPI.getAllVideos(params); // params are optional
/*
result: [
{
views: 0,
height: 400,
cloudHostedPlayer: 'https://content.jwplatform.com/libraries/dfNGJds0.js',
key: 'dfNGJds0',
skin: { type: 'built-in', name: 'Default', key: 'M03UUDt9' },
responsive: false,
playlist: 'none',
releaseChannel: 'production',
name: 'My Player',
custom: {},
width: 400,
version: '8',
ltasChannel: null
}
]
*/
```### Current Available Features:
```typescript
// Player
.getAllPlayers(params: Object) // Optional
.getPlayer(playerKey: String) // Required
.createPlayer(params: Object) // Required
.updatePlayer(playerKey: String, params: Object) // Both required
.deletePlayer(playerKey: String) // Required// Videos
.getAllVideos(params: Object) // Optional
.getVideo(videoKey: String) // Required
.uploadVideo(file: ReadableStream, params: Object) // Params is optional
.fetchUpload(url: String, params: Object) // Url is Required
.batchFetchUpload(content: Object) // Content is Required
.updateVideo(videoKey: String, params: Object) // Both required
.deleteVideo(videoKey: String) // Required//Videos Thumbnails
.modifyThumbnailFrame(videoKey: String, params: Object) // Both Required
.uploadThumbnail(videoKey: String, imageFile: ReadableStream) // Both Required
````## Contributing
You must have a JwPlayer account!
Clone the repo
```shell
git clone https://github.com/Fausto95/jw-player-api.git
```
Install the dependencies
```shell
npm install
```Make your changes, test and send a PR
## Roadmap (API)
- [ ] /accounts
- [ ] /accounts/tags
- [ ] /accounts/usage
- [ ] /channels
- [ ] /channels/videos
- [x] /players
- [ ] /status
- [x] /videos
- [ ] /videos/converstations
- [ ] /videos/tags
- [x] /videos/thumbnails
- [ ] /videos/tracks
- [x] /fetch-upload## License
MIT