Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ buildscript {
apply plugin: 'com.android.library'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
compileSdkVersion 26
buildToolsVersion "26.0.3"

defaultConfig {
minSdkVersion 16
targetSdkVersion 22
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
Expand Down
4 changes: 2 additions & 2 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Jan 22 21:35:50 CET 2018
#Fri Dec 21 11:43:03 EST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-all.zip
17 changes: 9 additions & 8 deletions android/src/main/java/com/reactor/RNMobileRTCModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import us.zoom.sdk.JoinMeetingOptions;
import us.zoom.sdk.StartMeetingOptions;
import us.zoom.sdk.MeetingError;
import us.zoom.sdk.MeetingEvent;
import us.zoom.sdk.MeetingStatus;
import us.zoom.sdk.MeetingOptions;
import us.zoom.sdk.MeetingService;
import us.zoom.sdk.MeetingServiceListener;
Expand Down Expand Up @@ -109,6 +109,7 @@ public void joinMeeting(ReadableMap options, Promise promise) {
JoinMeetingOptions opts = new JoinMeetingOptions();
opts.no_dial_in_via_phone = true;
opts.no_disconnect_audio = true;
opts.no_driving_mode = true;

int ret = meetingService.joinMeeting(this.getCurrentActivity(), meetingNo, userName, meetingPassword, opts);
}
Expand Down Expand Up @@ -256,22 +257,22 @@ public void onZoomSDKInitializeResult(int errorCode, int internalErrorCode) {
}

@Override
public void onMeetingEvent(int meetingEvent, int errorCode, int internalErrorCode) {
public void onMeetingStatusChanged(MeetingStatus meetingStatus, int errorCode, int internalErrorCode) {
if (mPromise == null) {
return;
}

if (meetingEvent == MeetingEvent.MEETING_CONNECT_FAILED &&
if (meetingStatus == MeetingStatus.MEETING_STATUS_FAILED &&
errorCode != MeetingError.MEETING_ERROR_SUCCESS) {
mPromise.reject("" + errorCode);
}

if (mbPendingStartMeeting && meetingEvent == MeetingEvent.MEETING_DISCONNECTED) {
if (mbPendingStartMeeting && meetingStatus == MeetingStatus.MEETING_STATUS_FAILED) {
mbPendingStartMeeting = false;
mPromise.reject("" + errorCode);
}

if (meetingEvent == MeetingEvent.MEETING_CONNECTED) {
if (meetingStatus == MeetingStatus.MEETING_STATUS_INMEETING) {
mPromise.resolve("Success!");
}

Expand Down
Binary file modified android/zoomcommonlib/commonlib.aar
Binary file not shown.
Binary file modified android/zoomsdk/mobilertc.aar
Binary file not shown.
1 change: 1 addition & 0 deletions ios/RNMobileRTC.m
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ - (dispatch_queue_t)methodQueue

MobileRTCMeetingService *ms = [[MobileRTC sharedRTC] getMeetingService];
[[[MobileRTC sharedRTC] getMeetingSettings] setAutoConnectInternetAudio:YES];
[[[MobileRTC sharedRTC] getMeetingSettings] disableDriveMode:YES];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this is not necessary for your library. I had a requirement in the project I was working on to remove the driving mode functionality to simplify the interface.


if (ms)
{
Expand Down
83 changes: 83 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/postlink.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const packageJson = require('../../../package.json');

const frameworks = [
'libsqlite3.tbd',
'libstdc++.6.0.9.tbd',
'libc++.tbd',
'libz.1.2.5.tbd',
'VideoToolbox.framework',
];
Expand Down