Updated on 2024-11-15 GMT+08:00
Preparations
Prerequisites
The SDK package has been downloaded.
Environment Requirements
- You are advised to install Microsoft Visual Studio Code 1.43.2 or a later version for compilation.
- If Node.js is used for development on the client, you are advised to install Node.js 14.19.1 or later.
- For details about the supported browsers, see Browser Adaptation.
- If you want to develop your client using TypeScript, the TypeScript version must be 3.8.3 or later.
SDK Integration
- Download the SDK to the local PC. You are advised to save the SDK package to a directory named sdk of your project.
- Introduce HWLLSPlayer to the project code.
- To use the <script> mode to introduce the SDK, access HWLLSPlayer to obtain the exported module:
<script src='./sdk/HWLLSPlayer.js'> console.log(HWLLSPlayer.getVersion()) </script>
- To introduce the SDK in npm modularization mode, install the HWLLSPlayer module and introduce HWLLSPlayer to the development dependency of package.json, for example, "HWLLSPlayer": "./sdk/HWLLS_SDK_Web_*.*.*.***.tar.gz". Run the npm install command on the terminal (replace the version number with the actual one), and then run the following commands:
import HWLLSPlayer from 'HWLLSPlayer' console.log(HWLLSPlayer.getVersion())
- To use the <script> mode to introduce the SDK, access HWLLSPlayer to obtain the exported module:
Parent topic: Web SDK
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.