Explorar o código

修改源码播放插件地址

1
mo %!s(int64=2) %!d(string=hai) anos
pai
achega
f8169ea85b
Modificáronse 2 ficheiros con 13 adicións e 0 borrados
  1. 1 0
      package.json
  2. 12 0
      patches/@core-player+playcore-hls+0.1.1.patch

+ 1 - 0
package.json

@@ -95,6 +95,7 @@
     "less": "^3.10.3",
     "less-loader": "^5.0.0",
     "mockjs": "1.0.1-beta3",
+    "patch-package": "^6.5.1",
     "runjs": "^4.3.2",
     "sass-loader": "^7.1.0",
     "script-ext-html-webpack-plugin": "2.1.3",

+ 12 - 0
patches/@core-player+playcore-hls+0.1.1.patch

@@ -0,0 +1,12 @@
+diff --git a/node_modules/@core-player/playcore-hls/src/constants.js b/node_modules/@core-player/playcore-hls/src/constants.js
+index 1606f11..6643f5e 100644
+--- a/node_modules/@core-player/playcore-hls/src/constants.js
++++ b/node_modules/@core-player/playcore-hls/src/constants.js
+@@ -1,4 +1,6 @@
+-export const HLS_SDK = 'https://cdn.jsdelivr.net/npm/hls.js@latest'
++// export const HLS_SDK = 'https://cdn.jsdelivr.net/npm/hls.js@latest'
++export const HLS_SDK = 'https://web.sdk.qcloud.com/player/tcplayer/release/v4.2.1/libs/hls.min.0.13.2m.js'
++
+ 
+ export const LOAD_SDK_TIMEOUT = 60 * 1000
+