hls.js 1.5.2-0.canary.9923 → 1.5.2
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-demo.js +0 -5
- package/dist/hls-demo.js.map +1 -1
- package/dist/hls.js +379 -431
- package/dist/hls.js.d.ts +14 -14
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +217 -275
- 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 +219 -278
- 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 +350 -401
- 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 +9 -9
- package/src/controller/abr-controller.ts +2 -2
- package/src/controller/base-stream-controller.ts +16 -16
- package/src/controller/buffer-controller.ts +0 -6
- package/src/controller/eme-controller.ts +12 -6
- package/src/controller/latency-controller.ts +8 -7
- package/src/controller/level-controller.ts +18 -7
- package/src/controller/stream-controller.ts +14 -11
- package/src/controller/subtitle-stream-controller.ts +1 -6
- package/src/controller/subtitle-track-controller.ts +2 -4
- package/src/controller/timeline-controller.ts +26 -20
- package/src/crypt/aes-crypto.ts +2 -21
- package/src/crypt/decrypter.ts +18 -32
- package/src/crypt/fast-aes-key.ts +5 -24
- package/src/demux/audio/adts.ts +4 -9
- package/src/demux/sample-aes.ts +0 -2
- package/src/demux/transmuxer-interface.ts +12 -4
- package/src/demux/transmuxer.ts +3 -16
- package/src/demux/tsdemuxer.ts +17 -12
- package/src/loader/fragment-loader.ts +2 -9
- package/src/loader/key-loader.ts +0 -2
- package/src/loader/level-key.ts +9 -10
- package/src/remux/mp4-remuxer.ts +3 -4
- package/src/types/demuxer.ts +0 -1
- package/src/utils/codecs.ts +4 -33
- package/src/crypt/decrypter-aes-mode.ts +0 -4
- package/src/utils/encryption-methods-util.ts +0 -21
package/dist/hls.js.d.ts
CHANGED
@@ -248,6 +248,8 @@ export declare class BaseStreamController extends TaskLoop implements NetworkCom
|
|
248
248
|
protected startFragRequested: boolean;
|
249
249
|
protected decrypter: Decrypter;
|
250
250
|
protected initPTS: RationalTimestamp[];
|
251
|
+
protected onvseeking: EventListener | null;
|
252
|
+
protected onvended: EventListener | null;
|
251
253
|
private readonly logPrefix;
|
252
254
|
protected log: (msg: any) => void;
|
253
255
|
protected warn: (msg: any) => void;
|
@@ -260,8 +262,8 @@ export declare class BaseStreamController extends TaskLoop implements NetworkCom
|
|
260
262
|
protected getLevelDetails(): LevelDetails | undefined;
|
261
263
|
protected onMediaAttached(event: Events.MEDIA_ATTACHED, data: MediaAttachedData): void;
|
262
264
|
protected onMediaDetaching(): void;
|
263
|
-
protected onMediaSeeking
|
264
|
-
protected onMediaEnded
|
265
|
+
protected onMediaSeeking(): void;
|
266
|
+
protected onMediaEnded(): void;
|
265
267
|
protected onManifestLoaded(event: Events.MANIFEST_LOADED, data: ManifestLoadedData): void;
|
266
268
|
protected onHandlerDestroying(): void;
|
267
269
|
protected onHandlerDestroyed(): void;
|
@@ -724,7 +726,6 @@ declare class Decrypter {
|
|
724
726
|
private currentIV;
|
725
727
|
private currentResult;
|
726
728
|
private useSoftware;
|
727
|
-
private enableSoftwareAES;
|
728
729
|
constructor(config: HlsConfig, { removePKCS7Padding }?: {
|
729
730
|
removePKCS7Padding?: boolean | undefined;
|
730
731
|
});
|
@@ -732,19 +733,14 @@ declare class Decrypter {
|
|
732
733
|
isSync(): boolean;
|
733
734
|
flush(): Uint8Array | null;
|
734
735
|
reset(): void;
|
735
|
-
decrypt(data: Uint8Array | ArrayBuffer, key: ArrayBuffer, iv: ArrayBuffer
|
736
|
-
softwareDecrypt(data: Uint8Array, key: ArrayBuffer, iv: ArrayBuffer
|
737
|
-
webCryptoDecrypt(data: Uint8Array, key: ArrayBuffer, iv: ArrayBuffer
|
736
|
+
decrypt(data: Uint8Array | ArrayBuffer, key: ArrayBuffer, iv: ArrayBuffer): Promise<ArrayBuffer>;
|
737
|
+
softwareDecrypt(data: Uint8Array, key: ArrayBuffer, iv: ArrayBuffer): ArrayBuffer | null;
|
738
|
+
webCryptoDecrypt(data: Uint8Array, key: ArrayBuffer, iv: ArrayBuffer): Promise<ArrayBuffer>;
|
738
739
|
private onWebCryptoError;
|
739
740
|
private getValidChunk;
|
740
741
|
private logOnce;
|
741
742
|
}
|
742
743
|
|
743
|
-
declare const enum DecrypterAesMode {
|
744
|
-
cbc = 0,
|
745
|
-
ctr = 1
|
746
|
-
}
|
747
|
-
|
748
744
|
declare type DRMSystemConfiguration = {
|
749
745
|
licenseUrl: string;
|
750
746
|
serverCertificateUrl?: string;
|
@@ -801,6 +797,8 @@ export declare class EMEController implements ComponentAPI {
|
|
801
797
|
private mediaKeySessions;
|
802
798
|
private keyIdToKeySessionPromise;
|
803
799
|
private setMediaKeysQueue;
|
800
|
+
private onMediaEncrypted;
|
801
|
+
private onWaitingForKey;
|
804
802
|
private debug;
|
805
803
|
private log;
|
806
804
|
private warn;
|
@@ -825,8 +823,8 @@ export declare class EMEController implements ComponentAPI {
|
|
825
823
|
private handleError;
|
826
824
|
private getKeySystemForKeyPromise;
|
827
825
|
private getKeySystemSelectionPromise;
|
828
|
-
private
|
829
|
-
private
|
826
|
+
private _onMediaEncrypted;
|
827
|
+
private _onWaitingForKey;
|
830
828
|
private attemptSetMediaKeys;
|
831
829
|
private generateRequestWithPreferredKeySession;
|
832
830
|
private onKeyStatusChange;
|
@@ -2641,6 +2639,8 @@ declare class StreamController extends BaseStreamController implements NetworkCo
|
|
2641
2639
|
private altAudio;
|
2642
2640
|
private audioOnly;
|
2643
2641
|
private fragPlaying;
|
2642
|
+
private onvplaying;
|
2643
|
+
private onvseeked;
|
2644
2644
|
private fragLastKbps;
|
2645
2645
|
private couldBacktrack;
|
2646
2646
|
private backtrackFragment;
|
@@ -2796,10 +2796,10 @@ export declare class SubtitleTrackController extends BasePlaylistController {
|
|
2796
2796
|
private currentTrack;
|
2797
2797
|
private selectDefaultTrack;
|
2798
2798
|
private queuedDefaultTrack;
|
2799
|
+
private asyncPollTrackChange;
|
2799
2800
|
private useTextTrackPolling;
|
2800
2801
|
private subtitlePollingInterval;
|
2801
2802
|
private _subtitleDisplay;
|
2802
|
-
private asyncPollTrackChange;
|
2803
2803
|
constructor(hls: Hls);
|
2804
2804
|
destroy(): void;
|
2805
2805
|
get subtitleDisplay(): boolean;
|