ezuikit-flv 1.0.2-beta.2 → 1.0.2-beta.4
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/LICENSE +882 -0
- package/README.md +2 -2
- package/decoder.js +9 -6
- package/index.js +31 -7
- package/package.json +1 -1
- package/types/index.d.ts +11 -3
- package/types/player/hard-player/index.d.ts +14 -14
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ import EzuikitFlv from 'ezuikit-flv'
|
|
|
30
30
|
|
|
31
31
|
const player = new EzuikitFlv({
|
|
32
32
|
url: "play url", // https://play.com/9999.flv
|
|
33
|
-
|
|
33
|
+
id: "id", // support element id
|
|
34
34
|
decoder: "decoder.js", // 自定义解码库加载地址, 默认放置在服务器根目录下
|
|
35
35
|
})
|
|
36
36
|
|
|
@@ -47,7 +47,7 @@ player.play()
|
|
|
47
47
|
<script>
|
|
48
48
|
const player = new EzuikitFlv({
|
|
49
49
|
url: "play url", // https://play.com/9999.flv
|
|
50
|
-
|
|
50
|
+
id: "container-id", // support element id or element
|
|
51
51
|
decoder: "decoder.js", // 自定义解码库加载地址, 默认放置在服务器根目录下
|
|
52
52
|
})
|
|
53
53
|
|