Wrapper Chromecast JAVA/Javascript in a Cordova Plugin