LowLatencyAudio icon indicating copy to clipboard operation
LowLatencyAudio copied to clipboard

Error: CDVPlugin class LowLatencyAudio (pluginName: LowLatencyAudio) does not exist.

Open HotpotDesign opened this issue 10 years ago • 2 comments

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" ] ]

HotpotDesign avatar Mar 11 '14 03:03 HotpotDesign

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.

HotpotDesign avatar Mar 11 '14 03:03 HotpotDesign

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.

HotpotDesign avatar Mar 11 '14 04:03 HotpotDesign