You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
nocode 0762f95efd first commit 1 year ago
..
cjs first commit 1 year ago
dist first commit 1 year ago
es first commit 1 year ago
scripts first commit 1 year ago
src first commit 1 year ago
test first commit 1 year ago
CHANGELOG.md first commit 1 year ago
CONTRIBUTING.md first commit 1 year ago
LICENSE first commit 1 year ago
README.md first commit 1 year ago
index.html first commit 1 year ago
package.json first commit 1 year ago

README.md

@videojs/vhs-utils

vhs-utils serves two purposes:

  1. It extracts objects and functions shared throughout @videojs/http-streaming code to save on package size. See the original @videojs/http-streaming PR for details.
  2. It exports generic functions from VHS that may be useful to plugin authors.

Installation

npm install --save @videojs/vhs-utils

Usage

All utility functions are published under dist and can be required/imported like so:

es import using es dist

import resolveUrl from '@videojs/vhs-utils/es/resolve-url';

cjs import using cjs dist

const resolveUrl = require('@videojs/vhs-utils/cjs/resolve-url');

depricated cjs dist

const resolveUrl = require('@videojs/vhs-utils/dist/resolve-url');