@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.
@@ -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" | "m3u8";
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 ? 'm3u8' : 'native';
113
+ return url.indexOf('.flv') > -1 ? 'flv' : url.indexOf('.m3u8') > -1 ? 'hls' : 'native';
114
114
  }
115
115
  export function timeStamp(second) {
116
116
  // 转换为式分秒
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "@cloud-app-dev/vidc",
4
4
  "description": "Video Image Data Componennts",
5
- "version": "3.0.33",
5
+ "version": "3.0.34",
6
6
  "scripts": {
7
7
  "start": "dumi dev",
8
8
  "docs:build": "dumi build",