Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Eyevinn/hls-duration

NPM library to calculate duration of an HLS
https://github.com/Eyevinn/hls-duration

library

Last synced: 3 months ago
JSON representation

NPM library to calculate duration of an HLS

Awesome Lists containing this project

README

        

# hls-duration

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Slack](http://slack.streamingtech.se/badge.svg)](http://slack.streamingtech.se)

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 [email protected]!