Updated on 2026-01-16 GMT+08:00

Installing SDK

To install an OBS BrowserJS SDK, see Table 1.

Table 1 Methods of installing an OBS BrowserJS SDK

No.

Method

1

Manually downloading and installing the source code development package

Manually Downloading and Installing the Source Code Development Package

The following uses OBS BrowserJS SDK of the latest version as an example:

  1. Download the OBS BrowserJS SDK development package.
  2. Decompress the development package to obtain folder examples (sample code), folder dist (SDK libraries), and file README.txt (feature description file of SDK versions).
  3. Import the SDK libraries to a browser's code.

    <script src="./esdk-obs-browserjs-without-polyfill-x.x.x.min.js"></script>

  • The SDK is integrated with axios as the HTTP library that depends on the promise feature.
  • The dist folder contains two versions of SDK libraries. If the browser you use does not support the promise feature, such as Internet Explorer 10 or 11, import library esdk-obs-browserjs-x.x.x.min.js.