ezuikit-flv 1.0.3-alpha.3 → 1.0.3-alpha.5
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
package/types/index.d.ts
CHANGED
|
@@ -79,7 +79,6 @@ declare class EzuikitFlv extends EventEmitter<string | symbol, any> {
|
|
|
79
79
|
urlInfo: {};
|
|
80
80
|
/** @type {Services} */
|
|
81
81
|
services: Services;
|
|
82
|
-
seekTime: number;
|
|
83
82
|
_opt: FlvOptions;
|
|
84
83
|
$container: any;
|
|
85
84
|
_loadingTimeoutReplayTimes: number;
|
|
@@ -100,6 +99,7 @@ declare class EzuikitFlv extends EventEmitter<string | symbol, any> {
|
|
|
100
99
|
* @private
|
|
101
100
|
*/
|
|
102
101
|
private _httpServices;
|
|
102
|
+
_currentPlayDate: string;
|
|
103
103
|
/**
|
|
104
104
|
* @description 自定义设置清晰度列表, 仅对萤石设备预览生效, 需要第一次 definitionListChange 事件监听后调用, 不然会被接口覆盖
|
|
105
105
|
* @param {VideoLevel} list
|
|
@@ -136,11 +136,6 @@ declare class EzuikitFlv extends EventEmitter<string | symbol, any> {
|
|
|
136
136
|
* @returns {Promise<number>} // 0 成功 1 失败
|
|
137
137
|
*/
|
|
138
138
|
private _getNewPlaybackPlayUrl;
|
|
139
|
-
/**
|
|
140
|
-
* @description 跳转到指定时间 仅对萤石设备回放生效
|
|
141
|
-
* @param {stirng} time seekTime YYYYMMDDhhmmss
|
|
142
|
-
*/
|
|
143
|
-
seek(seekTime: any): Promise<void>;
|
|
144
139
|
/**
|
|
145
140
|
* @description 是否是萤石开放平台回放
|
|
146
141
|
* @param {string} url
|
package/types/utils/debug.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @description 格式化 YYYYMMDDhhmmss 为 Date
|
|
3
3
|
* @param {string} dateTimeString YYYYMMDDhhmmss
|
|
4
|
+
* @param {string} splice 分割符
|
|
4
5
|
* @returns {Date}
|
|
5
6
|
*/
|
|
6
|
-
export function formatStringDateToDate(dateTimeString: string): Date;
|
|
7
|
+
export function formatStringDateToDate(dateTimeString: string, splice?: string): Date;
|
|
8
|
+
/**
|
|
9
|
+
* @description 格式化 YYYYMMDDhhmmss 为 Date
|
|
10
|
+
* @param {string} dateTimeString YYYYMMDDhhmmss
|
|
11
|
+
* @param {string} splice 分割符
|
|
12
|
+
* @returns {Date}
|
|
13
|
+
*/
|
|
14
|
+
export function formatStringDateToString(dateTimeString: string, splice?: string): Date;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export default class WebsocketLoader extends Emitter {
|
|
2
|
-
constructor(player: any);
|
|
3
|
-
player: any;
|
|
4
|
-
socket: WebSocket;
|
|
5
|
-
socketStatus: string;
|
|
6
|
-
wsUrl: any;
|
|
7
|
-
streamRate: (size: any) => void;
|
|
8
|
-
destroy(): void;
|
|
9
|
-
_createWebSocket(): void;
|
|
10
|
-
_handleMessage(message: any): void;
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @param url
|
|
14
|
-
* @param options
|
|
15
|
-
*/
|
|
16
|
-
fetchStream(url: any, options: any): void;
|
|
17
|
-
}
|
|
18
|
-
import Emitter from '../utils/emitter';
|