@seamlink/cordova-plugin-jitsi 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/src/ios/JitsiPlugin.h +1 -0
- package/src/ios/JitsiPlugin.mm +7 -0
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ jitsiplugin.join('https://meet.jit.si/', roomId, false, (data) => {
|
|
|
18
18
|
//CONFERENCE_TERMINATED
|
|
19
19
|
//CONFERENCE_FINISHED
|
|
20
20
|
//CONFERENCE_DESTROYED
|
|
21
|
-
if (
|
|
21
|
+
if (["CONFERENCE_TERMINATED", "READY_TO_CLOSE"].includes(data)) {
|
|
22
22
|
jitsiplugin.destroy((data) => {
|
|
23
23
|
// call finished
|
|
24
24
|
}, f(err) => {
|
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id='@seamlink/cordova-plugin-jitsi' version='2.1.
|
|
2
|
+
<plugin id='@seamlink/cordova-plugin-jitsi' version='2.1.1'
|
|
3
3
|
xmlns='http://apache.org/cordova/ns/plugins/1.0'
|
|
4
4
|
xmlns:tools="http://schemas.android.com/tools"
|
|
5
5
|
xmlns:android='http://schemas.android.com/apk/res/android'>
|
package/src/ios/JitsiPlugin.h
CHANGED
package/src/ios/JitsiPlugin.mm
CHANGED
|
@@ -103,6 +103,13 @@ void _onJitsiMeetViewDelegateEvent(NSString *name, NSDictionary *data) {
|
|
|
103
103
|
[self.commandDelegate sendPluginResult:plgResult callbackId:commandBack.callbackId];
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
- (void)readyToClose:(NSDictionary *)data {
|
|
107
|
+
_onJitsiMeetViewDelegateEvent(@"READY_TO_CLOSE", data);
|
|
108
|
+
plgResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@"READY_TO_CLOSE"];
|
|
109
|
+
[plgResult setKeepCallbackAsBool:YES];
|
|
110
|
+
[self.commandDelegate sendPluginResult:plgResult callbackId:commandBack.callbackId];
|
|
111
|
+
}
|
|
112
|
+
|
|
106
113
|
- (void)loadConfigError:(NSDictionary *)data {
|
|
107
114
|
_onJitsiMeetViewDelegateEvent(@"LOAD_CONFIG_ERROR", data);
|
|
108
115
|
plgResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@"LOAD_CONFIG_ERROR"];
|