Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/Eyevinn/hls-duration
- Owner: Eyevinn
- License: mit
- Created: 2021-10-15T07:25:11.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-04T21:11:06.000Z (about 3 years ago)
- Last Synced: 2024-07-27T15:43:45.852Z (4 months ago)
- Topics: library
- Language: TypeScript
- Size: 102 KB
- Stars: 4
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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]!