LowLatencyAudio
LowLatencyAudio copied to clipboard
Error: CDVPlugin class LowLatencyAudio (pluginName: LowLatencyAudio) does not exist.
After installing the plugin, we see the error below.
We are on PhoneGap 3.4. We installed using the new CLI interface: phonegap local plugin add https://github.com/triceam/LowLatencyAudio.
2014-03-10 19:59:25.960 Spoof[7828:60b] CDVPlugin class LowLatencyAudio (pluginName: LowLatencyAudio) does not exist. 2014-03-10 19:59:25.962 Spoof[7828:60b] ERROR: Plugin 'LowLatencyAudio' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. 2014-03-10 19:59:25.963 Spoof[7828:60b] -[CDVCommandQueue executePending] [Line 127] FAILED pluginJSON = [ "INVALID", "LowLatencyAudio", "preloadFX", [ "sounds/guessed_right.mp3", "sounds/guessed_right.mp3" ] ]
to be clear, the mapping does exist in config.xml. we invoke the code with:
LowLatencyAudio.preloadFX( GUESS_RIGHT_SOUND, GUESS_RIGHT_SOUND);
LowLatencyAudio.preloadFX( GUESS_WRONG_SOUND, GUESS_WRONG_SOUND);
we have also tried PGLowLatencyAudio instead of LowLatencyAudio, but that also fails.
Found the answer: make sure the plugin source classes have their "target membership" include the right applications. This wasn't happening by default for some reason for this plugin.