hls.js 1.5.2-0.canary.9969 → 1.5.2-0.canary.9971
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/README.md +1 -0
- package/dist/hls-demo.js +5 -0
- package/dist/hls-demo.js.map +1 -1
- package/dist/hls.js +952 -232
- package/dist/hls.js.d.ts +7 -3
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +952 -233
- 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 +921 -211
- 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 +927 -216
- 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/controller/audio-stream-controller.ts +4 -2
- package/src/controller/base-stream-controller.ts +9 -0
- package/src/controller/buffer-controller.ts +1 -0
- package/src/controller/stream-controller.ts +1 -1
- package/src/demux/tsdemuxer.ts +51 -20
- package/src/demux/video/avc-video-parser.ts +208 -119
- package/src/demux/video/base-video-parser.ts +134 -2
- package/src/demux/video/exp-golomb.ts +0 -208
- package/src/demux/video/hevc-video-parser.ts +746 -0
- package/src/hls.ts +9 -14
- package/src/remux/mp4-generator.ts +196 -1
- package/src/remux/mp4-remuxer.ts +3 -3
- package/src/types/component-api.ts +2 -0
- package/src/types/demuxer.ts +2 -0
package/dist/hls.js.d.ts
CHANGED
@@ -246,6 +246,7 @@ export declare class BaseStreamController extends TaskLoop implements NetworkCom
|
|
246
246
|
protected startFragRequested: boolean;
|
247
247
|
protected decrypter: Decrypter;
|
248
248
|
protected initPTS: RationalTimestamp[];
|
249
|
+
protected buffering: boolean;
|
249
250
|
constructor(hls: Hls, fragmentTracker: FragmentTracker, keyLoader: KeyLoader, logPrefix: string, playlistType: PlaylistLevelType);
|
250
251
|
protected registerListeners(): void;
|
251
252
|
protected unregisterListeners(): void;
|
@@ -253,6 +254,8 @@ export declare class BaseStreamController extends TaskLoop implements NetworkCom
|
|
253
254
|
protected onTickEnd(): void;
|
254
255
|
startLoad(startPosition: number): void;
|
255
256
|
stopLoad(): void;
|
257
|
+
pauseBuffering(): void;
|
258
|
+
resumeBuffering(): void;
|
256
259
|
protected _streamEnded(bufferInfo: BufferInfo, levelDetails: LevelDetails): boolean;
|
257
260
|
protected getLevelDetails(): LevelDetails | undefined;
|
258
261
|
protected onMediaAttached(event: Events.MEDIA_ATTACHED, data: MediaAttachedData): void;
|
@@ -1318,7 +1321,6 @@ declare class Hls implements HlsEventEmitter {
|
|
1318
1321
|
readonly logger: ILogger;
|
1319
1322
|
private coreComponents;
|
1320
1323
|
private networkControllers;
|
1321
|
-
private started;
|
1322
1324
|
private _emitter;
|
1323
1325
|
private _autoLevelCapping;
|
1324
1326
|
private _maxHdcpLevel;
|
@@ -1405,11 +1407,11 @@ declare class Hls implements HlsEventEmitter {
|
|
1405
1407
|
*/
|
1406
1408
|
stopLoad(): void;
|
1407
1409
|
/**
|
1408
|
-
* Resumes stream controller segment loading
|
1410
|
+
* Resumes stream controller segment loading after `pauseBuffering` has been called.
|
1409
1411
|
*/
|
1410
1412
|
resumeBuffering(): void;
|
1411
1413
|
/**
|
1412
|
-
*
|
1414
|
+
* Prevents stream controller from loading new segments until `resumeBuffering` is called.
|
1413
1415
|
* This allows for media buffering to be paused without interupting playlist loading.
|
1414
1416
|
*/
|
1415
1417
|
pauseBuffering(): void;
|
@@ -2411,6 +2413,8 @@ export declare type MP4RemuxerConfig = {
|
|
2411
2413
|
export declare interface NetworkComponentAPI extends ComponentAPI {
|
2412
2414
|
startLoad(startPosition: number): void;
|
2413
2415
|
stopLoad(): void;
|
2416
|
+
pauseBuffering?(): void;
|
2417
|
+
resumeBuffering?(): void;
|
2414
2418
|
}
|
2415
2419
|
|
2416
2420
|
export declare const enum NetworkErrorAction {
|