@core-player+playcore-hls+0.1.1.patch 1.4 KB

123456789101112131415161718192021222324252627
  1. diff --git a/node_modules/@core-player/playcore-hls/dist/playcore-hls.common.js b/node_modules/@core-player/playcore-hls/dist/playcore-hls.common.js
  2. index 55249ff..2d82872 100644
  3. --- a/node_modules/@core-player/playcore-hls/dist/playcore-hls.common.js
  4. +++ b/node_modules/@core-player/playcore-hls/dist/playcore-hls.common.js
  5. @@ -8840,7 +8840,8 @@ const isChrome = /chrome/i.test(ua);
  6. const isWechat = /MicroMessenger/i.test(ua);
  7. const isFirefox = /firefox/i.test(ua);
  8. // CONCATENATED MODULE: ./src/constants.js
  9. -const HLS_SDK = 'https://cdn.jsdelivr.net/npm/hls.js@latest';
  10. +// const HLS_SDK = 'https://cdn.jsdelivr.net/npm/hls.js@latest';
  11. +const HLS_SDK = 'https://web.sdk.qcloud.com/player/tcplayer/release/v4.2.1/libs/hls.min.0.13.2m.js';
  12. const LOAD_SDK_TIMEOUT = 60 * 1000;
  13. const DEFAULT_HLS_RESOLUTION = 1080;
  14. const HLS_DEFAULT_CONFIG = {
  15. diff --git a/node_modules/@core-player/playcore-hls/src/constants.js b/node_modules/@core-player/playcore-hls/src/constants.js
  16. index 1606f11..6643f5e 100644
  17. --- a/node_modules/@core-player/playcore-hls/src/constants.js
  18. +++ b/node_modules/@core-player/playcore-hls/src/constants.js
  19. @@ -1,4 +1,6 @@
  20. -export const HLS_SDK = 'https://cdn.jsdelivr.net/npm/hls.js@latest'
  21. +// export const HLS_SDK = 'https://cdn.jsdelivr.net/npm/hls.js@latest'
  22. +export const HLS_SDK = 'https://web.sdk.qcloud.com/player/tcplayer/release/v4.2.1/libs/hls.min.0.13.2m.js'
  23. +
  24. export const LOAD_SDK_TIMEOUT = 60 * 1000