ogv.js | JavaScript media player using Ogg/Vorbis/Theora/Opus/WebM libs compiled with Emscripten | Audio Utils library
kandi X-RAY | ogv.js Summary
kandi X-RAY | ogv.js Summary
Media decoder and player for Ogg Vorbis/Opus/Theora and WebM VP8/VP9/AV1 video. Based around libogg, libvorbis, libtheora, libopus, libvpx, libnestegg and dav1d compiled to JavaScript and WebAssembly with Emscripten.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ogv.js
ogv.js Key Features
ogv.js Examples and Code Snippets
Community Discussions
Trending Discussions on ogv.js
QUESTION
Good evening. I'm trying to implement playing ogg-opus audio in react app in Safari (it doesn't support .ogg format). I use create-react-app to init the project.
I've found "ogv.js" library, that is actually helps to play audio files in almost all modern browsers. But can't actually get it work (https://github.com/brion/ogv.js/issues/525).
I'm requring in the top of my PlayerComponent.js
file after all the imports
ANSWER
Answered 2019-Jun-11 at 18:03Okay, so if anyone would ever want to play in React app .ogg/opus audio in Safari, here is the solution (using ogv.js library).
First of all, put the library files to your React app. For the opus you will need:
- ogv-demuxer-ogg.js
- ogv-demuxer-ogg-wasm.js
- ogv-demuxer-ogg-wasm.wasm
- ogv-decoder-audio-opus.js
- ogv-decoder-audio-opus-wasm.js
- ogv-decoder-audio-opus-wasm.wasm
- ogv-worker-audio.js
After that in your code:
Require the lib after all imports:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ogv.js
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page