0.0.11 • Published 3 months ago

@octra/web-media v0.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@octra/web-media

This library offers classes and functions for handling audio files in web browsers (e.g. chunked decoding etc.) used by Octra.

Installation

ESM, CJS, TS definitions & UMD (optional)

npm install --save @octra/web-media

UMD Bundle (for Vanilla JS)

You have two options to install this package und use it as UMD:

a) Install via NPM and reference local files (no internet connection needed om production).

<script type="application/javascript" src="node_modules/@octra/web-media/index.js"></script>

b) Reference remote file (internet connection needed on production).

<script type="application/javascript" src="https://unpkg.com/@octra/web-media/index.umd.js"></script>

See full example here

Use

Import

ESM, Typescript

Import the classes and functions from @octra/web-media. For example

import {SampleUnit} from "@octra/web-media";

const unit = new SampleUnit(123123, 22100);

UMD Bundle

All functions and classes are available via global scope OctraWebMedia. For example:

/*
make sure that you have injected the umd bundle as described before.
 */
const validator = new OctraWebMedia.SampleUnit(123123, 22100);

API

You can find more information about classes and functions of @octra/web-media here.

Changelog

Go to changelog

0.0.11

3 months ago

0.0.10

4 months ago

0.0.9

4 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago