capacitor-plugin-vonage 0.1.8 → 1.0.0
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/CapacitorPluginVonage.podspec +1 -1
- package/android/src/main/java/com/managemyhealth/plugin/vonage/VideoCallActivity.java +2 -2
- package/android/src/main/java/com/managemyhealth/plugin/vonage/vonagePlugin.java +1 -1
- package/ios/Plugin/VideoChatViewController.swift +2 -1
- package/package.json +1 -1
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
|
|
15
15
|
s.ios.deployment_target = '13.0'
|
16
16
|
s.dependency 'Capacitor'
|
17
17
|
#s.dependency 'OpenTok','2.25.0'
|
18
|
-
s.dependency 'OTXCFramework','2.27.
|
18
|
+
s.dependency 'OTXCFramework','2.27.2'
|
19
19
|
s.swift_version = '5.1'
|
20
20
|
s.static_framework = true
|
21
21
|
end
|
@@ -62,7 +62,7 @@ public class VideoCallActivity extends AppCompatActivity implements EasyPermissi
|
|
62
62
|
String PUBLISHERNAME;
|
63
63
|
String profilePicApiUrl;
|
64
64
|
boolean isPatientOnline = false;
|
65
|
-
boolean enableVCConfig = false;
|
65
|
+
public static boolean enableVCConfig = false;
|
66
66
|
boolean isMuted = false;
|
67
67
|
boolean isCamOff = false;
|
68
68
|
public boolean temptest = false;
|
@@ -591,7 +591,7 @@ public class VideoCallActivity extends AppCompatActivity implements EasyPermissi
|
|
591
591
|
showToast("Notification has been sent");
|
592
592
|
}
|
593
593
|
}
|
594
|
-
public void patientStatusChanged(Boolean isOnline) {
|
594
|
+
public void patientStatusChanged(Boolean isOnline,Boolean enableVCConfig) {
|
595
595
|
|
596
596
|
if(enableVCConfig) {
|
597
597
|
if (subscriber == null) {
|
@@ -57,7 +57,7 @@ public class vonagePlugin extends Plugin{
|
|
57
57
|
public void run() {
|
58
58
|
try{
|
59
59
|
// VideoCallActivity temp = new VideoCallActivity();
|
60
|
-
|
60
|
+
VideoCallActivity.instance.patientStatusChanged(isOnline,VideoCallActivity.instance.enableVCConfig);
|
61
61
|
}catch (Exception e){
|
62
62
|
showLog("temp");
|
63
63
|
showLog(e.toString());
|
@@ -476,7 +476,8 @@ class VideoChatViewController: UIViewController,OTSessionDelegate,OTPublisherDel
|
|
476
476
|
let customAlert = CustomAlertViewController(nibName: "CustomAlertViewController", bundle: Bundle(for: CustomAlertViewController.self))
|
477
477
|
customAlert.isModalInPresentation = true
|
478
478
|
customAlert.delegate = self
|
479
|
-
customAlert.modalPresentationStyle = .
|
479
|
+
customAlert.modalPresentationStyle = .overCurrentContext
|
480
|
+
customAlert.view.backgroundColor = UIColor.black.withAlphaComponent(0.2)
|
480
481
|
self.present(customAlert, animated: true)
|
481
482
|
}
|
482
483
|
func btnYesClicked() {
|