ezuikit-flv 2.0.2 → 2.0.3-alpha.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezuikit-flv",
3
- "version": "2.0.2",
3
+ "version": "2.0.3-alpha.1",
4
4
  "main": "./index.js",
5
5
  "types": "./types",
6
6
  "author": "Ezviz-OpenBiz",
@@ -14,16 +14,7 @@
14
14
  "types",
15
15
  "style.css"
16
16
  ],
17
- "dependencies": {
18
- "@ezuikit/utils-collect": "0.1.0-beta.1",
19
- "@ezuikit/utils-logger": "1.0.1",
20
- "browser-tool": "1.0.5",
21
- "eventemitter3": "^5.0.1",
22
- "recordrtc": "5.6.2",
23
- "screenfull": "5.1.0",
24
- "deepmerge": "^4.3.1",
25
- "js-md5": "0.8.3"
26
- },
17
+ "dependencies": {},
27
18
  "bugs": {
28
19
  "url": "https://github.com/Ezviz-OpenBiz/EZUIKit-flv/issues"
29
20
  },
@@ -32,4 +23,4 @@
32
23
  "access": "public",
33
24
  "registry": "https://registry.npmjs.org/"
34
25
  }
35
- }
26
+ }
package/types/index.d.ts CHANGED
@@ -109,13 +109,7 @@ declare class EzuikitFlv extends Theme {
109
109
  changeDefinition: string;
110
110
  changeSpeed: string;
111
111
  control: {
112
- play: string; /**
113
- * @description 初始化播放
114
- * @private
115
- * @param {string | HTMLElement} $container
116
- * @param {FlvOptions} options
117
- * @return {void}
118
- */
112
+ play: string;
119
113
  capturePicture: string;
120
114
  volumechange: string;
121
115
  volumePanelOpenChange: string;
@@ -188,6 +182,7 @@ declare class EzuikitFlv extends Theme {
188
182
  urlInfo: {};
189
183
  /** @type {Services} */
190
184
  services: Services;
185
+ destoryed: boolean;
191
186
  /** @private */
192
187
  private _loadingTimeoutDelayTimer;
193
188
  _heartTimeoutDelayTimer: any;
@@ -29,6 +29,9 @@ export type TFlvOptions = {
29
29
  *
30
30
  */
31
31
  themeData?: IThemeData;
32
+ /** 跨域请求头 */
33
+ referrerPolicy?: string;
34
+ isEzviz?: boolean;
32
35
  };
33
36
  export type RequiredFlvOptions = Required<TFlvOptions> & {
34
37
  url: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ *
3
+ * @param {string} url 播放地址
4
+ * @private
5
+ * @returns
6
+ */
7
+ export function _addVc3(url: string, isEzviz: any): string;