webex-meeting-types-samples
Overview
Demonstrates 'webpack' bundling of the Webex JavaScript SDK and Momentum-UI style assets for use in browser voice/video meeting application integrations. The resulting page/bundle is served via a simple light web server as a single-page app.
Includes examples of accessing/joining various meeting types, including:
- 1:1 Webex cloud calling
- Space multi-user cloud calling
- Scheduling and joining Webex scheduling meetings
- PMR meetings
- Webex Calling/PSTN dialing
- SIP calling/meetings
Bundling framework demonstrated:
This project was built/tested using:
https://developer.webex.com/docs/sdks/browser
Getting started
-
From a terminal, clone this repo using git
:
git clone https://github.com/CiscoDevNet/webex-meeting-types-samples.git
-
Install dependencies:
cd webex-meeting-types-samples
npm install
-
Open the project in VS Code:
-
In VS Code from the Run and Debug tab, select "Build" from the dropdown menu and click the green run button.
Or, from the terminal:
-
To launch the webserver, use the "Launch" dropdown option from the Run and Debug tab.
Or, from the terminal:
This should open the target page in your default browser. If not, browse to https://localhost:3000
-
You can test the sample by logging into developer.webex.com and grabbing a Personal Access Token from the Getting Started page, then dialing another Webex Teams user via their Webex Id/email
Note: Don't connect and dial based on the same user - that won't work!
Hints
- There is a workaround in webpack/webpack.config.js for an issue Webpack has with the
fs
module that's a dependency of webex
, but not actually needed in browser usage:
...
node: {
fs: 'empty'
}
...
- See
package.json
for the browserlists
array of target browsers/versions