0.0.10 • Published 4 years ago

cordova-plugin-jitsi-meet-workbase v0.0.10

Weekly downloads
33
License
Auris
Repository
github
Last release
4 years ago

cordova-plugin-jitsi-meet

Cordova plugin for Jitsi Meet React Native SDK. Works with both iOS and Android, and fixes the 64-bit binary dependency issue with Android found in previous versions of this plugin.

Summary

I created this repo as there were multiple versions of this plugin, one which worked for iOS and Android, but neither worked with both. This verison satisfies the 64bit requirement for Android and also works in iOS and is currently being used in production.

Installation

cordova plugin add https://github.com/findmate/cordova-plugin-jitsi-meet

iOS Installation

On iOS/Xcode you will need to manually specify the WebRTC and JitsiMeet frameworks manually to be embedded.

Example of how to select them here: https://github.com/findmate/cordova-plugin-jitsi-meet/blob/master/xcode-ios-framework-embed-example.png

Usage

const roomId = 'your-custom-room-id';

jitsiplugin.join('https://meet.jit.si', roomId, 'test user', false, function (data) {
    //CONFERENCE_WILL_JOIN
    //CONFERENCE_JOINED
    //CONFERENCE_TERMINATED
    //CONFERENCE_FINISHED
    //CONFERENCE_DESTROYED
    if (data === "CONFERENCE_TERMINATED") {
        jitsiplugin.destroy(function (data) {
            // call finished
        }, function (err) {
            console.log(err);
        });
    }
}, function (err) {
    console.log(err);
});