Git Product home page Git Product logo

cloudclass-desktop's Introduction

English | δΈ­ζ–‡

CloudClass Desktop

This guide shows you how to run the CloudClass Web Demo.

How to run the sample project

Install

# install all dependencies via lerna and npm
yarn bootstrap

Config

Modify file content in pacakges/agora-apaas-demo/src/components/app/index.js Fill in your Agora APP ID and RTM Token. Note the uid you used to sign RTM token needs to match with userUuid.

    AgoraEduSDK.config({
    appId: "<YOUR APPID>",
    })
    AgoraEduSDK.launch(
    document.querySelector(`#${this.elem.id}`), {
        rtmToken: "<YOUR RTM TOKEN>",
        userUuid: "test",
        userName: "teacher",
        roomUuid: "4321",
        roleType: 1,
        roomType: 0,
        roomName: "demo-class",
        pretest: false,
        language: "en",
        startTime: new Date().getTime(),
        duration: 60 * 30,
        courseWareList: [],
        listener: (evt) => {
        console.log("evt", evt)
        }
    }
    )

See Set up Authentication to learn how to get an App ID and access token. You can get a temporary access token to quickly try out this sample project.

The Channel name you used to generate the token must be the same as the channel name you use to join a channel.

To ensure communication security, Agora uses access tokens (dynamic keys) to authenticate users joining a channel.

Temporary access tokens are for demonstration and testing purposes only and remain valid for 24 hours. In a production environment, you need to deploy your own server for generating access tokens. See Generate a Token for details.

Run

# start dev server
yarn run:apaas

# open localhost:9000

Feedback

If you have any problems or suggestions regarding the sample projects, feel free to file an issue.

Related resources

  • Check our FAQ to see if your issue has been recorded.
  • Dive into Agora SDK Samples to see more tutorials
  • Take a look at Agora Use Case for more complicated real use case
  • Repositories managed by developer communities can be found at Agora Community
  • If you encounter problems during integration, feel free to ask questions in Stack Overflow

License

The sample projects are under the MIT license.

cloudclass-desktop's People

Contributors

matrixbirds avatar plutoless avatar lynnfirst avatar guqianfeng avatar srs888001 avatar sunz10 avatar

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.