@@ -84,7 +84,7 @@ export type DRMSystemConfiguration = {
84
84
this : Hls ,
85
85
initDataType : string ,
86
86
initData : ArrayBuffer | null ,
87
- keyContext : MediaKeySessionContext
87
+ keyContext : MediaKeySessionContext ,
88
88
) =>
89
89
| { initDataType : string ; initData : ArrayBuffer | null }
90
90
| undefined
@@ -101,13 +101,13 @@ export type EMEControllerConfig = {
101
101
xhr : XMLHttpRequest ,
102
102
url : string ,
103
103
keyContext : MediaKeySessionContext ,
104
- licenseChallenge : Uint8Array
104
+ licenseChallenge : Uint8Array ,
105
105
) => void | Uint8Array | Promise < Uint8Array | void > ;
106
106
licenseResponseCallback ?: (
107
107
this : Hls ,
108
108
xhr : XMLHttpRequest ,
109
109
url : string ,
110
- keyContext : MediaKeySessionContext
110
+ keyContext : MediaKeySessionContext ,
111
111
) => ArrayBuffer ;
112
112
emeEnabled : boolean ;
113
113
widevineLicenseUrl ?: string ;
@@ -532,15 +532,15 @@ function timelineConfig(): TimelineControllerConfig {
532
532
*/
533
533
export function mergeConfig (
534
534
defaultConfig : HlsConfig ,
535
- userConfig : Partial < HlsConfig >
535
+ userConfig : Partial < HlsConfig > ,
536
536
) : HlsConfig {
537
537
if (
538
538
( userConfig . liveSyncDurationCount ||
539
539
userConfig . liveMaxLatencyDurationCount ) &&
540
540
( userConfig . liveSyncDuration || userConfig . liveMaxLatencyDuration )
541
541
) {
542
542
throw new Error (
543
- "Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration"
543
+ "Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration" ,
544
544
) ;
545
545
}
546
546
@@ -551,7 +551,7 @@ export function mergeConfig(
551
551
userConfig . liveSyncDurationCount )
552
552
) {
553
553
throw new Error (
554
- 'Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"'
554
+ 'Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"' ,
555
555
) ;
556
556
}
557
557
@@ -561,7 +561,7 @@ export function mergeConfig(
561
561
userConfig . liveMaxLatencyDuration <= userConfig . liveSyncDuration )
562
562
) {
563
563
throw new Error (
564
- 'Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"'
564
+ 'Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"' ,
565
565
) ;
566
566
}
567
567
@@ -609,10 +609,10 @@ export function mergeConfig(
609
609
if ( report . length ) {
610
610
logger . warn (
611
611
`hls.js config: "${ report . join (
612
- '", "'
612
+ '", "' ,
613
613
) } " setting(s) are deprecated, use "${ policyName } ": ${ JSON . stringify (
614
- userConfig [ policyName ]
615
- ) } `
614
+ userConfig [ policyName ] ,
615
+ ) } `,
616
616
) ;
617
617
}
618
618
} ) ;
@@ -644,7 +644,7 @@ export function enableStreamingMode(config) {
644
644
if ( currentLoader !== FetchLoader && currentLoader !== XhrLoader ) {
645
645
// If a developer has configured their own loader, respect that choice
646
646
logger . log (
647
- '[config]: Custom loader detected, cannot enable progressive streaming'
647
+ '[config]: Custom loader detected, cannot enable progressive streaming' ,
648
648
) ;
649
649
config . progressive = false ;
650
650
} else {
0 commit comments