comein-player-web 0.1.0 → 0.1.3
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 +3 -1
- package/dist/fonts/element-icons.ttf +0 -0
- package/dist/fonts/element-icons.woff +0 -0
- package/dist/index.css +2 -2
- package/dist/index.d.ts +3 -4
- package/dist/index.esm.js +248 -283
- package/dist/index.umd.js +15 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ npm install comein-player-web
|
|
|
14
14
|
import { createWebPlayer } from 'comein-player-web';
|
|
15
15
|
import 'comein-player-web/dist/index.css';
|
|
16
16
|
|
|
17
|
-
const player = await createWebPlayer('#comein-player', {
|
|
17
|
+
const player = await createWebPlayer('#comein-player-web', {
|
|
18
18
|
roadshowId: 'ROADSHOW_ID',
|
|
19
19
|
userInfo: 'URL 编码后的 userInfo',
|
|
20
20
|
page: 'room',
|
|
@@ -24,3 +24,5 @@ const player = await createWebPlayer('#comein-player', {
|
|
|
24
24
|
|
|
25
25
|
player.destroy();
|
|
26
26
|
```
|
|
27
|
+
|
|
28
|
+
`roadshowId`、`userInfo`、`page` 为必填参数。`userInfo` 只从初始化参数读取,SDK 不会从页面 URL 或浏览器缓存中自动补取。
|
|
Binary file
|
|
Binary file
|