AgoraIO-Community / Agora-Electron-Quickstart

Quickstart for Agora Electron SDK(Windows/macOS) https://github.com/AgoraIO/Electron-SDK
71 stars 36 forks source link

m1 运行 Agora-Electron-API-Example 报错, 不支持m1 #98

Closed Wster11 closed 2 years ago

Wster11 commented 2 years ago

报错信息

image

sdk版本

image
Wster11 commented 2 years ago

sdk 3.5.0-rc.3-iris.1123-build.1 可以在m1上运行起来

Wster11 commented 2 years ago

改为3.5.0-rc.3-iris.1123-build.1版本后, 当有用户加入频道时, demo rtcEngine.subscribe is not function

RoJoHub commented 2 years ago

Agora-Electron-API-Example 如果要支持 m1,需要将 electron 改为12.0.0 且 Agora-Electron-API-Example/package.json 里面electron_version改为12.0.0 "agora_electron": { "prebuilt": true, "electron_version": "5.0.8" },

Wster11 commented 2 years ago

好的,谢谢。 帮忙看下这个错误吧,rtcEngine.subscribe is not function。(当有用户加入频道触发) 没有在sdk源码文件中看到这个方法

Wster11 commented 2 years ago

Agora-Electron-API-Example 如果要支持 m1,需要将 electron 改为12.0.0 且 Agora-Electron-API-Example/package.json 里面electron_version改为12.0.0 "agora_electron": { "prebuilt": true, "electron_version": "5.0.8" },

抱歉,刚才尝试了使用sdk latest,和 electron 12版本, 依然运行不起来,还是上面图片的错误,只有iris的sdk能跑起来

Wster11 commented 2 years ago

什么问题会导致 file Agora-Electron-API-Example/src/node_modules/agora-electron-sdk/build/Release/agora_node_ext.node 这个返回的不一样呢?

技术支持发我的demo文件里面的electron sdk是支持m1的, 我删掉node_modules 重新yarn, 新安装的包就不支持m1了