hls.js 1.5.5-0.canary.9977 → 1.5.5-0.canary.9978

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -130,5 +130,5 @@
130
130
  "url-toolkit": "2.2.5",
131
131
  "wrangler": "3.26.0"
132
132
  },
133
- "version": "1.5.5-0.canary.9977"
133
+ "version": "1.5.5-0.canary.9978"
134
134
  }
@@ -295,7 +295,9 @@ class TSDemuxer implements Demuxer {
295
295
  this.videoParser = new AvcVideoParser();
296
296
  break;
297
297
  case 'hevc':
298
- this.videoParser = new HevcVideoParser();
298
+ if (__USE_M2TS_ADVANCED_CODECS__) {
299
+ this.videoParser = new HevcVideoParser();
300
+ }
299
301
  break;
300
302
  }
301
303
  }
@@ -485,7 +487,9 @@ class TSDemuxer implements Demuxer {
485
487
  this.videoParser = new AvcVideoParser();
486
488
  break;
487
489
  case 'hevc':
488
- this.videoParser = new HevcVideoParser();
490
+ if (__USE_M2TS_ADVANCED_CODECS__) {
491
+ this.videoParser = new HevcVideoParser();
492
+ }
489
493
  break;
490
494
  }
491
495
  }
@@ -897,10 +901,14 @@ function parsePMT(
897
901
  break;
898
902
 
899
903
  case 0x24: // ITU-T Rec. H.265 and ISO/IEC 23008-2 (HEVC)
900
- if (result.videoPid === -1) {
901
- result.videoPid = pid;
902
- result.segmentVideoCodec = 'hevc';
903
- logger.log('HEVC in M2TS found');
904
+ if (__USE_M2TS_ADVANCED_CODECS__) {
905
+ if (result.videoPid === -1) {
906
+ result.videoPid = pid;
907
+ result.segmentVideoCodec = 'hevc';
908
+ logger.log('HEVC in M2TS found');
909
+ }
910
+ } else {
911
+ logger.warn('Unsupported HEVC in M2TS found');
904
912
  }
905
913
  break;
906
914