Open rfvermut opened 6 years ago
I have that question too. I don't know how to use this library. Can you help us please with examples
The jitsi plugin opens the view on top of your current view. So you would need to import it in your typescript file and use it.
Code Snippet
declare var jitsiplugin:any;
export class TestPage { ngOnInit() { jitsiplugin.loadURL(${room_url}, null, (data) => { if(data === "CONFERENCE_WILL_LEAVE"){ jitsiplugin.destroy((data) => { console.log("Destroy"); }, (err) => { console.log("Error"); }); } }, (err) => { console.log("Error : ", err); }); } }
// room url can be like https://meet.jit.si/${roomName} or https://meet.jit.si/${roomName}?jwt=${jwt}
I used "declare var jitsiplugin:any;" "the command calls jistiPlugin into my ionic project, but the page in the project shows an error with not define, the plug-in can be found in the npm file, but why am I still unable to use this plug-in? Can you help me analyze why? I hope you can answer, thank you!
I have a really amateur question - how to start using the library?
I've created a blank ionic project.
Then I run
ionic cordova plugin add https://github.com/gaganinvic/cordova-plugin-jitsi-meet
and it worked. I see jitsi plugin inionic cordova plugin
:But what's next? Do I import it in ts like
or I have to use cordova approach, like here? https://forum.ionicframework.com/t/integrating-third-party-cordova-plugins-and-using-in-ionic/91044
Or maybe you can provide a working sample? The most primitive one, just to bootstrap me?