Commit f9cdfa3 1 parent b1d4f5a commit f9cdfa3 Copy full SHA for f9cdfa3
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
* @Author: web.王晓冬
3
3
* @Date: 2020-11-03 16:29:47
4
- * @LastEditors: web.王晓冬
5
- * @LastEditTime: 2021-09-01 12:03:22
4
+ * @LastEditors: iTab.link
5
+ * @LastEditTime: 2021-11-22 17:06:18
6
6
* @Description: file content
7
7
*/
8
8
@@ -259,6 +259,7 @@ import {
259
259
isMobile ,
260
260
firstUpperCase ,
261
261
} from " ../utils/util" ;
262
+ const Hls = new Hls2 ({ fragLoadingTimeOut: 2000 });
262
263
import { videoEmits , defineProps } from " ./plugins/index" ;
263
264
const props = defineProps (defineProps ); // props
264
265
const emits = defineEmits ([
@@ -536,7 +537,6 @@ const init = (): void => {
536
537
}
537
538
// // 使用hls解码
538
539
else if (Hls2 .isSupported ()) {
539
- const Hls = new Hls2 ({ fragLoadingTimeOut: 2000 });
540
540
Hls .detachMedia (); // 解除绑定
541
541
Hls .attachMedia (state .dVideo );
542
542
Hls .on (Hls2 .Events .MEDIA_ATTACHED , () => {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue3-video-play" ,
3
- "version" : " 1.3.1-beta.5 " ,
3
+ "version" : " 1.3.1-beta.6 " ,
4
4
"description" : " hls.js player component for Vue3" ,
5
5
"files" : [
6
6
" dist" ,
You can’t perform that action at this time.
0 commit comments