Integrate the SDK

1.1 Support browser

SDK支持 多种浏览器。

1.2 Download the SDK

Download the SDK, including:

libs
├── star_rtc_video.min.js
└── star_rtc_lib.min.js

1.3 Integrate the SDK

1.3.1 Importing the SDK files

Create an html page and copy the downloaded SDK file to the same path
Then add the following code to the html page.
If you only use the im function, you only need to include the file star_rtc_lib.min.js.

<script type="text/javascript" src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script type="text/javascript" src="star_rtc_video.min.js"></script>
<script type="text/javascript" src="star_rtc_lib.min.js"></script>