capacitor-plugin-vonage 0.1.7 → 0.1.9

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.
@@ -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;
@@ -110,6 +110,9 @@ public class VideoCallActivity extends AppCompatActivity implements EasyPermissi
110
110
  private final Session.SessionListener sessionListener = new Session.SessionListener() {
111
111
  @Override
112
112
  public void onConnected(Session session) {
113
+ if(!enableVCConfig){
114
+ notifyObservers("admit");
115
+ }
113
116
  main.setVisibility(View.VISIBLE);
114
117
  startTimer();
115
118
  progressBar.setVisibility(View.INVISIBLE);
@@ -588,7 +591,7 @@ public class VideoCallActivity extends AppCompatActivity implements EasyPermissi
588
591
  showToast("Notification has been sent");
589
592
  }
590
593
  }
591
- public void patientStatusChanged(Boolean isOnline) {
594
+ public void patientStatusChanged(Boolean isOnline,Boolean enableVCConfig) {
592
595
 
593
596
  if(enableVCConfig) {
594
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
- VideoCallActivity.instance.patientStatusChanged(isOnline);
60
+ VideoCallActivity.instance.patientStatusChanged(isOnline,VideoCallActivity.instance.enableVCConfig);
61
61
  }catch (Exception e){
62
62
  showLog("temp");
63
63
  showLog(e.toString());
@@ -582,6 +582,9 @@ class VideoChatViewController: UIViewController,OTSessionDelegate,OTPublisherDel
582
582
  DispatchQueue.main.async {
583
583
  if(self.enableVCConfig){
584
584
  self.patientStatusChanged()
585
+ }else{
586
+ let userInfo = ["isProvider": self.isProvider]
587
+ self.delegate?.videoCallStarted(userInfo)
585
588
  }
586
589
  }
587
590
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-plugin-vonage",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "opentok sdk capacitor plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",