Module@octra/media - v0.1.1

@octra/media npm

This library offers classes that describes data related to media (e.g. SampleUnit class that describes one point in time of type sample with conversions to other time units) used by Octra. If you are looking for decoding and playback of audio files see @octra/web-media library.

npm install --save @octra/media

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/media/index.umd.js"></script>

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

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

See full example here

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

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

const unit = new SampleUnit(123123, 22100);

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

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

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

Go to changelog

Index

Enumerations

Classes

Interfaces