0.1.1 • Published 3 years ago

@eyevinn/hls-duration v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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!