Coder Social home page Coder Social logo

video-sdk-samples-reactjs's Introduction

Agora Video SDK for ReactJS reference app

This repository holds the code examples used for the Agora Video SDK for ReactJS documentation. Clone the repo, run and test the samples, and use the code in your own project. Enjoy.

Samples

The runnable code examples are:

Run this project

To run the sample projects in this folder, take the following steps:

  1. Clone the Git repository by executing the following command in a terminal window:

    git clone https://github.com/AgoraIO/video-sdk-samples-reactjs
  2. Install the dependencies:

    In Terminal, navigate to video-sdk-samples-reactjs, and execute the following command.

    npm install
  3. In the video-sdk-samples-reactjs reference app, open src/agora-manager/config.json and set appId to the AppID of your project.

  4. Set the authentication token:

    • Temporary token:
      1. Set rtcToken with the value of your temporary token
    • Authentication server:
      1. Setup an Authentication server

      2. In config.json:

        1. Set rtcToken to an empty string.
        2. Set serverUrl to the base URL of your authentication server. For example, https://agora-token-service-production-1234.up.railway.app.
      3. Start a proxy server so this web app can make HTTP calls to fetch a token. In a Terminal instance in the reference app root, run the following command:

        node ./utils/proxy.js
  5. Start this reference app.

    In Terminal, run the following command:

    yarn dev
  6. Open the project in your browser. The default URL is http://localhost:5173/.

  7. In the dropdown, select this document and test .

video-sdk-samples-reactjs's People

Contributors

billy-the-fish avatar ekaansharora avatar hussain-khalid avatar maxxfrazer avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

video-sdk-samples-reactjs's Issues

[after beta] update picker component

When I duplicate the tab with an option in the picker selected, the state isn't duplicated across the tab meaning I see a blank screen till i "dirty" the field (change it to a different option and back). Can we update the picker component in the root?

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.