comein-player-web 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # comein-player-web
2
+
3
+ 面向中金侧 Web 页面接入的路演播放器 SDK。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ npm install comein-player-web
9
+ ```
10
+
11
+ ## 使用
12
+
13
+ ```js
14
+ import { createWebPlayer } from 'comein-player-web';
15
+ import 'comein-player-web/dist/index.css';
16
+
17
+ const player = await createWebPlayer('#comein-player', {
18
+ roadshowId: 'ROADSHOW_ID',
19
+ userInfo: 'URL 编码后的 userInfo',
20
+ page: 'room',
21
+ locale: 'zh-cn',
22
+ isBuild: false,
23
+ });
24
+
25
+ player.destroy();
26
+ ```