Code Monkey home page Code Monkey logo

2021-net-conf-acs-demo's Introduction

This is a demo which I did for .Net Conf 2021 in Taiwan for the session about Azure Communication Service.

The original of the content is from Microsoft tutorial content, which links are give in each section.

Power point slides (Chinese): https://www.slideshare.net/alantsai2007/2021-net-conf-taiwan-azure-communication-service-app

Getting user access token and user id

You can get user access token and user id (who you want to call) by using Azure Portal Identities & User Access Tokens function

Identities & User Access Tokens

demo-01-1on1

setup

The purpose of this demo is to show how easily creating a 1 on 1 voice call can be set up

What you will need to do is:

  1. run npm i
  2. call npx webpack-dev-server --entry ./client.js --output bundle.js --debug --devtool inline-source-map
  3. navigate to http://localhost:8080/ on your browser

running

The js has been setup to call the echo phone - use for testing purpose. If you want to call the reall user, change line 34 of client.js to

        [{ communicationUserId: userToCall }],

detail description

Quickstart: Add voice calling to your app

demo-02-1on1-video-call

setup

The purpose of this demo is to show how easily creating a 1 on 1 video call can be set up

What you will need to do is:

  1. run npm i
  2. call npx webpack-dev-server --entry ./client.js --output bundle.js --debug --devtool inline-source-map
  3. navigate to http://localhost:8080/ on your browser

running

You can open two browser instance, represent the participant of the call. Generate two user Id and token, the token use to initalize call and the callee will be the user Id If your computer/laptop support two camera (such as Surface Book 3), you can1change1 the drop down from 0 and 1 respectively

detail description

QuickStart: Add 1:1 video calling to your app

demo-03-join-teams

setup

The purpose of this demo is to show how easily join a teams meeting using anonymous

What you will need to do is:

  1. run npm i
  2. change client.js line 15 of <access token> to the accual access token of your user
  3. call npx webpack-dev-server --entry ./client.js --output bundle.js --debug --devtool inline-source-map
  4. navigate to http://localhost:8080/ on your browser

running

  1. You should create a teams meeting and get the invite link and input in the Teams meeting link input box
  2. click Join Teams Meeting and you should see a user waiting in the lobby in Teams meeting

detail description

Quickstart: Join your calling app to a Teams meeting

2021-net-conf-acs-demo's People

Contributors

alantsai avatar

Stargazers

 avatar

Watchers

 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.