Skip to content

liveswitch/liveswitch-html-with-embeded-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiveSwitch HTML with Embedded JavaScript Examples

This repository includes HTML with embedded JavaScript examples that demonstrates how to do the following:

  • Create an SFU connection to stream video and audio
  • Mute media
  • Share screen
  • Text chat
  • Send and receive files
  • Change devices
  • Broadcast

Tools You Need

Add an Application in LiveSwitch

Before you can run the app, you must add an Application in the LiveSwitch Console.

  1. Log into the LiveSwitch Console. If you don't have an account, contact us about trying out LiveSwitch.
  2. Click Applications > New.
  3. Enter a name for your Application.
  4. 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.

Run the App

  1. Check out this repository and update /MediaStreamingLogic.js with your own Application ID and Shared Secret.

  2. Install all the dependencies:

    npm install
    
  3. Install a lightweight HTTP server:

    npm install -g http-server
    
  4. Start a web server:

    http-server
    
    
  5. Navigate to http://127.0.0.1:8080/ and select an example page.

For a more detailed set up, visit LiveSwitch's documentation.

About

Examples of creating HTML pages with embedded JavaScript to stream media using LiveSwitch Web SDK.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published