time-ranges
Standalone implementation of the HTML5 Media TimeRanges
interface. Always normalized.
Installation
npm i --save time-ranges
Usage
const timeRanges = timeRangestimeRanges for let i = 0; i < timeRangeslength; ++i const start = timeRangesstarti const end = timeRanges console // Output:// Range 0: 1 → 2// Range 1: 3 → 4
Maintainer
License
MIT