1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 02:09:22 +02:00
Oinktube/node_modules/@videojs/vhs-utils
2024-10-27 13:39:07 -03:00
..
cjs Update node modules 2024-10-27 13:39:07 -03:00
dist Update node modules 2024-10-27 13:39:07 -03:00
es Update node modules 2024-10-27 13:39:07 -03:00
scripts Improving the get restream credentials 2022-05-20 16:22:54 -03:00
src Update node modules 2024-10-27 13:39:07 -03:00
test Update node modules 2024-10-27 13:39:07 -03:00
CHANGELOG.md Update node modules 2024-10-27 13:39:07 -03:00
CONTRIBUTING.md Improving the get restream credentials 2022-05-20 16:22:54 -03:00
index.html Improving the get restream credentials 2022-05-20 16:22:54 -03:00
LICENSE Improving the get restream credentials 2022-05-20 16:22:54 -03:00
package.json Update node modules 2024-10-27 13:39:07 -03:00
README.md Improving the get restream credentials 2022-05-20 16:22:54 -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');