Start a JavaScript Project
If you are starting a JavaScript project, create a new project in the IDE of your choice, whether that's WebStorm or Notepad. There are no optional dependencies to include with JavaScript, as all hardware and media codec capabilities are provided by the browser.
Installation
To install the web SDK, do one of the following:
If you have node.js and npm installed, install the LiveSwitch Client SDK:
npm install fm.liveswitch
Download the web SDK directly and copy the core library file
fm.liveswitch.js
to your project directory.
Usage
Use a Script Tag
You can include the library directly in the HTML using a script tag:
<script src="fm.liveswitch.js"></script>
Import to Angular, Vue, or React
If you are using a framework such as Angular, Vue, or React to build your app, just import the library to your project:
import <classname> from `fm.liveswitch`
For more information on how to set a LiveSwitch project on Vue, Angular, and React, click the links below: