@eyevinn/hls-duration

0.1.1 • Public • Published

hls-duration

License: MIT Slack

Node library for fetching and calculating the actual duration of an HLS VOD.

Installation

npm install --save @eyevinn/hls-duration

Usage

Using async/await:

const duration = await hlsduration(new URL("https://maitv-vod.lab.eyevinn.technology/VINN.mp4/master.m3u8"));
console.log(duration)

Using promises:

hlsduration(new URL("https://maitv-vod.lab.eyevinn.technology/VINN.mp4/master.m3u8"))
  .then(duration => {
    console.log(duration);
  });

About Eyevinn Technology

Eyevinn Technology is an independent consultant firm specialized in video and streaming. Independent in a way that we are not commercially tied to any platform or technology vendor.

At Eyevinn, every software developer consultant has a dedicated budget reserved for open source development and contribution to the open source community. This give us room for innovation, team building and personal competence development. And also gives us as a company a way to contribute back to the open source community.

Want to know more about Eyevinn and how it is to work here. Contact us at work@eyevinn.se!

Readme

Keywords

none

Package Sidebar

Install

npm i @eyevinn/hls-duration

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

5.08 kB

Total Files

4

Last publish

Collaborators

  • martinstark
  • jobi
  • bwallberg