Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
bitmovin-javascript
Advanced tools
bitmovin-javascript
is the legacy Bitmovin API client for JavaScript.
We recommend using the new client, which you can find at bitmovin-api-sdk-javascript. Using the new client guarantees 100% specification conformity at any given time and access to all features of the API as soon as they are released.
Javascript-API-Client which enables you to seamlessly integrate the Bitmovin API into your projects. Using this API client requires an active account.
Sign up for a Bitmovin Account!
The full API reference can be found here.
npm install bitmovin-javascript
or with yarnpkg
yarn add bitmovin-javascript
Using ES6 import
import Bitmovin from 'bitmovin-javascript';
const bitmovin = Bitmovin({'apiKey': '<YOUR_API_KEY>'});
With require
const Bitmovin = require('bitmovin-javascript').default;
const bitmovin = Bitmovin({'apiKey': '<YOUR_API_KEY>'});
Use bitmovin-javascript/dist/bitmovin.browser.js
or bitmovin.browser.min.js
for the minified version.
Import bitmovin-javascript/dist/index.js
.
bitmovin-javascript/dist/index.d.ts
)The Bitmovin-Javascript API Client is closely modeled after our Bitmovin API Reference Bitmovin API. Each resource in the API Reference has a 1:1 mapping in our API Client.
All methods return a Promise
Object that will return the fetched result values from the API.
So for example the list all inputs call is defined as GET v1/encoding/inputs
in our API-Reference and simply corresponds to:
const limit = 100;
const offset = 0;
bitmovin.encoding.inputs.list(limit, offset).then(result => {
const {items} = result;
items.forEach(input => {
console.log(input.name);
});
});
An sample DASH & HLS encoding sample can be found in examples/encoding/01_simple_encoding_dash_manifest.js
For more examples visit our example page.
If you want to contribute feel free to send pull requests. Code quality is ensured through lint-staged, please make sure all tests are passing with yarn test
.
Version 2 of the Bitmovin JavaScript client still has the same 1:1 mapping as v1. With v2 we improved the bundling and changed the default export to not require a new
to create a Bitmovin "object".
Internally the client changed quite a lot as you can see in this pull request.
MIT
FAQs
# New API Client (Recommended)
The npm package bitmovin-javascript receives a total of 119 weekly downloads. As such, bitmovin-javascript popularity was classified as not popular.
We found that bitmovin-javascript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.