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:
- Visual Studio Code
- Ubuntu 22.04
- Node 16.14.2
https://developer.webex.com/docs/sdks/browser
-
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:
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:
npm run build
-
To launch the webserver, use the "Launch" dropdown option from the Run and Debug tab.
Or, from the terminal:
npm run launch
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!
- There is a workaround in webpack/webpack.config.js for an issue Webpack has with the
fs
module that's a dependency ofwebex
, but not actually needed in browser usage:
...
node: {
fs: 'empty'
}
...
- See
package.json
for thebrowserlists
array of target browsers/versions