Octra libraries - v2.0.0
    Preparing search index...

    Module @octra/web-media - v1.3.4

    @octra/web-media npm

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

    npm install --save @octra/web-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/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

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

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

    const unit = new SampleUnit(123123, 22100);

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

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

    Go to changelog

    Namespaces

    Binary

    Classes

    AudioChunk
    AudioCutter
    AudioDecoder
    AudioFormat
    AudioInfo
    AudioManager
    AudioResource
    AudioTimeCalculator
    BrowserInfo
    DataInfo
    DirectoryInfo
    FileInfo
    MusicMetadataFormat
    ShortcutManager
    WavFormat

    Interfaces

    AudioFileInfoSerialized
    FileInfoSerialized
    KeyMappingEntry
    ReadFileEvent
    SegmentToDecode
    Shortcut
    ShortcutEvent
    ShortcutGroup
    SupportedAudioFormat

    Type Aliases

    IntArray

    Functions

    calculateChannelDataFactor
    downloadFile
    fileListToArray
    findElements
    getAttr
    getAudioInfo
    getBaseHrefURL
    getFileContent
    normalizeMimeType
    popupCenter
    readFile
    readFileContents
    renameFile
    setStyle