فهرست منبع

修复其他安卓浏览器。

wilhelm wong 2 ماه پیش
والد
کامیت
981a145400
2فایلهای تغییر یافته به همراه8 افزوده شده و 6 حذف شده
  1. 1 1
      dev-dist/sw.js
  2. 7 5
      src/components/VideoProcessor.vue

+ 1 - 1
dev-dist/sw.js

@@ -79,7 +79,7 @@ define(['./workbox-f2cb1a81'], (function (workbox) { 'use strict';
    */
   workbox.precacheAndRoute([{
     "url": "index.html",
-    "revision": "0.o0r0lekt7ho"
+    "revision": "0.qsae4lcskhg"
   }], {});
   workbox.cleanupOutdatedCaches();
   workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

+ 7 - 5
src/components/VideoProcessor.vue

@@ -386,11 +386,13 @@ const processVideo = async (url: string): Promise<void> => {
         //       return;
         //     }
         //   }
-        // } 
-        else {
-          // 其他浏览器使用 Blob URL
+        // }
+        
+        // 其他所有浏览器(Chrome、Firefox、Edge、UC等)使用 Blob URL
+        if (!isIOSQuarkBrowser()) {
           const blob = new Blob([playlist], { type: mimeType });
           processedVideoUrl.value = URL.createObjectURL(blob);
+          console.log("其他浏览器使用 Blob URL");
         }
       } else {
         processedVideoUrl.value = url;
@@ -540,11 +542,11 @@ const initVideoPlayer = async (): Promise<void> => {
     return;
   }
 
-  // UC 浏览器特殊处理
+  // UC 浏览器特殊处理 - UC通常支持标准的HLS播放
   if (isUCBrowser()) {
     console.log("检测到 UC 浏览器");
     
-    // UC浏览器优先使用HLS.js
+    // UC浏览器优先使用HLS.js,这样可以使用自定义控制条
     if (Hls.isSupported()) {
       console.log("UC浏览器使用HLS.js播放器");
       initHlsPlayer();