You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`#EXT-X-I-FRAME-STREAM-INF` I-frame Media Playlist files
122
122
-`SAMPLE-AES` with fmp4, aac, mp3, vtt... segments (MPEG-2 TS only)
123
-
- FairPlay DRM with MPEG-2 TS content
124
-
- PlayReady (See [#3779](https://github.com/video-dev/hls.js/issues/3779) and [issues labeled DRM](https://github.com/video-dev/hls.js/issues?q=is%3Aissue+is%3Aopen+label%3ADRM))
123
+
- FairPlay, PlayReady, Widevine DRM with MPEG-2 TS segments
125
124
- Advanced variant selection based on runtime media capabilities (See issues labeled [`media-capabilities`](https://github.com/video-dev/hls.js/labels/media-capabilities))
126
125
- MP3 elementary stream audio in IE and Edge (<=18) on Windows 10 (See [#1641](https://github.com/video-dev/hls.js/issues/1641) and [Microsoft answers forum](https://answers.microsoft.com/en-us/ie/forum/all/ie11-on-windows-10-cannot-play-hls-with-mp3/2da994b5-8dec-4ae9-9201-7d138ede49d9))
Copy file name to clipboardexpand all lines: api-extractor/report/hls.js.api.md
+69-33
Original file line number
Diff line number
Diff line change
@@ -313,6 +313,10 @@ export class DateRange {
313
313
exporttypeDRMSystemOptions= {
314
314
audioRobustness?:string;
315
315
videoRobustness?:string;
316
+
persistentState?:MediaKeysRequirement;
317
+
distinctiveIdentifier?:MediaKeysRequirement;
318
+
sessionTypes?:string[];
319
+
sessionType?:string;
316
320
};
317
321
318
322
// Warning: (ae-missing-release-tag) "ElementaryStreamInfo" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
// Warning: (ae-forgotten-export) The symbol "KeyLoaderInfo" needs to be exported by the entry point hls.d.ts
1239
+
//
1240
+
// (undocumented)
1241
+
keyInfo:KeyLoaderInfo;
1225
1242
}
1226
1243
1227
-
// Warning: (ae-missing-release-tag) "KeyLoaderContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1244
+
// Warning: (ae-missing-release-tag) "KeyLoadingData" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
// Warning: (ae-missing-release-tag) "KeyLoadingData" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1252
+
// Warning: (ae-missing-release-tag) "KeySystemFormats" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
// Warning: (ae-missing-release-tag) "LevelLoadedData" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
A pre-processor function for modifying the `XMLHttpRequest` and request url (using `xhr.open`) prior to sending the license request.
1213
+
A pre-processor function for modifying license requests. The license request URL, request headers, and payload can all be modified prior to sending the license request, based on operating conditions, the current key-session, and key-system.
1206
1214
1207
1215
```js
1208
1216
var config = {
1209
-
licenseXhrSetup:function (xhr, url) {
1210
-
xhr.withCredentials=true; // do send cookies
1211
-
if (!xhr.readyState) {
1212
-
// Call open to change the method (default is POST) or modify the url
Supported key-systems include 'com.apple.fps', 'com.microsoft.playready', 'com.widevine.alpha', and 'org.w3.clearkey'. Mapping to other values in key-system access requests can be done by customizing [`requestMediaKeySystemAccessFunc`](#requestMediaKeySystemAccessFunc).
1286
+
1242
1287
### `drmSystemOptions`
1243
1288
1244
1289
(default: `{}`)
@@ -1258,7 +1303,18 @@ With the default argument, `''` will be specified for each option (_i.e. no spec
1258
1303
1259
1304
(default: A function that returns the result of `window.navigator.requestMediaKeySystemAccess.bind(window.navigator)` or `null`)
1260
1305
1261
-
Allows for the customization of `window.navigator.requestMediaKeySystemAccess`.
1306
+
Allows for the customization of `window.navigator.requestMediaKeySystemAccess`. This can be used to map key-system access request to from a supported value to a custom one:
0 commit comments