ezuikit-flv 1.0.2-alpha.5 → 1.0.2-alpha.6
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 +83 -18
- package/decoder.js +0 -6
- package/decoder.wasm +0 -0
- package/index.js +0 -18
- package/types/audio/audioContextLoader.d.ts +0 -42
- package/types/audio/index.d.ts +0 -5
- package/types/constant/index.d.ts +0 -264
- package/types/control/index.d.ts +0 -4
- package/types/control/observer.d.ts +0 -2
- package/types/demux/commonLoader.d.ts +0 -19
- package/types/demux/flvLoader.d.ts +0 -15
- package/types/demux/index.d.ts +0 -5
- package/types/demux/m7sLoader.d.ts +0 -4
- package/types/flv-mse/flv.min.d.ts +0 -3
- package/types/index.d.ts +0 -292
- package/types/player/base-player.d.ts +0 -51
- package/types/player/commonLoader.d.ts +0 -16
- package/types/player/events.d.ts +0 -2
- package/types/player/hard-player/index.d.ts +0 -94
- package/types/player/hard-player/videoLoader.d.ts +0 -28
- package/types/player/index.d.ts +0 -7
- package/types/player/interface.d.ts +0 -100
- package/types/player/observer.d.ts +0 -2
- package/types/player/property.d.ts +0 -2
- package/types/player/soft-player/canvasLoader.d.ts +0 -27
- package/types/player/soft-player/index.d.ts +0 -91
- package/types/stream/fetchLoader.d.ts +0 -16
- package/types/stream/index.d.ts +0 -6
- package/types/stream/websocketLoader.d.ts +0 -18
- package/types/typedefs.d.ts +0 -138
- package/types/utils/debug.d.ts +0 -8
- package/types/utils/emitter.d.ts +0 -7
- package/types/utils/events.d.ts +0 -7
- package/types/utils/file-save.d.ts +0 -2
- package/types/utils/index.d.ts +0 -70
- package/types/utils/monitor.d.ts +0 -13
- package/types/utils/noSleep.d.ts +0 -12
- package/types/utils/parse-url.d.ts +0 -5
- package/types/utils/webgl.d.ts +0 -5
- package/types/worker/index.d.ts +0 -13
package/types/utils/index.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
export function noop(): void;
|
|
2
|
-
export function supportOffscreen($canvas: any): boolean;
|
|
3
|
-
export function supportOffscreenV2(): boolean;
|
|
4
|
-
export function createContextGL($canvas: any): any;
|
|
5
|
-
export function audioContextUnlock(context: any): void;
|
|
6
|
-
export function dataURLToFile(dataURL?: string): File;
|
|
7
|
-
export function downloadFile(file: any, fileName: any): void;
|
|
8
|
-
export function downloadImg(content: any, fileName: any): void;
|
|
9
|
-
export function checkFull(): boolean;
|
|
10
|
-
export function now(): number;
|
|
11
|
-
export function clamp(num: any, a: any, b: any): number;
|
|
12
|
-
export function setStyle(element: any, key: any, value: any): any;
|
|
13
|
-
export function getStyle(element: any, key: any, numberType?: boolean): string | number;
|
|
14
|
-
export function getNowTime(): number;
|
|
15
|
-
export function calculationRate(callback: any): (size: any) => void;
|
|
16
|
-
export function downloadRecord(blob: any, name: any, suffix: any): void;
|
|
17
|
-
export function isMobile(): boolean;
|
|
18
|
-
export function isAndroid(): boolean;
|
|
19
|
-
export function isIOS(): boolean;
|
|
20
|
-
export function parseTime(time: any, cFormat: any, ...args: any[]): any;
|
|
21
|
-
export function supportWCS(): boolean;
|
|
22
|
-
export function toNumber(value: any): any;
|
|
23
|
-
export function uuid16(): string;
|
|
24
|
-
export function throttle(callback: any, delay: any): (...args2: any[]) => void;
|
|
25
|
-
export function isDef(v: any): boolean;
|
|
26
|
-
export function formatVideoDecoderConfigure(avcC: any): {
|
|
27
|
-
codec: string;
|
|
28
|
-
description: any;
|
|
29
|
-
};
|
|
30
|
-
export function isFullScreen(): any;
|
|
31
|
-
export function bpsSize(value: any): string;
|
|
32
|
-
export function fpsStatus(fps: any): number;
|
|
33
|
-
export function createEmptyImageBitmap(width: any, height: any): Promise<ImageBitmap>;
|
|
34
|
-
export function supportMSE(): boolean;
|
|
35
|
-
export function supportMSEHevc(): boolean;
|
|
36
|
-
export function supportMediaStreamTrack(): boolean;
|
|
37
|
-
export function formatMp4VideoCodec(codec: any): string;
|
|
38
|
-
export function saveBlobToFile(fileName: any, blob: any): void;
|
|
39
|
-
export function isEmpty(value: any): boolean;
|
|
40
|
-
export function isBoolean(value: any): boolean;
|
|
41
|
-
export function isNotEmpty(value: any): boolean;
|
|
42
|
-
export function initPlayTimes(): {
|
|
43
|
-
playInitStart: string;
|
|
44
|
-
playStart: string;
|
|
45
|
-
streamStart: string;
|
|
46
|
-
streamResponse: string;
|
|
47
|
-
demuxStart: string;
|
|
48
|
-
decodeStart: string;
|
|
49
|
-
videoStart: string;
|
|
50
|
-
playTimestamp: string;
|
|
51
|
-
streamTimestamp: string;
|
|
52
|
-
streamResponseTimestamp: string;
|
|
53
|
-
demuxTimestamp: string;
|
|
54
|
-
decodeTimestamp: string;
|
|
55
|
-
videoTimestamp: string;
|
|
56
|
-
allTimestamp: string;
|
|
57
|
-
};
|
|
58
|
-
export function createWatermark(options: any): () => void;
|
|
59
|
-
export function formatTimeTips(time: any): string;
|
|
60
|
-
export function getTarget(e: any): any;
|
|
61
|
-
export function isWebglRenderSupport(width: any): boolean;
|
|
62
|
-
export function isGreenYUV(arrayBuffer: any): boolean;
|
|
63
|
-
export function getBrowser(): {
|
|
64
|
-
type: string;
|
|
65
|
-
version: number;
|
|
66
|
-
};
|
|
67
|
-
export function closeVideoFrame(videoFrame: any): void;
|
|
68
|
-
export function removeElement(element: any): boolean;
|
|
69
|
-
export const supportedWasm: boolean;
|
|
70
|
-
export const env: "__ENV__";
|
package/types/utils/monitor.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default Monitor;
|
|
2
|
-
/**
|
|
3
|
-
* /pages/viewpage.action?pageId=663566571
|
|
4
|
-
*/
|
|
5
|
-
declare class Monitor {
|
|
6
|
-
static initMonitor(ignoreMonitor: any): void;
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
* @param {1 | 2 | 3 | 50 | 51 | 100} type 1: 初始化 2: 播放成功 3: 播放异常 50: api 调用 51:错误回调 100: 接口上报
|
|
10
|
-
* @param {ReportData} logInfo
|
|
11
|
-
*/
|
|
12
|
-
static report(action: any, logInfo?: ReportData): void;
|
|
13
|
-
}
|
package/types/utils/noSleep.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default class NoSleep {
|
|
2
|
-
constructor(player: any);
|
|
3
|
-
player: any;
|
|
4
|
-
enabled: boolean;
|
|
5
|
-
_wakeLock: WakeLockSentinel;
|
|
6
|
-
noSleepTimer: number;
|
|
7
|
-
noSleepVideo: HTMLVideoElement;
|
|
8
|
-
_addSourceToVideo(element: any, type: any, dataURI: any): void;
|
|
9
|
-
get isEnabled(): boolean;
|
|
10
|
-
enable(): Promise<void>;
|
|
11
|
-
disable(): void;
|
|
12
|
-
}
|
package/types/utils/webgl.d.ts
DELETED
package/types/worker/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default class DecoderWorker {
|
|
2
|
-
constructor(player: any);
|
|
3
|
-
player: any;
|
|
4
|
-
decoderWorker: Worker;
|
|
5
|
-
destroy(): void;
|
|
6
|
-
_initDecoderWorker(): void;
|
|
7
|
-
_initWork(): void;
|
|
8
|
-
decodeVideo(arrayBuffer: any, ts: any, isIFrame: any): void;
|
|
9
|
-
decodeAudio(arrayBuffer: any, ts: any): void;
|
|
10
|
-
_decodeAudio(arrayBuffer: any, ts: any): void;
|
|
11
|
-
_decodeAudioNoDelay(arrayBuffer: any, ts: any): void;
|
|
12
|
-
updateWorkConfig(config: any): void;
|
|
13
|
-
}
|