Coder Social home page Coder Social logo

plutoless / eeducation Goto Github PK

View Code? Open in Web Editor NEW
184.0 38.0 125.0 1.75 MB

e-education solutions(Agora Reference Design)

JavaScript 1.18% HTML 0.10% Shell 0.14% TypeScript 22.06% Java 15.11% Objective-C 31.80% Ruby 0.03% Python 0.62% CSS 4.55% C 24.09% C++ 0.32%
rtc education agora video electron-app

eeducation's Introduction

其他语言版本:简体中文

Table of contents

About the project

Agora e-Education is a sample project provided by Agora for developers in the education industry, which demonstrates how to use Agora Edu Cloud Service, Agora RTC SDK, Agora RTM SDK, Agora Cloud Recording, and the third-party Netless whiteboard SDK to quickly implement basic online interactive tutoring scenarios.

Applicable scenarios

Agora e-Education supports the following scenarios:

  • One-to-one Classroom: An online teacher gives an exclusive lesson to only one student, and both can interact in real time.
  • Small Classroom: A teacher gives an online lesson to multiple students, and both the teacher and students can interact with each other in real time. The number of students in a small classroom should not exceed 16.
  • Lecture Hall: Thousands of students watch an online lecture together. Students can "raise their hands" to interact with the teacher, and their responses are viewed by all the other students at the same time.

Functions

Function Web (Teacher) Web (Student) iOS and Android (Student) Note
Real-time audio and video communication /
Real-time messaging /
Interactive Whiteboard ✔ One-to-one Classroom

✔ Small Classroom

✘ Lecture Hall

✔One-to-one Classroom

✔ Small Classroom

