Giter Club home page Giter Club logo

gve_devnet_webex_meetings_widget's Introduction

Webex React Meeting Widget Sample

This sample code shows the use of the Webex Meetings Widget in a simple React App. The instructions cover how to build the app and how to embed it as a component in static or dynamic template HTML pages.

This sample code was created based on the Webex React Meeting Widget Starter repository.

Contacts

  • ramrenne

Installation

  1. Make sure you have the following tools installed:
  1. Clone this Github repository into a local folder:
    git clone [add github link here]
  • For Github link: In Github, click on the Clone or download button in the upper part of the page > click the copy icon
    /IMAGES/giturl.png
  • Or simply download the repository as zip file using 'Download ZIP' button and extract it
  1. Access the downloaded folder:
    cd gve_devnet_webex_meetings_widget

  2. Install the dependencies via:
    yarn install

  3. Create a Personal Access Token or Guest Token for the next step.

    Personal Access Tokens have only a short lifetime (12 hours) and are meant for testing purposes. An alternative are tokens retrieved via the oAuth workflow. The Webex React Meeting Widget Starter shows an integration of the Webex Meetings Widget and oAuth.

  4. Fill in your variables in the index.html file:

  ...
  <div id="meetings-widget" 
  data-token="[Personal Access or Guest Token token from 5]" 
  data-destination="[Destination]">
  </div>
  ....

A meeting destination is a virtual location where the Webex meeting takes place. It can be: SIP URI (Webex Meetings, Personal Meeting Rooms and Webex cloud-registered devices only), email address (of a Webex user), people ID, room ID.

  1. Run the React application in development mode via:
    yarn start

Open http://localhost:3000 in the browser to view the app.

Embed the Widget as a Component in a Dynamic Template or Static HTML Page

Build application for production

  1. Build the application for production:
    yarn build:widget

  2. The build creates several files in a new folder - gve_devnet_webex_meetings_widget/dist. We will use these files in the next step.

Embed the Component in the Target HTML page

In target HTML page:

  1. Embed the Widget by copying the following files into the preferred directories:
  • index.css
  • index.js
  • several .woff, .woff2, .svg (keep these in same folder as index.css or adapt the reference in the index.css)
  1. Add the references to the mentioned files and a div tag with id="meetings-widget" as shown in the following sample:

 <!doctype html>
   <html lang="en">

     <head>

       <link rel="stylesheet" href="static/css/index.css"> 

     </head>

     <body>

       <div id="meetings-widget" 
           data-token="[Add api token]" 
           data-destination="[Add destination]"></div>

       <script src='static/js/index.js'></script>

     </body>
   </html>  

  1. Fill in the API token and destination as value for the data-token and data-destination attribute

  2. Open the website in a browser to view the embedded widget

    Note: Please be aware that a website has to use https for the embedded widget to work correctly.

Screenshots

/IMAGES/before_call.png /IMAGES/call_no_participants_tab.png /IMAGES/call_participants.png

Further Useful Resources

LICENSE

Provided under Cisco Sample Code License, for details see LICENSE

CODE_OF_CONDUCT

Our code of conduct is available here

CONTRIBUTING

See our contributing guidelines here

DISCLAIMER:

Please note: This script is meant for demo purposes only. All tools/ scripts in this repo are released for use "AS IS" without any warranties of any kind, including, but not limited to their installation, use, or performance. Any use of these scripts and tools is at your own risk. There is no guarantee that they have been through thorough testing in a comparable environment and we are not responsible for any damage or data loss incurred with their use. You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.

gve_devnet_webex_meetings_widget's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.