ezuikit-flv 1.0.2-alpha.1 → 1.0.2-alpha.2
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/index.js +2 -2
- package/package.json +3 -7
- package/types/index.d.ts +6 -0
- package/types/typedefs.d.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ezuikit-flv",
|
|
3
|
-
"version": "1.0.2-alpha.
|
|
3
|
+
"version": "1.0.2-alpha.2",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./types",
|
|
6
6
|
"author": "Ezviz-OpenBiz",
|
|
@@ -12,9 +12,5 @@
|
|
|
12
12
|
"package.json",
|
|
13
13
|
"README.md",
|
|
14
14
|
"types"
|
|
15
|
-
]
|
|
16
|
-
|
|
17
|
-
"access": "public",
|
|
18
|
-
"registry": "https://registry.npmjs.org/"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
15
|
+
]
|
|
16
|
+
}
|
package/types/index.d.ts
CHANGED
|
@@ -21,6 +21,12 @@ declare class EzuikitFlv extends Emitter {
|
|
|
21
21
|
playError: string;
|
|
22
22
|
fetchError: string;
|
|
23
23
|
websocketError: string;
|
|
24
|
+
/**
|
|
25
|
+
* @description 关闭声音
|
|
26
|
+
* @returns {void}
|
|
27
|
+
* @example
|
|
28
|
+
* flv.closeSound()
|
|
29
|
+
*/
|
|
24
30
|
webcodecsH265NotSupport: string;
|
|
25
31
|
webcodecsDecodeError: string;
|
|
26
32
|
webcodecsWidthOrHeightChange: string;
|
package/types/typedefs.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @typedef FlvOptions
|
|
5
5
|
*
|
|
6
6
|
* @property {string | HTMLElement} container 渲染容器
|
|
7
|
+
* @property {string } id 渲染容器id 优先级比 container 高
|
|
7
8
|
* @property {number=} videoBuffer 设置最大缓冲时长,单位秒,播放器会自动消除延迟。
|
|
8
9
|
* @property {string=} decoder 解码库worker地址 默认 `decoder.js`, wasm 文件要和decoder在同一个文件夹中
|
|
9
10
|
* @property {boolean=} hasAudio 是否有音频,如果设置false,则不对音频数据解码,提升性能。
|
|
@@ -39,6 +40,10 @@ export type FlvOptions = {
|
|
|
39
40
|
* 渲染容器
|
|
40
41
|
*/
|
|
41
42
|
container: string | HTMLElement;
|
|
43
|
+
/**
|
|
44
|
+
* 渲染容器id 优先级比 container 高
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
42
47
|
/**
|
|
43
48
|
* 设置最大缓冲时长,单位秒,播放器会自动消除延迟。
|
|
44
49
|
*/
|