asd/asd-pc/node_modules/@videojs/vhs-utils
愉快的大福 eb8378e551 init
2024-11-21 11:06:22 +08:00
..
cjs init 2024-11-21 11:06:22 +08:00
es init 2024-11-21 11:06:22 +08:00
scripts init 2024-11-21 11:06:22 +08:00
src init 2024-11-21 11:06:22 +08:00
test init 2024-11-21 11:06:22 +08:00
CHANGELOG.md init 2024-11-21 11:06:22 +08:00
CONTRIBUTING.md init 2024-11-21 11:06:22 +08:00
index.html init 2024-11-21 11:06:22 +08:00
LICENSE init 2024-11-21 11:06:22 +08:00
package.json init 2024-11-21 11:06:22 +08:00
README.md init 2024-11-21 11:06:22 +08: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');