Closed Kaoschuks closed 2 years ago
Hi @Kaoschuks, you can see connectycube-web-sample in angular, which use JS SDK here: https://github.com/ConnectyCube/connectycube-web-samples/tree/master/videochat-conf-angular Please do the following to connect JS SDK to Angular project:
npm install connectycube --save
"scripts": ["./node_modules/connectycube/dist/connectycube.min.js"]
declare let ConnectyCube: any;
, where you use ConnectyCube
in your project Here are the errors I get now after following those steps you stated @Avia-Code......
It's possible you write ConnectyCube
twice. You can try replace ConnectyCube.ConnectyCube.createSession
to ConnectyCube.createSession
.
Not working
Please check the repo https://github.com/Kaoschuks/ionic-videocalling
So i checked your repo, you forgot initialize framework with your ConnectyCube application credentials ConnectyCube.init(CREDENTIALS, appConfig);
I replaced your code in constructor to this and it`s works:
constructor() {
ConnectyCube.init(CREDENTIALS, appConfig);
ConnectyCube.createSession()
.then((session) => {
console.log(session);
})
.catch((error) => {
});
}
Anyway read the https://developers.connectycube.com/js/ carefully
thanks @Avia-Code works for web but not for Cordova or ionic capacitor Its like webrtc is not working for Andriod (Cordova/ionic/capacitor)
ConnectyCube have repo for cordova, please create new issues to: https://github.com/ConnectyCube/connectycube-cordova-samples
ERROR Error: Uncaught (in promise): ReferenceError: ConnectyCube is not defined ReferenceError: ConnectyCube is not defined.