我想安裝這個插件:科爾多瓦插件安裝不工作,
https://github.com/wnyc/cordova-plugin-playerhater
所以我執行此命令
cordova plugin add https://github.com/wnyc/cordova-plugin-playerhater.git
並添加此對config.xml
<gap:plugin name="org.nypr.cordova.playerhaterplugin" version="0.1.0" />
之後我嘗試:
alert(window.audioplayer); //undefined
alert(window.cordova.plugins); //{"fileextras":{}, "barcodeScanner":{...}}
alert(window.cordova.plugins.audioplayer); //undefined
如何讓這個插件有效?
我曾經遇到類似的問題。插件安裝後,我已經解僱了cordova構建android命令,然後我得到了插件的訪問。 – UnmeshD
你想在什麼平臺上使用這個插件? – QuickFix
在Android上..... –