You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 22, 2021. It is now read-only.
A Video.js tech plugin that add Aurora.js to decode WAV, OGG (Opus/Vorbis), MP3, M4A, AAC and FLAC media files in JavaScript.
Getting Started
Once you've added the plugin script to your page, you can use it with any supported media:
Include JavaScript files
<!-- Always include aurora.js (wav decoder by default) --><scriptsrc="aurora.js"></script><!-- Include flac.js for FLAC decoder --><scriptsrc="flac.js"></script><!-- Include mp3.js for MP3 decoder --><!--<script src="mp3.js"></script>--><!-- Include alac.js for M4A decoder --><!--<script src="alac.js"></script>--><!-- Include aac.js for AAC decoder --><!--<script src="aac.js"></script>--><!-- Include ogg.js, vorbis.js, opus.js for OGG Vorbis/Opus decoders --><!--<script src="ogg.js"></script>--><!--<script src="vorbis.js"></script>--><!--<script src="opus.js"></script>--><scriptsrc="video.js"></script><scriptsrc="videojs-aurora.js"></script>
And add this new tech to the player:
data-setup='{ "techOrder": ["aurora"] }'
There's also a working example of the plugin you can check out if you're having trouble.