@cloud-app-dev/vidc 3.0.33 → 3.0.34
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/es/Player/util.d.ts +1 -1
- package/es/Player/util.js +1 -1
- package/package.json +1 -1
package/es/Player/util.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare const playUnload: (video: HTMLVideoElement, flv?: Flvjs.Player, h
|
|
|
20
20
|
* 获取播放文件类型
|
|
21
21
|
* @param {*} url
|
|
22
22
|
*/
|
|
23
|
-
export declare function getVideoType(url: string): "flv" | "native" | "
|
|
23
|
+
export declare function getVideoType(url: string): "flv" | "native" | "hls";
|
|
24
24
|
export declare function timeStamp(second: number): string;
|
|
25
25
|
export declare function getRandom(): string;
|
|
26
26
|
export declare function tryCatch(fn: () => void | Promise<any>): Promise<void>;
|
package/es/Player/util.js
CHANGED
|
@@ -110,7 +110,7 @@ export function getVideoType(url) {
|
|
|
110
110
|
return 'native';
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
return url.indexOf('.flv') > -1 ? 'flv' : url.indexOf('.m3u8') > -1 ? '
|
|
113
|
+
return url.indexOf('.flv') > -1 ? 'flv' : url.indexOf('.m3u8') > -1 ? 'hls' : 'native';
|
|
114
114
|
}
|
|
115
115
|
export function timeStamp(second) {
|
|
116
116
|
// 转换为式分秒
|