ark-brighthustle / flutter_zoom_sdk

Zoom SDK from ZOOM ported to flutter as plugin with all necessary features and with Null Safety which is implementation by CodeSyncr
BSD 3-Clause "New" or "Revised" License
39 stars 84 forks source link

The example doesn't work!? #124

Open SittiphanSittisak opened 1 year ago

SittiphanSittisak commented 1 year ago

I tried with your example. For Android, I already changed the minimum Android sdk version to at the minimum 21 in android/app/build.gradle file. Then, I run this command.

flutter clean
flutter pub get
flutter pub run flutter_zoom_sdk:unzip_zoom_sdk

And I already change lines 133, 135, 223, 225, 228, 229, 319, 321, 324, and 325 with my data in meeting_screen.dart. After this, I tried to run the project on the mobile emulator. After I click join I got an error like this.

I/ZoomSDK (11328): initialize context is android.app.Application@1726ca
D/CompatibilityChangeReporter(11328): Compat change id reported: 263076149; UID 10183; state: DISABLED
I/EngineFactory(11328): Provider GmsCore_OpenSSL not available
D/BluetoothHeadset(11328): Binding service...
D/BluetoothHeadset(11328): Proxy object connected
D/AndroidRuntime(11328): Shutting down VM
E/AndroidRuntime(11328): FATAL EXCEPTION: main
E/AndroidRuntime(11328): Process: com.example.flutter_test_zoom, PID: 11328
E/AndroidRuntime(11328): java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for AttributionSource { uid = 10183, packageName = com.example.flutter_test_zoom, attributionTag = null, token = android.os.BinderProxy@4def782, next = null }: HeadsetService
E/AndroidRuntime(11328):    at com.android.bluetooth.Utils.checkPermissionForDataDelivery(Utils.java:554)
E/AndroidRuntime(11328):    at com.android.bluetooth.Utils.checkConnectPermissionForDataDelivery(Utils.java:586)
E/AndroidRuntime(11328):    at com.android.bluetooth.hfp.HeadsetService$BluetoothHeadsetBinder.getService(HeadsetService.java:492)
E/AndroidRuntime(11328):    at com.android.bluetooth.hfp.HeadsetService$BluetoothHeadsetBinder.getConnectedDevices(HeadsetService.java:532)
E/AndroidRuntime(11328):    at android.bluetooth.IBluetoothHeadset$Stub.onTransact(IBluetoothHeadset.java:279)
E/AndroidRuntime(11328):    at android.os.Binder.execTransactInternal(Binder.java:1344)
E/AndroidRuntime(11328):    at android.os.Binder.execTransact(Binder.java:1275)
I/Process (11328): Sending signal. PID: 11328 SIG: 9
Lost connection to device.

For web browsers (I need this), I already add data from your note about NOTE for using on Web to the index.html file. I already using import 'package:flutter_zoom_sdk/flutter_zoom_web.dart';, joinMeetingWeb, and startMeetingWeb. I found an error at joinMeetingResult parameter at

print("[Meeting Status Polling] : " + joinMeetingResult[0] + " - " + joinMeetingResult[1]);
//2 errors: The operator '[]' isn't defined for the type 'bool'. (Documentation)  Try defining the operator '[]'.

But I just remove this line and try to run this project. After I click join, I got this

Zoom support you browser.
You browser support below features
{browserInfo: Chrome/114.0.0.0, browserName: Chrome, browserVersion: 114.0.0.0, features: [viewSharing, screenShare, computerVideo, computerAudio, callIn, callOut, chat, closedCaption, QA, POLLING, BREAKOUT, GALLARY], browserAbility: [object Object]}
TypeError: Cannot set properties of null (setting 'exports')
https://source.zoom.us/1.9.9/lib/av/1502_js_media.min.js 1:80   <fn>
https://source.zoom.us/1.9.9/lib/av/1502_js_media.min.js 1:219  <fn>
pre load wasm success:
pre load wasm success:
TypeError: Cannot set properties of null (setting 'exports')
https://source.zoom.us/1.9.9/lib/webim.min.js 1:80   <fn>
https://source.zoom.us/1.9.9/lib/webim.min.js 1:191  <fn>

But the flutter show Join Meeting title, my example video, and Join button. After I click this Join button, the flutter show black screen with a dialog message as

Joining meeting timeout.
Invalid parameter
                                        Retry     ok

and my console shows this.

Error: NoSuchMethodError: ''
Dynamic call with too many arguments. Expected: 1 Actual: 2
Receiver: Instance of '(dynamic) => Null'
Arguments: [Instance of 'LegacyJavaScriptObject', true]
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 288:49      throw_
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 813:3   defaultNoSuchMethod
dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 64:17                 noSuchMethod
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 808:31  noSuchMethod
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 283:12  callNSM
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 369:10  _checkAndCall
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 372:39  dcall
https://source.zoom.us/zoom-meeting-1.9.9.min.js 2:422960                         A
https://source.zoom.us/zoom-meeting-1.9.9.min.js 2:424368                         I
https://source.zoom.us/zoom-meeting-1.9.9.min.js 2:2605424                        value
https://source.zoom.us/zoom-meeting-1.9.9.min.js 2:4852                           x
https://source.zoom.us/zoom-meeting-1.9.9.min.js 2:2855832                        <fn>
https://source.zoom.us/zoom-meeting-1.9.9.min.js 2:474454                         R
https://source.zoom.us/1.9.9/lib/vendor/react-dom.min.js 164:410                  sh
https://source.zoom.us/1.9.9/lib/vendor/react-dom.min.js 13:429                   rh
https://source.zoom.us/1.9.9/lib/vendor/react-dom.min.js 13:483                   uh
https://source.zoom.us/1.9.9/lib/vendor/react-dom.min.js 15:158                   Ge
https://source.zoom.us/1.9.9/lib/vendor/react-dom.min.js 165:250                  vh
https://source.zoom.us/1.9.9/lib/vendor/react-dom.min.js 15:443                   ad
https://source.zoom.us/1.9.9/lib/vendor/react-dom.min.js 17:16                    cd
https://source.zoom.us/1.9.9/lib/vendor/react-dom.min.js 39:335                   Uh
https://source.zoom.us/1.9.9/lib/vendor/react-dom.min.js 158:506                  Zg
https://source.zoom.us/1.9.9/lib/vendor/react-dom.min.js 23:322                   Xe
https://source.zoom.us/1.9.9/lib/vendor/react-dom.min.js 40:304                   oc
https://source.zoom.us/1.9.9/lib/vendor/react-dom.min.js 159:200                  <fn>
https://source.zoom.us/1.9.9/lib/vendor/react.min.js 27:36                        unstable_runWithPriority
https://source.zoom.us/1.9.9/lib/vendor/react-dom.min.js 159:176                  ah
https://source.zoom.us/1.9.9/lib/vendor/react-dom.min.js 40:45                    xf

What happened? How to solve this? Aw! Is this package support mobile browsers? I am looking for a package that supports this.