瀏覽代碼

直播上传视频进行拼接转换

yuhongqi 2 天之前
父節點
當前提交
1db8b6148e
共有 4 個文件被更改,包括 4 次插入2 次删除
  1. 1 1
      .env.development
  2. 1 1
      .env.production
  3. 1 0
      src/components/LiveVideoUpload/index.vue
  4. 1 0
      src/components/VideoUpload/index.vue

+ 1 - 1
.env.development

@@ -12,7 +12,7 @@ VUE_APP_COS_BUCKET = fs-1319721001
 # 存储桶配置
 VUE_APP_COS_REGION = ap-chongqing
 # 线路一地址
-VUE_APP_VIDEO_LINE_1 = https://cos.his.cdwjyyh.com
+VUE_APP_VIDEO_LINE_1 = https://fs-1319721001.cos.ap-chongqing.myqcloud.com
 # 线路二地址
 VUE_APP_VIDEO_LINE_2 = https://zkzhobs.ylrztop.com
 

+ 1 - 1
.env.production

@@ -10,7 +10,7 @@ VUE_APP_COS_BUCKET = fs-1319721001
 # 存储桶配置
 VUE_APP_COS_REGION = ap-chongqing
 # 线路一地址
-VUE_APP_VIDEO_LINE_1 = https://cos.his.cdwjyyh.com
+VUE_APP_VIDEO_LINE_1 = https://fs-1319721001.cos.ap-chongqing.myqcloud.com
 # 线路二地址
 VUE_APP_VIDEO_LINE_2 = https://zkzhobs.ylrztop.com
 

+ 1 - 0
src/components/LiveVideoUpload/index.vue

@@ -218,6 +218,7 @@ export default {
         } else {
           line_1 = `${process.env.VUE_APP_VIDEO_LINE_1}${data.urlPath}`;
         }
+        line_1 = line_1.replace(/\.mp4$/, '.m3u8');
 
         let urlPathWithoutFirstSlash = data.urlPath.substring(1);
         this.$emit("update:fileKey", urlPathWithoutFirstSlash);

+ 1 - 0
src/components/VideoUpload/index.vue

@@ -308,6 +308,7 @@ export default {
         }else {
           line_1 = `${process.env.VUE_APP_VIDEO_LINE_1}${data.urlPath}`;
         }
+        line_1 = line_1.replace(/\.mp4$/, '.m3u8');
 
         let urlPathWithoutFirstSlash = data.urlPath.substring(1);
         this.$emit("update:fileKey", urlPathWithoutFirstSlash);