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/dist/hls.js +14 -8
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +6 -616
- package/dist/hls.light.js.map +1 -1
- package/dist/hls.light.min.js +1 -1
- package/dist/hls.light.min.js.map +1 -1
- package/dist/hls.light.mjs +7 -608
- package/dist/hls.light.mjs.map +1 -1
- package/dist/hls.min.js +1 -1
- package/dist/hls.min.js.map +1 -1
- package/dist/hls.mjs +14 -8
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/dist/hls.worker.js.map +1 -1
- package/package.json +1 -1
- package/src/demux/tsdemuxer.ts +14 -6
package/package.json
CHANGED
package/src/demux/tsdemuxer.ts
CHANGED
@@ -295,7 +295,9 @@ class TSDemuxer implements Demuxer {
|
|
295
295
|
this.videoParser = new AvcVideoParser();
|
296
296
|
break;
|
297
297
|
case 'hevc':
|
298
|
-
|
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
|
-
|
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 (
|
901
|
-
result.videoPid
|
902
|
-
|
903
|
-
|
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
|
|