✘ Lecture Hall

  • In a one-to-one classroom, both the teacher and students can draw on the whiteboard by default.
  • In a small classroom, students cannot draw on the whiteboard by default, but the teacher can give a student the permission of drawing on the whiteboard.
  • In a lecture hall, students can never draw on the whiteboard.
  • Whiteboard follow The teacher can enable "whiteboard follow". When the teacher is moving the whiteboard or turning pages, the whiteboard area that students see will be consistent with the teacher's whiteboard area.
    Uploading files (PPT, Word, PDF, audio files or video files) Only teachers can upload files to the classroom.
    Students raising hands In a lecture hall, students do not send their audio and video by default, but they can "raise their hands" to apply for interacting with the teacher. The teacher can approve or decline the application.
    Screen sharing The teacher can share the screen.
    Recording and replay The teacher can start recording and record the class for at least 15 seconds. After the recording finishes, a link for replaying the class will be displayed in the message box.

    Compatibility

    Agora e-Education supports the following platforms and versions:

    • iOS 10 or later. We do not test Agora e-Education on iOS 9 updates.
    • Android 4.4 and later.
    • Web Chrome 72 and later. We do not test Agora e-Education on browsers.

    Restrictions

    See Restrictions.

    Get started

    Prerequisites

    Make sure you make the following preparations before compiling and running the sample project.

    Get an Agora App ID

    Follow these steps to get an Agora App ID:

    1. Create an account in Agora Console.
    2. Log in to Agora Console and create a project. Select "App ID + App Certificate + Token" as your authentication mechanism when creating the project. Make sure that you enable the App Certificate of this project.
    3. Get the App ID of this project in Project Management page.

    Pass the basic HTTP authentication

    Before using the Agora RESTful APIs, you need to generate the Authorization parameter with the Customer ID and Customer Certificate provided by Agora and pass the Authorization parameter in the HTTP request header for authentication. For details, see the steps of basic HTTP authentication.

    Get a Netless sdkToken and register with Agora Cloud Service

    Follow these steps to get a Netless whiteboard sdkToken:

    1. Create an account in Netless Console.
    2. Log in to Netless Console and get the sdkToken in the Key management page.

    You need to register the sdkToken of the whiteboard to the Agora cloud server.

    1. OpenAgora Console
    2. EditProject Management, select the function module and click "update the token" to register.

    Run the sample project

    See the following documents to compile and run the sample project:

    Use Agora Edu Cloud Service

    Agora provides Agora Edu Cloud Service for developers who are not good at back end development. You can call the RESTful APIs of Agora Edu Cloud Service to quickly implement managing the states of classrooms and the permissions of users on the back end. For details, see Agora Edu Cloud Service.

    FAQ

    See Trouble Shooting.

    Recommended versions of the Agora RTC SDK

    Agora provides high-stability versions of the Agora RTC Native SDK for companies in the education industry. The educational special versions are developed based on the Agora RTC SDK v2.9.0.

    For the Agora RTC Web SDK, download the latest version on Agora Developer Portal.

    eeducation's People

    Contributors

    plutoless avatar

    Stargazers

     avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

    Watchers

     avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

    eeducation's Issues

    Error: window.__netlessJavaScriptLoader was override 这个的原因是啥

    Error: window.__netlessJavaScriptLoader was override
    ▼ 13 stack frames were expanded.
    new e
    E:/project/eEducation/education_web/node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js:30564
    push../node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js.lib
    E:/project/eEducation/education_web/node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js:30539
    r
    E:/project/eEducation/education_web/node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js:13
    push../node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js.lib
    E:/project/eEducation/education_web/node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js:30460
    r
    E:/project/eEducation/education_web/node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js:13
    push../node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js.lib
    E:/project/eEducation/education_web/node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js:30333
    r
    E:/project/eEducation/education_web/node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js:13
    push../node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js.lib
    E:/project/eEducation/education_web/node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js:4261
    r
    E:/project/eEducation/education_web/node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js:13
    push../node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js.lib
    E:/project/eEducation/education_web/node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js:10007
    r
    E:/project/eEducation/education_web/node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js:13
    push../node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js.lib
    E:/project/eEducation/education_web/node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js:47
    ./node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js
    E:/project/eEducation/education_web/node_modules/_white-web-sdk@2.5.4@white-web-sdk/src/index.js:48
    ▲ 13 stack frames were expanded.
    webpack_require
    E:/project/eEducation/education_web/webpack/bootstrap:785
    782 | };
    783 |
    784 | // Execute the module function

    785 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
    | ^ 786 |
    787 | // Flag the module as loaded
    788 | module.l = true;

    docker-compose up --force-recreate命令报错

    Step 10/12 : RUN cd /usr/src/app && npm install && npm run prestart
    ---> Running in beca0d9bc7b2
    npm WARN [email protected] No repository field.

    added 114 packages from 142 contributors and audited 214 packages in 31.643s
    found 0 vulnerabilities

    [email protected] prestart /usr/src/app
    tsc

    src/components/sentry/index.ts(77,7): error TS2531: Object is possibly 'null'.
    src/components/sentry/index.ts(82,7): error TS2531: Object is possibly 'null'.
    src/components/sentry/index.ts(101,17): error TS2345: Argument of type 'AgoraRtmChannel | null' is not assignable to parameter of type 'AgoraRtmChannel | PromiseLike | undefined'.
    Type 'null' is not assignable to type 'AgoraRtmChannel | PromiseLike | undefined'.
    src/components/sentry/index.ts(103,7): error TS2531: Object is possibly 'null'.
    src/components/sentry/index.ts(131,7): error TS2531: Object is possibly 'null'.
    src/components/sentry/index.ts(171,15): error TS2531: Object is possibly 'null'.
    src/components/sentry/index.ts(173,9): error TS2531: Object is possibly 'null'.
    npm ERR! code ELIFECYCLE
    npm ERR! errno 2
    npm ERR! [email protected] prestart: tsc
    npm ERR! Exit status 2
    npm ERR!
    npm ERR! Failed at the [email protected] prestart script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2019-12-25T16_09_59_664Z-debug.log
    ERROR: Service 'sentry' failed to build: The command '/bin/sh -c cd /usr/src/app && npm install && npm run prestart' returned a non-zero code: 2

    sendMessage(peerAccount, text) 没有作用(急)

    image
    已确保接收方是在频道内,且peerAccount也是有效的
    这个版本的发消息也没有成功与失败的回调,所以不知道发生什么事情。
    demo里也没有用上这个api。
    非常急,望回

    Problem with Screen Sharing

    Hi, I am trying release-2.1.0(agora-education-demo 0.2.1) to check screen sharing.

    After entering Classroom as a teacher, click "Screen Share" button, my client preview seems to be working, but student side computers cannot see the shared screen, and they get black screen, when teacher click "Screen Share" again(to be off), student side computers see white screen.

    Is there any work around for this issue? Or something I need to fix for the code?

    Thanks,

    提议:升级版本时请告知需要升级的文件和配置

    升级版本时请告知需要升级的文件和配置
    如0.4.7升级到0.4.8,若只更新AgoraSDK是升级不成功的,需要替换掉app文件夹下的app.html

    module.js:545 Uncaught Error: Cannot find module './webgl-utils' at Module._resolveFilename (module.js:543:15) at Function.Module._resolveFilename (E:\Node\Examples\LinkTeacher\ElectronLinkTeacher\node_modules\[email protected]@electron\dist\resources\electron.asar\common\reset-search-paths.js:35:12) at Function.Module._load (module.js:473:25) at Module.require (module.js:586:17) at require (internal/module.js:11:18) at file:///E:/Node/Examples/LinkTeacher/ElectronLinkTeacher/app/AgoraSDK/AgoraRender.js:1:34 AgoraSdk.js:1 Uncaught SyntaxError: Identifier 'EventEmitter' has already been declared at AgoraSdk.js:1

    Unable to start education_server

    When I run docker-compose up in /education_server, following logs are generated

    Starting education_server_redis_1 ... done
    Starting education_server_sentry_1 ... done
    Attaching to education_server_redis_1, education_server_sentry_1
    redis_1 | 1:C 30 Nov 2019 09:29:29.560 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
    redis_1 | 1:C 30 Nov 2019 09:29:29.560 # Redis version=5.0.6, bits=64, commit=00000000, modified=0, pid=1, just started
    redis_1 | 1:C 30 Nov 2019 09:29:29.560 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
    redis_1 | 1:M 30 Nov 2019 09:29:29.565 * Running mode=standalone, port=6379.
    redis_1 | 1:M 30 Nov 2019 09:29:29.565 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
    redis_1 | 1:M 30 Nov 2019 09:29:29.565 # Server initialized
    redis_1 | 1:M 30 Nov 2019 09:29:29.566 * DB loaded from disk: 0.001 seconds
    redis_1 | 1:M 30 Nov 2019 09:29:29.566 * Ready to accept connections
    education_server_sentry_1 exited with code 139

    The issue seems to be related to redis:alpine image. I tried changing the somaxconn value to something greater from inside the redis:alpine container but it says the file system is read-only.

    education_electron项目install的时候报错

    在education_electron根目录执行:cnpm install 报错
    系统:win10 64位 node:v12.14.0 [email protected] [email protected]
    master分钟,几分钟前clone的代码: f4fe7bd

    [2/8] scripts.install agora-electron-sdk@^2.4.0-alpha run "just install", root: "E:\\projects\\eEducation\\education_electron\\node_modules\\[email protected]@agora-electron-sdk"
    [14:25:24] ■ started 'install'
    [14:25:24] x Error detected while running 'install'
    [14:25:24] x ------------------------------------
    [14:25:24] x TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
        at validateString (internal/validators.js:112:11)
        at Object.join (path.js:375:7)
        at module.exports.getArgvFromPkgJson (E:\projects\eEducation\education_electron\node_modules\[email protected]@agora-electron-sdk\scripts\npm_argv.js:15:27)
        at E:\projects\eEducation\education_electron\node_modules\[email protected]@agora-electron-sdk\just-task.js:54:57
        at _wrapFunction (E:\projects\eEducation\education_electron\node_modules\[email protected]@just-task\lib\wrapTask.js:13:36)
        at install (E:\projects\eEducation\education_electron\node_modules\[email protected]@undertaker\lib\set-task.js:13:15)
        at bound (domain.js:419:14)
        at runBound (domain.js:432:12)
        at asyncRunner (E:\projects\eEducation\education_electron\node_modules\[email protected]@async-done\index.js:55:18)
        at processTicksAndRejections (internal/process/task_queues.js:75:11)
    [14:25:24] x ------------------------------------
    [14:25:24] x Error previously detected. See above for error messages.
    [npminstall:runscript:error] agora-electron-sdk@^2.4.0-alpha scripts.install run "just install" error: Error [RunScriptError]: Run "C:\Windows\system32\cmd.exe /d /s /c just install" error, exit code 1
        at ChildProcess.<anonymous> (C:\Users\WIF\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:96:21)
        at ChildProcess.emit (events.js:210:5)
        at maybeClose (internal/child_process.js:1021:16)
        at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) {
      name: 'RunScriptError',
      stdio: [Object]
    }
    × Install fail! RunScriptError: post install error, please remove node_modules before retry!
    Run "C:\Windows\system32\cmd.exe /d /s /c just install" error, exit code 1
    RunScriptError: Run "C:\Windows\system32\cmd.exe /d /s /c just install" error, exit code 1
        at ChildProcess.<anonymous> (C:\Users\WIF\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:96:21)
        at ChildProcess.emit (events.js:210:5)
        at maybeClose (internal/child_process.js:1021:16)
        at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
    npminstall version: 3.25.2
    npminstall args: C:\Program Files\nodejs\node.exe C:\Users\WIF\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\WIF\.cnpmrc --d
    --userconfig=C:\Users\WIF\.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://r.npm.taobao.org
    

    web 信令不稳定

    你好,请问原生版信令SDK什么时候可以上线,发现web sdk,经常会出现一些如下问题,发送,接收方都在频道内,但是接收方有时会接收不到什么消息,但没有掉线的回掉;
    也有出现收到广播的消息,却不能较即时收到P2P消息,而是阻塞一段时间一次性收到P2P的消息;
    登出信令现在只有101与102两个码,不管是被T还是真正断网都只返回102,这样做不到原生SDK的被T提示,也没法做到重连的功能。

    get webgl return null

    你好,我用DEMO里的electron版本,2.0.2 ,chrome 61.
    6ers73zta1 j_05 qo2a9
    同一环境,同一台机,跑你们的DEMO可以看到视频,但我自己建的项目不可以。
    运行 chrome://gpu 发现我的项目里的gpu都禁止掉了,但你们demo查看是开启了,搜索demo了没找到相关的设置方法,请问这个是不是在Electron里是有设置的

    直接打包demo出错

    我尝试打包demo,但发现在down时出错,已用VPN也解决不了;请问有其他方法解决吗

    _20180725175915

    关于屏幕录制功能

    你好,我们部署了服务端录制功能,但我们需要做一个录制屏幕(带远近端声音)的录制用于回放,请问这个有什么方法吗?

    升级到[email protected]之后无法进入直播间

    看到 doc有agoraRtcEngine.addInjectStreamUrl(url, config) ⇒ number这个方法,只有2.3.2才有,所以升到2.3.2-alpha

    升级后运行进入直播间时弹出系统弹框:This process has crashed.

    请问升级后需要做什么配置调整吗

    Agora-eEducation-v4.0.1-alpha server报错

    agora-node-rtm@git+https://github.com/AgoraIO-Community/Agora-RTM-Nodejs.git#e28aa6c2a32c1db25961640459b3ea972163bd76 install /home/wwwtest/eEducation-4.0.1-alpha/education_server/node_modules/agora-node-rtm
    node-gyp rebuild

    make: Entering directory /home/wwwtest/eEducation-4.0.1-alpha/education_server/node_modules/agora-node-rtm/build' CXX(target) Release/obj.target/agorasdk/addon/node_uid.o CXX(target) Release/obj.target/agorasdk/addon/node_napi_api.o ../addon/node_napi_api.cpp: In function ?.api_status napi_get_value_uint32_(const v8::Local<v8::Value>&, uint32_t&)?. ../addon/node_napi_api.cpp:34:33: warning: ?.int32_t v8::Value::Uint32Value() const?.is deprecated (declared at /root/.node-gyp/10.15.1/include/node/v8.h:2477): Use maybe version [-Wdeprecated-declarations] result = value->Uint32Value(); ^ ../addon/node_napi_api.cpp: In function ?.api_status napi_get_value_int32_(const v8::Local<v8::Value>&, int32_t&)?. ../addon/node_napi_api.cpp:50:32: warning: ?.nt32_t v8::Value::Int32Value() const?.is deprecated (declared at /root/.node-gyp/10.15.1/include/node/v8.h:2478): Use maybe version [-Wdeprecated-declarations] result = value->Int32Value(); ^ ../addon/node_napi_api.cpp: In function ?.api_status napi_get_value_double_(const v8::Local<v8::Value>&, double&)?. ../addon/node_napi_api.cpp:59:33: warning: ?.ouble v8::Value::NumberValue() const?.is deprecated (declared at /root/.node-gyp/10.15.1/include/node/v8.h:2475): Use maybe version [-Wdeprecated-declarations] result = value->NumberValue(); ^ CXX(target) Release/obj.target/agorasdk/addon/node_async_queue.o CXX(target) Release/obj.target/agorasdk/addon/rtm_controller.o In file included from ../addon/rtm_controller.cc:4:0: ../addon/rtm_controller.h:16:23: fatal error: uuid/uuid.h: No such file or directory #include <uuid/uuid.h> ^ compilation terminated. make: *** [Release/obj.target/agorasdk/addon/rtm_controller.o] Error 1 make: Leaving directory /home/wwwtest/eEducation-4.0.1-alpha/education_server/node_modules/agora-node-rtm/build'
    gyp ERR! build error
    gyp ERR! stack Error: make failed with exit code: 2
    gyp ERR! stack at ChildProcess.onExit (/usr/local/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
    gyp ERR! stack at ChildProcess.emit (events.js:189:13)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
    gyp ERR! System Linux 3.10.0-514.26.2.el7.x86_64
    gyp ERR! command "/usr/local/nodejs/bin/node" "/usr/local/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd /home/wwwtest/eEducation-4.0.1-alpha/education_server/node_modules/agora-node-rtm
    gyp ERR! node -v v10.15.1
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok
    npm WARN [email protected] No repository field.

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! agora-node-rtm@git+https://github.com/AgoraIO-Community/Agora-RTM-Nodejs.git#e28aa6c2a32c1db25961640459b3ea972163bd76 install: node-gyp rebuild
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the agora-node-rtm@git+https://github.com/AgoraIO-Community/Agora-RTM-Nodejs.git#e28aa6c2a32c1db25961640459b3ea972163bd76 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:

    education_server docker-compose up 失败

    Step 11/14 : RUN cd /usr/src/app/agora-rtm-nodejs && npm install --ignore-scripts && npm run build:addon && npm run build:ts
    ---> Running in edcbc32b1443
    npm WARN [email protected] No repository field.

    added 114 packages from 142 contributors and audited 214 packages in 17.344s
    found 0 vulnerabilities

    npm ERR! missing script: build:addon

    npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2019-12-15T08_08_59_396Z-debug.log
    ERROR: Service 'sentry' failed to build: The command '/bin/sh -c cd /usr/src/app/agora-rtm-nodejs && npm install --ignore-scripts && npm run build:addon && npm run build:ts' returned a non-zero code: 1

    在运行docker-compose up时出现的错误,请问要如何解决

    Error: cannot call it. the phase of room is not connected

    ×
    Error: cannot call it. the phase of room is not connected
    ▶ 2 stack frames were collapsed.
    (anonymous function)
    D:/Prototype2020/eEducation/education_web/src/components/mediaboard.tsx:493
    490 | if (roomStore.state.course.lockBoard) {
    491 | room.setViewMode(ViewMode.Broadcaster);
    492 | } else {

    493 | room.setViewMode(ViewMode.Freedom);
    | ^ 494 | }
    495 | }
    496 | }, [me.role, room]);
    View compiled
    ▶ 18 stack frames were collapsed.
    (anonymous function)
    D:/Prototype2020/eEducation/modules/Router.js:33
    30 | if (!props.staticContext) {
    31 | this.unlisten = props.history.listen(location => {
    32 | if (this._isMounted) {
    33 | this.setState({ location });
    | ^ 34 | } else {
    35 | this._pendingLocation = location;
    36 | }
    View compiled
    ▶ 7 stack frames were collapsed.
    (anonymous function)
    D:/Prototype2020/eEducation/education_web/src/pages/home.tsx:107
    104 | globalStore.showLoading();
    105 | roomStore.loginAndJoin(payload).then(() => {
    106 | roomStore.updateSessionInfo(payload);
    107 | history.push(/classroom/${path});
    | ^ 108 | }).catch((err: any) => {
    109 | if (err.reason) {
    110 | globalStore.showToast({
    View compiled

    this.rtcEngine.videoSourceJoin(token, ...) 传入token屏幕分享无反应

    已经在声网控制台开启app Certificate

    传入从接口生成好的channel和uid对应的token:

    token = '0069exxxxx'
    uid = 12345
    channel = 'class1'
    console.log(this.rtcEngine.videoSourceJoin(token, channel , info, uid));
    

    videoSourceJoin返回0,

    但下面这个成功的回调没有执行,userjoined 回调也没有执行,屏幕分享也没有起作用。

    this.rtcEngine.once('videosourcejoinedsuccess', uid => {
            // clearTimeout(timer)
            console.log('success')
            this.sharingPrepared = true
            resolve(uid)
    });
    

    我用同样的传入方式调用 this.rtcEngine.joinChannels 是有起作用的。

    setAudioPlaybackDevice 不起作用

    你好,setAudioPlaybackDevice 不起作用。
    setAudioPlaybackDevice(deviceid) {
    return this.rtcengine.setAudioPlaybackDevice(deviceid);
    }

    对应管网里的这个方法吧
    image

    image

    image

    苹果系统CPU占用率过高

    您好,我发现node版本SDK在苹果系统CPU占用率太高了,运行一会就风扇转个不停,卡的很。不知道是我配置的版本还是什么原因。

    education_server not working

    ➜  education_server git:(master) ✗ docker-compose up
    Building sentry
    Step 1/12 : FROM node:8
     ---> 8eeadf3757f4
    Step 2/12 : WORKDIR /usr/src/app
     ---> Using cache
     ---> 730ab2cbd0ca
    Step 3/12 : RUN apt-get update && apt-get install -y   uuid-dev   libevent-dev
     ---> Using cache
     ---> c2754f40a3a9
    Step 4/12 : COPY . .
     ---> Using cache
     ---> 7d32bad799c8
    Step 5/12 : RUN curl -o rtm.zip http://download.agora.io/rtmsdk/release/Agora_RTM_SDK_for_Linux_v0_9_2.zip && unzip rtm.zip -d /usr/src/rtm
     ---> Using cache
     ---> 74eb899ea1d7
    Step 6/12 : RUN ls /usr/src/rtm -a
     ---> Using cache
     ---> fb94910fbfa5
    Step 7/12 : RUN mv /usr/src/rtm/Agora_RTM_SDK_for_Linux/libs/include /usr/src/app/agora-rtm-nodejs
     ---> Using cache
     ---> 5b3bd767cb83
    Step 8/12 : RUN mv /usr/src/rtm/Agora_RTM_SDK_for_Linux/libs/libagora_rtm_sdk.so /usr/lib/
     ---> Using cache
     ---> eafeeab5bd99
    Step 9/12 : RUN cd /usr/src/app/agora-rtm-nodejs && npm install --ignore-scripts && npm run build:addon && npm run build:ts
     ---> Running in bfd419e55e02
    npm WARN [email protected] No repository field.
    
    added 114 packages from 142 contributors and audited 214 packages in 13.81s
    found 0 vulnerabilities
    
    npm ERR! missing script: build:addon
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2020-01-03T09_06_58_423Z-debug.log
    ERROR: Service 'sentry' failed to build: The command '/bin/sh -c cd /usr/src/app/agora-rtm-nodejs && npm install --ignore-scripts && npm run build:addon && npm run build:ts' returned a non-zero code: 1

    Hi guys,
    There is no script named build:addon in education_server/package.json

    学生听不到老师电脑扬声器的声音

    老师在播放视频课件的时候,学生只能看到画面,听不到视频课件的声音,只能听到老师讲话的声音(麦克风的声音),扬声器的声音没有

    能出个视频吗

    能出个视频教搭建服务器吗(小白一个,刚接触不久,很多不懂)

    打包出错

    当我运行 npm run package-win

    ERROR in ./node_modules/[email protected]@coffeescript/bin/coffee [0] Module parse failed: Unexpected character '#' (1:0) [0] You may need an appropriate loader to handle this file type. [0] | #!/usr/bin/env node [0] | [0] | var path = require('path'); [0] @ ./node_modules/[email protected]@coffeescript/lib/coffee-script/register.js 52:13-48 [0] @ ./node_modules/[email protected]@coffeescript/lib/coffee-script/coffee-script.js [0] @ ./node_modules/[email protected]@cson-parser/lib/parse.js [0] @ ./node_modules/[email protected]@cson-parser/lib/cson-parser.js [0] @ ./node_modules/[email protected]@i18next-node-fs-backend/lib/index.js [0] @ ./node_modules/[email protected]@i18next-node-fs-backend/index.js [0] @ ./app/config/i18next.config.js [0] @ ./app/main.dev.js [0] npm ERR! code ELIFECYCLE [0] npm ERR! errno 2

    请问这是什么问题

    信令SDK版本过低

    我看到agora_sig_sdk.dll的版本是1.2.1,根据你们的发布更新日志 是在1.2.1 版 (发布于 2018 年 3 月 20 日)。
    但是很多api没有开放出来,如setAttr,getUserAttr,onUserAttrResult,onMessageSendSuccess等非常重要的API。
    请问是不是只是AgoraSig-1.2.1.3.js没做兼容而已,dll其实是通用的,我简单试了下AgoraSig-1.2.1.3.js里的session.socket.on("notify", function(msg)...
    也没发现有这些回调回来

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google ❤️ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.