This repository includes a LiveSwitch Vue project. It demonstrates how to create an SFU connection to stream video and audio using LiveSwitch Web SDK.
Vue CLI 4.2.2+
Before you can run the app, you must add an Application in the LiveSwitch Console.
- Log into the LiveSwitch Console. If you don't have an account, contact us about trying out LiveSwitch.
- Click Applications > New.
- Enter a name for your Application.
- Click the Application you just created to open the Application Settings page. You can find your Application ID and Shared Secret there. This information is needed for generating your authorization token.
-
Check out this repository and update
/liveswitch_config.json
with your own Application ID and Shared Secret. -
Install all the dependencies:
npm install
-
Run the app:
npm run serve
-
Navigate to
http://localhost:8080/
. You should see video streaming on the web page. To emulate a video conference with multiple participants, open the page in multiple browser windows or tabs.
For a more detailed set up, visit LiveSwitch's documentation.