1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00
Oinktube/node_modules/@videojs/vhs-utils
2022-03-17 11:43:59 -03:00
..
cjs https://github.com/WWBN/AVideo/issues/6345#issuecomment-1067056556 2022-03-14 14:28:38 -03:00
dist https://github.com/WWBN/AVideo/issues/6345#issuecomment-1067056556 2022-03-14 14:28:38 -03:00
es https://github.com/WWBN/AVideo/issues/6345#issuecomment-1067056556 2022-03-14 14:28:38 -03:00
scripts https://github.com/WWBN/AVideo/issues/6345#issuecomment-1067056556 2022-03-14 14:28:38 -03:00
src Git update 2022-03-17 11:43:59 -03:00
test Git update 2022-03-17 11:43:59 -03:00
CHANGELOG.md https://github.com/WWBN/AVideo/issues/6345#issuecomment-1067056556 2022-03-14 14:28:38 -03:00
CONTRIBUTING.md https://github.com/WWBN/AVideo/issues/6345#issuecomment-1067056556 2022-03-14 14:28:38 -03:00
index.html https://github.com/WWBN/AVideo/issues/6345#issuecomment-1067056556 2022-03-14 14:28:38 -03:00
LICENSE https://github.com/WWBN/AVideo/issues/6345#issuecomment-1067056556 2022-03-14 14:28:38 -03:00
package.json https://github.com/WWBN/AVideo/issues/6345#issuecomment-1067056556 2022-03-14 14:28:38 -03:00
README.md https://github.com/WWBN/AVideo/issues/6345#issuecomment-1067056556 2022-03-14 14:28:38 -03:00

@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');