bitmovin-player 8.280.0 → 8.281.0

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.
Files changed (106) hide show
  1. package/bitmovinplayer-serviceworker.js +2 -2
  2. package/bitmovinplayer-serviceworker.prod.js +2 -2
  3. package/bitmovinplayer-ui.js +1 -1
  4. package/bitmovinplayer.js +2 -2
  5. package/bitmovinplayer.prod.js +2 -2
  6. package/modules/bitmovinplayer-abr.js +2 -2
  7. package/modules/bitmovinplayer-abr.prod.js +2 -2
  8. package/modules/bitmovinplayer-advertising-bitmovin.js +2 -2
  9. package/modules/bitmovinplayer-advertising-bitmovin.prod.js +2 -2
  10. package/modules/bitmovinplayer-advertising-core.js +2 -2
  11. package/modules/bitmovinplayer-advertising-core.prod.js +2 -2
  12. package/modules/bitmovinplayer-advertising-ima.js +2 -2
  13. package/modules/bitmovinplayer-advertising-ima.prod.js +2 -2
  14. package/modules/bitmovinplayer-advertising-omsdk.js +2 -2
  15. package/modules/bitmovinplayer-advertising-omsdk.prod.js +2 -2
  16. package/modules/bitmovinplayer-analytics.js +2 -2
  17. package/modules/bitmovinplayer-analytics.prod.js +2 -2
  18. package/modules/bitmovinplayer-container-mp4.js +2 -2
  19. package/modules/bitmovinplayer-container-mp4.prod.js +2 -2
  20. package/modules/bitmovinplayer-container-ts.js +2 -2
  21. package/modules/bitmovinplayer-container-ts.prod.js +2 -2
  22. package/modules/bitmovinplayer-container-webm.js +2 -2
  23. package/modules/bitmovinplayer-container-webm.prod.js +2 -2
  24. package/modules/bitmovinplayer-core.js +2 -2
  25. package/modules/bitmovinplayer-core.prod.js +2 -2
  26. package/modules/bitmovinplayer-crypto.js +2 -2
  27. package/modules/bitmovinplayer-crypto.prod.js +2 -2
  28. package/modules/bitmovinplayer-dash.js +2 -2
  29. package/modules/bitmovinplayer-dash.prod.js +2 -2
  30. package/modules/bitmovinplayer-drm.js +2 -2
  31. package/modules/bitmovinplayer-drm.prod.js +2 -2
  32. package/modules/bitmovinplayer-engine-bitmovin.js +2 -2
  33. package/modules/bitmovinplayer-engine-bitmovin.prod.js +2 -2
  34. package/modules/bitmovinplayer-engine-native.js +2 -2
  35. package/modules/bitmovinplayer-engine-native.prod.js +2 -2
  36. package/modules/bitmovinplayer-engine-webrtc.js +2 -2
  37. package/modules/bitmovinplayer-engine-webrtc.prod.js +2 -2
  38. package/modules/bitmovinplayer-envivio.js +1 -1
  39. package/modules/bitmovinplayer-envivio.prod.js +1 -1
  40. package/modules/bitmovinplayer-hls.js +2 -2
  41. package/modules/bitmovinplayer-hls.prod.js +2 -2
  42. package/modules/bitmovinplayer-lowlatency.js +2 -2
  43. package/modules/bitmovinplayer-lowlatency.prod.js +2 -2
  44. package/modules/bitmovinplayer-mserenderer.js +2 -2
  45. package/modules/bitmovinplayer-mserenderer.prod.js +2 -2
  46. package/modules/bitmovinplayer-patch.js +1 -1
  47. package/modules/bitmovinplayer-patch.prod.js +1 -1
  48. package/modules/bitmovinplayer-playstation4.js +2 -2
  49. package/modules/bitmovinplayer-playstation4.prod.js +2 -2
  50. package/modules/bitmovinplayer-playstation5.js +2 -2
  51. package/modules/bitmovinplayer-playstation5.prod.js +2 -2
  52. package/modules/bitmovinplayer-polyfill.js +1 -1
  53. package/modules/bitmovinplayer-polyfill.prod.js +1 -1
  54. package/modules/bitmovinplayer-reactnative.js +1 -1
  55. package/modules/bitmovinplayer-reactnative.prod.js +1 -1
  56. package/modules/bitmovinplayer-remotecontrol.js +2 -2
  57. package/modules/bitmovinplayer-remotecontrol.prod.js +2 -2
  58. package/modules/bitmovinplayer-serviceworker-client.js +2 -2
  59. package/modules/bitmovinplayer-serviceworker-client.prod.js +2 -2
  60. package/modules/bitmovinplayer-serviceworker.js +2 -2
  61. package/modules/bitmovinplayer-serviceworker.prod.js +2 -2
  62. package/modules/bitmovinplayer-sgai.js +2 -2
  63. package/modules/bitmovinplayer-sgai.prod.js +2 -2
  64. package/modules/bitmovinplayer-smooth.js +2 -2
  65. package/modules/bitmovinplayer-smooth.prod.js +2 -2
  66. package/modules/bitmovinplayer-style.js +2 -2
  67. package/modules/bitmovinplayer-style.prod.js +2 -2
  68. package/modules/bitmovinplayer-subtitles-cea608.js +2 -2
  69. package/modules/bitmovinplayer-subtitles-cea608.prod.js +2 -2
  70. package/modules/bitmovinplayer-subtitles-native.js +2 -2
  71. package/modules/bitmovinplayer-subtitles-native.prod.js +2 -2
  72. package/modules/bitmovinplayer-subtitles-ttml.js +2 -2
  73. package/modules/bitmovinplayer-subtitles-ttml.prod.js +2 -2
  74. package/modules/bitmovinplayer-subtitles-vtt.js +2 -2
  75. package/modules/bitmovinplayer-subtitles-vtt.prod.js +2 -2
  76. package/modules/bitmovinplayer-subtitles.js +2 -2
  77. package/modules/bitmovinplayer-subtitles.prod.js +2 -2
  78. package/modules/bitmovinplayer-thumbnail-imp.js +2 -2
  79. package/modules/bitmovinplayer-thumbnail-imp.prod.js +2 -2
  80. package/modules/bitmovinplayer-thumbnail.js +2 -2
  81. package/modules/bitmovinplayer-thumbnail.prod.js +2 -2
  82. package/modules/bitmovinplayer-tizen.js +2 -2
  83. package/modules/bitmovinplayer-tizen.prod.js +2 -2
  84. package/modules/bitmovinplayer-ui.js +2 -2
  85. package/modules/bitmovinplayer-ui.prod.js +2 -2
  86. package/modules/bitmovinplayer-vidaa.js +2 -2
  87. package/modules/bitmovinplayer-vidaa.prod.js +2 -2
  88. package/modules/bitmovinplayer-vr.js +2 -2
  89. package/modules/bitmovinplayer-vr.prod.js +2 -2
  90. package/modules/bitmovinplayer-webos.js +2 -2
  91. package/modules/bitmovinplayer-webos.prod.js +2 -2
  92. package/modules/bitmovinplayer-wpe.js +2 -2
  93. package/modules/bitmovinplayer-wpe.prod.js +2 -2
  94. package/modules/bitmovinplayer-xml.js +1 -1
  95. package/modules/bitmovinplayer-xml.prod.js +1 -1
  96. package/package.json +1 -1
  97. package/types/advertising/API.d.ts +9 -0
  98. package/types/advertising/ConfigAPI.d.ts +6 -5
  99. package/types/core/BufferSettings.d.ts +58 -0
  100. package/types/core/LogLevels.d.ts +54 -0
  101. package/types/core/Logger.d.ts +51 -0
  102. package/types/core/Settings.d.ts +856 -0
  103. package/types/core/network/ManifestMimeType.d.ts +5 -0
  104. package/types/core/util/MimeTypeHelper.d.ts +52 -0
  105. package/types/sgai/SgaiConfigAPI.d.ts +1 -1
  106. package/types/sgai/SgaiErrorCode.d.ts +6 -1
@@ -0,0 +1,856 @@
1
+ import type { TargetBufferLevelSettings } from './BufferSettings';
2
+ import type { HttpHeaders } from './NetworkAPI';
3
+ import { HttpRequestType } from './NetworkAPI';
4
+ import { MediaType } from './PlayerAPI';
5
+ import type { Bitrate, WishAbrConfig } from './PlayerConfigAPI';
6
+ export interface Settings {
7
+ /**
8
+ * Specifies different kinds of target buffer levels for audio and video for the available buffer types defined in
9
+ * {@link BufferType}.
10
+ */
11
+ TARGET_BUFFER_LEVEL: TargetBufferLevelSettings;
12
+ /** A threshold specifying the minimum necessary target buffer level in the adaptation logic that allows using the
13
+ * buffer logic additionally to the rate logic. Below this threshold the adaptation logic operates in rate-only mode.
14
+ * Note: The target buffer level in the adaptation logic is the minimum of the TARGET_BUFFER_LEVEL and the timeShift
15
+ * buffer depth.
16
+ */
17
+ BUFFER_LOGIC_ACTIVATION_THRESHOLD: number;
18
+ /**
19
+ * The minimum offset in seconds to the end of the timeline for live streams.
20
+ */
21
+ MIN_TIMELINE_LIVE_OFFSET: number;
22
+ /**
23
+ * The time in seconds to wait before trying to download a segment again after a downloader error occurred.
24
+ */
25
+ RETRY_DELAY: number;
26
+ /**
27
+ * The time in seconds to until the retry delay can be automatically increased
28
+ */
29
+ MAX_INCREASE_RETRY_DELAY_SEC: number;
30
+ /**
31
+ * Specifies if the retry delay for (e.g. segment, manifest, DRM licenses etc.) should increase or be constant.
32
+ * Default value is `true`.
33
+ */
34
+ INCREASE_RETRY_DELAY: boolean;
35
+ /**
36
+ * Retry delay base time for
37
+ */
38
+ INCREASE_RETRY_DELAY_BASE_SEC: number;
39
+ /**
40
+ * Object holding an array of http status codes for every request type defining for which status codes retrying
41
+ * should be omitted. (Overrules MAX_RETRIES, etc)
42
+ */
43
+ DISABLE_RETRY_FOR_RESPONSE_STATUS: {
44
+ [key in HttpRequestType]: number[];
45
+ };
46
+ /**
47
+ * The number of elements per metric type per stream is saved before the oldest value is deleted. A number smaller
48
+ * than 1 or the value Infinity will never delete anything.
49
+ */
50
+ METRIC_HISTORY_SIZE: number;
51
+ /**
52
+ * The number of elements that the adaptation rules shall save before the oldest value is deleted
53
+ */
54
+ DEFAULT_ADAPTATION_RULE_HISTORY_SIZE: number;
55
+ /**
56
+ * The level of log outputs. See Logger for valid values, e.g. Logger.LEVEL_ERROR (only errors are logged to the
57
+ * developer console).
58
+ */
59
+ LOG_LEVEL: number;
60
+ /**
61
+ * A prefix string that will be prepended to every printed console message
62
+ */
63
+ LOG_PREFIX: string;
64
+ /**
65
+ * The minimum amount of buffer in seconds to be built before resuming playback after a stall.
66
+ */
67
+ RESTART_THRESHOLD: number;
68
+ /**
69
+ * The delta the RESTART_THRESHOLD is restricted to be lower than the TARGET_BUFFER_LEVEL
70
+ */
71
+ RESTART_THRESHOLD_DELTA: number;
72
+ /**
73
+ * The minimum amount of buffer, in seconds to, be built before starting playback initially.
74
+ */
75
+ STARTUP_THRESHOLD: number;
76
+ /**
77
+ * The delta the STARTUP_THRESHOLD is restricted to be lower than the TARGET_BUFFER_LEVEL
78
+ */
79
+ STARTUP_THRESHOLD_DELTA: number;
80
+ /**
81
+ * The tolerance in seconds for detecting when startup threshold is reached despite manifest/media duration mismatches.
82
+ * When the buffer level is within this tolerance of the capped startup threshold, the player will start playback.
83
+ * This handles cases where the actual media duration is shorter than the manifest duration.
84
+ */
85
+ DURATION_MISMATCH_TOLERANCE: number;
86
+ /**
87
+ * The maximum amount of buffer (in seconds) to be built upon initial play.
88
+ *
89
+ * The player will stop loading segments once this buffer level is reached and will not load any further content
90
+ * until playback starts. This helps avoid excessive content loading at startup, which can lead to longer startup
91
+ * times.
92
+ *
93
+ * - A finite value sets a specific buffer limit.
94
+ * This overrides the platform-recommended default.
95
+ * A debug message will be logged if the value is lower than the recommended default.
96
+ * - A value of `Infinity` disables this behavior.
97
+ * It effectively limits the loaded buffer only by the configured forward buffer duration.
98
+ *
99
+ * If not set, the player applies defaults optimized for platform stability:
100
+ * - **LG webOS 2016–2019 and Legacy Microsoft Edge:** 6.0 seconds
101
+ * - **LG webOS 2020 and Samsung Tizen 2017–2019:** 4.0 seconds
102
+ * - **Other LG webOS and Samsung Tizen TVs:** 2.5 seconds
103
+ * - **All other platforms:** No limit
104
+ *
105
+ * Note: webOS and Tizen defaults are applied only when the corresponding platform module is included, otherwise no
106
+ * limit is applied.
107
+ *
108
+ * Default value: `Infinity` (overridden to platform-recommended value when it exists).
109
+ */
110
+ MAX_STARTUP_BUFFER: number;
111
+ /**
112
+ * The number of segments before the calculated end of a static video the player should start checking for existing
113
+ * segments
114
+ */
115
+ START_SEARCHING_END: number;
116
+ /**
117
+ * The number of retries if a download error occurred in VoD streams
118
+ */
119
+ MAX_RETRIES: number;
120
+ /**
121
+ * The number of retries per CDN if a download error occurred in VoD streams
122
+ */
123
+ MAX_CDN_RETRIES: number;
124
+ /**
125
+ * The number of MPD retries if an download error (e.g. 404) occurred
126
+ */
127
+ MAX_MPD_RETRIES: number;
128
+ /**
129
+ * The time in seconds to wait before trying to download the MPD again after a download error occurred
130
+ */
131
+ MPD_RETRY_DELAY: number;
132
+ /**
133
+ * The time in seconds that the MPD age for live streams may exceed the minimumUpdatePeriod, before it should be
134
+ * considered outdated
135
+ */
136
+ MPD_UPDATE_PERIOD_TOLERANCE: number;
137
+ /**
138
+ * The number of retries if a download error occurred in license requests
139
+ */
140
+ DRM_MAX_RETRIES: number;
141
+ /**
142
+ * The time in seconds to wait before trying to request the DRM license again after a download error occurred
143
+ */
144
+ DRM_RETRY_DELAY: number;
145
+ /**
146
+ * Send credentials such as cookies or authorization headers along with the license requests
147
+ */
148
+ DRM_WITH_CREDENTIALS: boolean;
149
+ /**
150
+ * Settle timeout in ms before a `waitingforkey` with permanently-failed KIDs triggers a source reload.
151
+ */
152
+ DRM_STALL_RECOVERY_SETTLE_TIMEOUT_MS: number;
153
+ /**
154
+ * Lookback in ms during which a recent change to the DRM license state still counts as DRM settling,
155
+ * granting an extension to the settle window.
156
+ */
157
+ DRM_STALL_RECOVERY_LICENSE_ACTIVITY_LOOKBACK_MS: number;
158
+ /**
159
+ * Application ID that is used with ChromeCast Application API calls from the sender application
160
+ */
161
+ CAST_APPLICATION_ID: string;
162
+ /**
163
+ * ChromeCast custom message namespace for advanced player control
164
+ */
165
+ CAST_MESSAGE_NAMESPACE: string;
166
+ /**
167
+ * Delay until the buffering icon is displayed after a stall has occurred
168
+ */
169
+ BUFFER_VISIBILITY_DELAY: number;
170
+ /**
171
+ * The minimal video bitrate in bps of a representation to be chosen from adaptation logic (use "0" for no limitation)
172
+ */
173
+ MIN_SELECTABLE_VIDEO_BITRATE: number | string;
174
+ /**
175
+ * The maximal video bitrate in bps of a representation to be chosen from adaptation logic (use "Infinity" for no
176
+ * limitation)
177
+ */
178
+ MAX_SELECTABLE_VIDEO_BITRATE: number | string;
179
+ /**
180
+ * If representations that are not allowed to switch to should be removed when parsing the manifest
181
+ */
182
+ EXCLUDE_DISALLOWED_REPRESENTATIONS: boolean;
183
+ /**
184
+ * The minimal audio bitrate in bps of a representation to be chosen from adaptation logic (use "0" for no limitation)
185
+ */
186
+ MIN_SELECTABLE_AUDIO_BITRATE: number | string;
187
+ /**
188
+ * The maximal audio bitrate in bps of a representation to be chosen from adaptation logic (use "Infinity" for no
189
+ * limitation)
190
+ */
191
+ MAX_SELECTABLE_AUDIO_BITRATE: number | string;
192
+ /**
193
+ * The network request timeout used when loading audio/video segments, manifests, and other network requests.
194
+ * The timeout is in seconds.
195
+ *
196
+ * Default value is 20 seconds.
197
+ */
198
+ XHR_TIMEOUT: number;
199
+ /**
200
+ * Query Parameters which will be add to every segment request.
201
+ */
202
+ QUERY_PARAMETERS: any;
203
+ /**
204
+ * The number of seconds which the player should not consider a gap, as the browser may play over it.
205
+ * The player will try to play over gaps smaller than this number.
206
+ * If the gap is larger than this value a the player tries to close the gap by downloading a different segment.
207
+ * The GAP_TOLERANCE also influences the ABR, in terms of merging the buffer ranges, as it possibly wrongly detects
208
+ * overlapping segments as one if this value is too high.
209
+ *
210
+ * The default is 0.1.
211
+ */
212
+ GAP_TOLERANCE: number;
213
+ /**
214
+ * This tolerance is used to detect the end of the buffer, as the video element does not play until the very end of
215
+ * the buffer, we have to check with a tolerance.
216
+ *
217
+ * The default is 0.1
218
+ */
219
+ END_OF_BUFFER_TOLERANCE: number;
220
+ /**
221
+ * This tolerance is a more lenient case of the {@link END_OF_BUFFER_TOLERANCE} used to recover from being stuck
222
+ * before the end of buffer.
223
+ */
224
+ END_OF_BUFFER_RECOVERY_TOLERANCE: number;
225
+ /**
226
+ * The number of seconds which the player should not consider a gap between potential gaps and buffered ranges
227
+ */
228
+ MAX_POTENTIAL_GAP_TIME_DEVIATION: number;
229
+ /**
230
+ * This flag indicates how far to the end of the stream the player can seek. Meaning if it is set to 2, the maximum
231
+ * seek target is totalDuration - 2
232
+ */
233
+ SEEK_TO_END_OFFSET: number;
234
+ /**
235
+ * Minimum updated periods smaller than this value are set to this value
236
+ */
237
+ MINIMUM_ALLOWED_UPDATE_PERIOD: number;
238
+ /**
239
+ * Minimum updated periods larger than this value are set to this value
240
+ */
241
+ MAXIMUM_ALLOWED_UPDATE_PERIOD: number;
242
+ /**
243
+ * Used to globally disable seeking
244
+ */
245
+ GLOBAL_DISABLE_SEEKING: boolean;
246
+ /**
247
+ * In case of a pre-roll ad, the video will not seek to the last playback position if its smaller than this threshold
248
+ */
249
+ PRE_ROLL_RESTORE_THRESHOLD: number;
250
+ /**
251
+ * Specifies how many timeupdate events have to be fired before the playback position is restored after an ad on iOS
252
+ */
253
+ IOS_MIN_TIMEUPDATES_AFTER_AD: number;
254
+ /**
255
+ * HTTP headers which are added to all requests, similar to QUERY_PARAMETERS
256
+ */
257
+ HTTP_HEADERS: HttpHeaders;
258
+ /**
259
+ * Specifies the safety margin for the adaptation it should be below the estimated download duration to select a
260
+ * quality. This value has to be between 0 and 1. The default value is 0.4. Meaning a download of a segment may take
261
+ * up to 60 % of the estimated duration to be selected by the adaptation logic.
262
+ */
263
+ DOWNLOAD_DURATION_SAFETY_MARGIN: number;
264
+ /**
265
+ * How much longer a segment download may take if the buffer is filled
266
+ */
267
+ MAXIMUM_DOWNLOAD_DURATION_MULTIPLIER: number;
268
+ /**
269
+ * How much longer a segment download for the same quality may take if the buffer is filled
270
+ */
271
+ MAXIMUM_DOWNLOAD_DURATION_MULTIPLIER_SAME_QUALITY: number;
272
+ /**
273
+ * The percentage the adaptation logic should be below the measured bandwidth.
274
+ */
275
+ RATE_SAFETY_MARGIN_PERCENTAGE: number;
276
+ /**
277
+ * The value the adaptation logic should cap any bandwidth estimation to. Defaults to Infinity.
278
+ */
279
+ MAX_ALLOWED_BANDWIDTH_ESTIMATION: Bitrate;
280
+ /**
281
+ * The number of segments at the start of the segment list that the player considers unsafe to request on a seek or
282
+ * timeShift operation. E.g when set to 2, the earliest segment that can be requested would be the third in the
283
+ * segment list.
284
+ *
285
+ * The default value is 0, so the complete DVR window (aka seekable range) is used.
286
+ */
287
+ LIVE_SEGMENT_LIST_START_INDEX_OFFSET: number;
288
+ /**
289
+ * Maximum number of segments that the player is allowed to cache. If the player detects a downloaded segment to not
290
+ * be the right one it may be cached for later use. This can be useful in HLS when
291
+ * i.) on playlist switch the segment index has to be corrected slightly back
292
+ * ii.) on key frame recovery the preceding segment has to be loaded and then the actual segment once again
293
+ */
294
+ MAX_NUM_CACHED_SEGMENTS: number;
295
+ /**
296
+ * Media types whose loaded segments are kept in a `TimeWindowSegmentCache` spanning the playhead to the forward
297
+ * buffer target. Only `MediaType.Video` is honoured; see `TweaksConfig.segment_cache_media_types` for the
298
+ * public documentation.
299
+ *
300
+ * Where this pays off today is webOS and Tizen: switching to an audio track that uses a different codec rebuilds
301
+ * the `MediaSource` and wipes the video buffer, and appending the kept segments again shortens the black frame.
302
+ */
303
+ SEGMENT_CACHE_MEDIA_TYPES: MediaType[];
304
+ /**
305
+ * Disables `SourceBuffer.changeType()`, so that codec switches rebuild the `MediaSource` instead. See
306
+ * `TweaksConfig.disable_source_buffer_change_type` for the public documentation.
307
+ */
308
+ DISABLE_SOURCE_BUFFER_CHANGE_TYPE: boolean;
309
+ /**
310
+ * Can be used to override the version flag in TRUN MP4-boxes. This is needed for content which is not standard
311
+ * conform and has version 0 although the Composition Time Offsets (CTO's) are unsigned integers. When CTO's are
312
+ * unsigned integers a version != 0 must be set in TRUN box.
313
+ */
314
+ TRUN_VERSION: any;
315
+ /**
316
+ * Disable Edit (edts) boxes in MP4 segments which would introduce a segment start time offset. Some browsers allow
317
+ * this use case for edts boxes, but others don't. This tweak is set to true by default to disable unwanted edts boxes
318
+ * found in MP4s, i.e. prevent any edts-caused timestamp offset, and thereby achieve consistent cross-browser
319
+ * behavior in this matter.
320
+ */
321
+ IGNORE_MP4_EDTS_BOX: boolean;
322
+ /**
323
+ * All HLS representations with a bitrate lower than the given bitrate in bps are removed if there is at least one
324
+ * with a higher bitrate.
325
+ */
326
+ HLS_AUDIO_ONLY_THRESHOLD_BITRATE: number;
327
+ /**
328
+ * Enable usage of the seek API function for live streams as an alternative to the timeShift API function
329
+ */
330
+ ENABLE_SEEK_FOR_LIVE: boolean;
331
+ /**
332
+ * Enables preloading of upcoming ad sources: the ad is prepared and its initial segments are prefetched while the
333
+ * current content is still playing.
334
+ */
335
+ ENABLE_AD_SEGMENT_PRELOADING: boolean;
336
+ /**
337
+ * Additional offset that is kept to the live edge when seeking
338
+ */
339
+ LIVE_EDGE_DISTANCE: number;
340
+ /**
341
+ * As timeshifting can never be completely exact due to asynchronous operations on the video element and a live edge
342
+ * which is always moving, this threshold controls the delta in which we still return the latest passed value of
343
+ * `player.timeShift()`.
344
+ */
345
+ ACCEPTABLE_TIMESHIFT_INACCURACY: number;
346
+ /**
347
+ * Max. PSNR difference that is allowed for chosen representation when Quality Optimized Streaming Data is present
348
+ */
349
+ QUALITY_THRESHOLD: number;
350
+ /**
351
+ * Max. PSNR value above which it doesn't make much sense. Netflix has said that scores under 35 dB will show
352
+ * encoding artifacts, while scores over 45 dB produce no perceptible quality improvements
353
+ */
354
+ QUALITY_UPPER_THRESHOLD: number;
355
+ /**
356
+ * The maximum number of VR errors that can be caught until a VRError is thrown.
357
+ */
358
+ MAX_CONSECUTIVE_VR_ERRORS: number;
359
+ /**
360
+ * The maximum number of renderer errors that can be caught until an Error is thrown.
361
+ */
362
+ MAX_CONSECUTIVE_RENDERER_ERRORS: number;
363
+ /**
364
+ * Disable backup stream failover for HLS on segment download failure
365
+ * If disabled, backup streams will be removed from HLS master playlist before translation to DASH MPD
366
+ */
367
+ DISABLE_HLS_BACKUP_STREAM_FAILOVER: boolean;
368
+ /**
369
+ * Timeout between a ready player (full buffer and issued play command) and a check if the player is actually playing.
370
+ * This is needed in order to check if autoplay is disabled on mobile devices.
371
+ */
372
+ PLAYBACK_TIMEOUT: number;
373
+ /**
374
+ * When switching playlists in HLS the the current segment position in the origin playlist should be used in the
375
+ * target playlist to continue loading. In the past we (illegally) used the segments' EXT-X-MEDIA-SEQUENCE to sync,
376
+ * which is often in sync across playlists for the "good" streams, but is not required to be.
377
+ */
378
+ HLS_SYNC_VIA_MEDIA_SEQUENCE: boolean;
379
+ /**
380
+ * Flag indicating whether downloading of next segments and refreshing of the manifest should be stopped on live
381
+ * streams
382
+ */
383
+ STOP_DOWNLOAD_ON_PAUSE: boolean;
384
+ /**
385
+ * Specifies the VR scheme id URI
386
+ */
387
+ VR_SCHEME_ID_URI: string;
388
+ /**
389
+ * Specifies the VR characteristics UTI for HLS
390
+ */
391
+ HLS_VR_CHARACTERISTICS_UTI: string;
392
+ /**
393
+ * Specifies the number of SegmentLoaders per mime type that should be available in the respective SegmentLoaderPool
394
+ * If not specified for a mime type the default is 1. Should be an object, e.g. { audio: 1, video: 3 }
395
+ */
396
+ SEGMENT_LOADER_POOL_SIZE: SegmentLoaderPoolSizeMap;
397
+ /**
398
+ * Indicates if hls manifests should be parsed and processed by the player
399
+ */
400
+ NATIVE_HLS_PARSING: boolean;
401
+ /**
402
+ * Indicates if hls download errors should be processed by the player
403
+ */
404
+ NATIVE_HLS_DOWNLOAD_ERROR_HANDLING: boolean;
405
+ /**
406
+ * Indicates if special akamai date time format should be parsed
407
+ */
408
+ AKAMAI_DATETIME_PARSING: boolean;
409
+ /**
410
+ * Option to handle certain problems with the QJY browser used in the Tatasky dongle
411
+ */
412
+ QJY_BROWSER_WORKAROUND: boolean;
413
+ /**
414
+ * Allows to use the Tizen module on non-Tizen platforms. This tweak requires the Tizen module to be effective.
415
+ */
416
+ DWORD_BASE_MEDIA_DECODE_TIMESTAMPS: boolean;
417
+ /**
418
+ * If set, every BaseMediaDecodeTime in data segments will be rewritten, regardless if they exceed 32 bits or not.
419
+ * The tizen or webOS module has to be present and the player should run on Tizen or webOS TV.
420
+ *
421
+ * Using this tweak might cause some unwanted problems when content has short discontinuities (e.g. SSAI streams).
422
+ * Enabling the tweak is only recommended when the playback experience is improved on testing.
423
+ */
424
+ FORCE_BASE_MEDIA_DECODE_TIME_REWRITE: boolean;
425
+ /**
426
+ * Maximum Base Media Decode Time value that is considered safe on the webOS platform. Any exceeding value will be
427
+ * rewritten to be smaller. This tweak requires the webOS module.
428
+ *
429
+ * Default value is 2**38 - 1 (aka 38 bits) on webOS 2016-2019, and `Infinity` on webOS 2020+.
430
+ */
431
+ WEBOS_MAX_SAFE_BMDT: number;
432
+ /**
433
+ * Maximum Presentation Time Offset value that is considered safe on the webOS platform. Any exceeding value will be
434
+ * rewritten to be smaller. This tweak requires the webOS module.
435
+ *
436
+ * Default value is 2**22 - 1 (aka 22 bits) on webOS 2016-2019, and `Infinity` on webOS 2020+.
437
+ */
438
+ WEBOS_MAX_SAFE_PTO: number;
439
+ /**
440
+ * Maximum Base Media Decode Time value that is considered safe on the Tizen platform. Any exceeding value will be
441
+ * rewritten to be smaller. This tweak requires the Tizen module.
442
+ *
443
+ * Default value is 2**32 - 1 (aka 32 bits) on Tizen 2016-2018, and `Infinity` on Tizen 2019+.
444
+ */
445
+ TIZEN_MAX_SAFE_BMDT: number;
446
+ /**
447
+ * Maximum Presentation Time Offset value that is considered safe on the Tizen platform. Any exceeding value will be
448
+ * rewritten to be smaller. This tweak requires the Tizen module.
449
+ *
450
+ * Default value is 2**32 - 1 (aka 32 bits) on Tizen 2016-2018, and `Infinity` on Tizen 2019+.
451
+ */
452
+ TIZEN_MAX_SAFE_PTO: number;
453
+ /**
454
+ * Maximum Base Media Decode Time value that is considered safe on the VIDAA platform. Any exceeding value will be
455
+ * rewritten to be smaller. This tweak requires the VIDAA module.
456
+ *
457
+ * Default value is 32 bits
458
+ */
459
+ VIDAA_MAX_SAFE_BMDT: number;
460
+ /**
461
+ * Maximum Presentation Time Offset value that is considered safe on the VIDAA platform. Any exceeding value will be
462
+ * rewritten to be smaller. This tweak requires the VIDAA module.
463
+ *
464
+ * Default value is 32 bits
465
+ */
466
+ VIDAA_MAX_SAFE_PTO: number;
467
+ /**
468
+ * Distance to the video element `duration`, in seconds, within which Vizio 2019 and older arm
469
+ * the timer that synthesises the missing `ended` event.
470
+ *
471
+ * Default value is 2 seconds
472
+ */
473
+ TRANSITION_TO_ENDED_TOLERANCE: number;
474
+ /**
475
+ * Groups adaptation sets and switches between them based on their `group` attribute instead of the recommended
476
+ * `SupplementalProperty` `urn:mpeg:dash:adaptation-set-switching:2016`.
477
+ */
478
+ ADAPTATION_SET_SWITCHING_WITHOUT_SUPPLEMENTAL_PROPERTY: boolean;
479
+ /**
480
+ * Specifies the minimum time interval in seconds between succeeding backward buffer clearing calls.
481
+ */
482
+ MINIMAL_BACKWARD_BUFFER_CLEARING_INTERVAL: number;
483
+ /**
484
+ * Flag to enable streaming of chunked CMAF media segments
485
+ */
486
+ CHUNKED_CMAF_STREAMING: boolean;
487
+ /**
488
+ * Default target latency for live low latency streaming.
489
+ */
490
+ LOW_LATENCY_DEFAULT_TARGET_LATENCY: number;
491
+ /**
492
+ * Minimum amount of buffer that must be present for the live latency catchup to be done. If the buffer level is lower
493
+ * the player will from trying to catch up to the target latency.
494
+ */
495
+ LOW_LATENCY_BUFFER_GUARD: number;
496
+ /**
497
+ * The default playback rate to be used for live low latency fallback
498
+ */
499
+ LOW_LATENCY_DEFAULT_FALLBACK_PLAYBACK_RATE: number;
500
+ /**
501
+ * The default playback rate to be used for live low latency catchup
502
+ */
503
+ LOW_LATENCY_DEFAULT_CATCHUP_PLAYBACK_RATE: number;
504
+ /**
505
+ * When timeshifting to the live edge in low latency mode, adjust the actual target by adding this
506
+ * many seconds to not fall behind the target latency
507
+ */
508
+ LOW_LATENCY_SEEK_AHEAD: number;
509
+ /**
510
+ * Disables grouping of audio renditions by name. With this enabled, every audio rendition will be a separate
511
+ * available audio (and not a quality).
512
+ */
513
+ IGNORE_HLS_AUDIO_GROUPS: boolean;
514
+ /**
515
+ * Flag to enable prefetching of main content segments during ad playback to speed up the switch from ad to content.
516
+ */
517
+ OPTIMIZE_AD_RESTORATION: boolean;
518
+ /**
519
+ * Defines the duration in seconds of content that shall be prefetched during ad playback to speed up the content
520
+ * restoration.
521
+ */
522
+ AD_RESTORATION_SEGMENT_PREFETCHING_DURATION: number;
523
+ /**
524
+ * Defines the minimal buffer level that is considered safe, as in playback can start immediately for all supported
525
+ * devices and platforms.
526
+ */
527
+ MIN_SAFE_BUFFER_LEVEL: number;
528
+ /**
529
+ * Factor to calculate the desired thumbnail resolution based on the player resolution.
530
+ */
531
+ THUMBNAIL_TO_PLAYER_SIZE_RATIO: number;
532
+ /**
533
+ * If set, `keyerror` events will be ignored for Fairplay when more than one `needkey` event was triggered with
534
+ * identical `initData`.
535
+ */
536
+ FAIRPLAY_IGNORE_DUPLICATE_INIT_DATA_KEY_ERRORS: boolean;
537
+ /**
538
+ * Specifies whether the Player should not adjust the target buffer levels after a `QuotaExceededError`.
539
+ */
540
+ NO_QUOTA_EXCEEDED_ADJUSTMENT: boolean;
541
+ /**
542
+ * Specifies whether live content should resume playback from the same position it was prior to the ad break.
543
+ * Default is `false`: the live content will be replaced for the duration of the ad break, and playback will resume
544
+ * with the same distance from live edge as before the ad break.
545
+ *
546
+ * Note: this tweak is ignored if `Advertising.AdConfig.replaceContentDuration` is set. In such case, the live
547
+ * content is rather replaced for the duration defined via this config as opposed to using the ad duration.
548
+ */
549
+ RESUME_LIVE_CONTENT_AT_PREVIOUS_POSITION_AFTER_AD_BREAK: boolean;
550
+ /**
551
+ * Specifies the minimal effective download time - that is the total elapsed time of the download minus the
552
+ * time-to-first-byte - that a segment download must take before it can be cancelled by the adaptation logic, to
553
+ * ensure that the initial bandwidth measurements don't cause downloads to get cancelled erroneously. This may happen
554
+ * because the calculated bandwidth may be inaccurate when only little time has passed since the download started.
555
+ *
556
+ * Default value is 0.5 seconds.
557
+ */
558
+ MIN_EFFECTIVE_SEGMENT_DOWNLOAD_TIME: number;
559
+ /**
560
+ * All properties within this "fixed" object can not be overwritten using the getSettings function
561
+ * in {@link PlayerConfiguration}
562
+ */
563
+ fixed: {
564
+ /**
565
+ * The public name of this app.
566
+ */
567
+ APP_NAME: string;
568
+ /**
569
+ * The current version number of this app.
570
+ */
571
+ VERSION: string;
572
+ };
573
+ /**
574
+ * This makes segments to be requested again when seeking backwards as instant quality switch implementation
575
+ * workarounds would stop working.
576
+ */
577
+ CLEAR_BUFFERS_ON_SEEKING_BACKWARDS: boolean;
578
+ /**
579
+ * If MP4 segment is invalid, we drop it. This may cause a gap but it can also allow
580
+ * the stream continue without throwing an error.
581
+ */
582
+ DROP_INVALID_SEGMENTS: boolean;
583
+ /**
584
+ * If set to a value greater than 0, gaps in the content will be skipped proactively. The skip distance defines how
585
+ * many seconds prior to the gap, the gap will be skipped.
586
+ *
587
+ * Default value is 0, which disables proactive gap skipping.
588
+ */
589
+ PROACTIVE_GAP_SKIP_DISTANCE_SECONDS: number;
590
+ /**
591
+ * Gaps in content that are smaller than this value will not be skipped. This tweak should be used if gap skipping
592
+ * is unnecessary: some browsers are able to play through small gaps in content without getting stuck.
593
+ *
594
+ * Default value is 0, which means that all encountered gaps will be skipped.
595
+ */
596
+ MIN_SIZE_FOR_GAP_SKIPPING: number;
597
+ /**
598
+ * If set, software decryption is used over using WebCrypto API for segments that the player manually decrypts, i.e.
599
+ * DASH ClearKey-protected and HLS AES-128-protected content.
600
+ *
601
+ * Note: Proper DRM-protection such as Widevine and PlayReady is not affected by this tweak as decryption is handled
602
+ * by the browser in this case.
603
+ */
604
+ FORCE_SOFTWARE_DECRYPTION: boolean;
605
+ /**
606
+ * Specifies the interval in seconds that should be used to proactively check for segment download progress. This
607
+ * enables eager and proactive download cancellations even before the headers for a given segment request were
608
+ * received.
609
+ *
610
+ * Default value is `0.5`. A value of `0` disables proactive segment download progress checks.
611
+ */
612
+ SEGMENT_LOADING_PROGRESS_CHECK_INTERVAL: number;
613
+ /**
614
+ * Temporary feature flag. When enabled, the segment infos are taken from the store rather than from MPD handlers.
615
+ *
616
+ * Default is `false`.
617
+ */
618
+ ENABLE_SEGMENT_INFO_PROVIDER_FROM_STORE: boolean;
619
+ /**
620
+ * When set, the playback times of the segments between HLS playlist are synced using
621
+ * media sequence number during quality switch.
622
+ *
623
+ * Default is `false`.
624
+ */
625
+ HLS_SYNC_SEGMENT_PLAYBACK_TIME_VIA_MEDIA_SEQUENCE: boolean;
626
+ /**
627
+ * When set, the player will parse the manifest in a worker thread. This can improve the performance of the player
628
+ * when the manifest is large.
629
+ *
630
+ * Default is `false`.
631
+ */
632
+ HLS_PARSE_MANIFEST_IN_WORKER: boolean;
633
+ /**
634
+ * When set, we create new BufferBlock for segments with different discontinuities
635
+ * and the SourceBuffers will be cleared. Can be switched off for certain streams
636
+ * to gain more performance and seamless playback on discontinuity boundaries.
637
+ *
638
+ * Default is `false`.
639
+ */
640
+ HLS_CLEAR_BUFFERS_ON_DISCONTINUITY_SWITCHES: boolean;
641
+ /**
642
+ * Whether the player should parse and process `emsg` boxes from MP4 segments.
643
+ *
644
+ * Default is `true.`
645
+ */
646
+ PARSE_EMSG_BOXES: boolean;
647
+ /**
648
+ * WISH ABR logic configuration options.
649
+ */
650
+ WISH_ABR_PARAMS: WishAbrConfig;
651
+ /**
652
+ * Defines the duration in seconds after which the backup stream penalization is considered to be expired.
653
+ * The penalty is applied when a playlist, or one of its segments, has failed to load, and the player has
654
+ * triggerd failover to a backup stream.
655
+ *
656
+ * Default is 30 seconds.
657
+ */
658
+ HLS_BACKUP_STREAM_PENALTY_DURATION: number;
659
+ /**
660
+ * If set, the player checks all available DRM licenses when the key status for a KID updates.
661
+ *
662
+ * Instead of surfacing an error once the KID becomes unusable on a license, the key status for the KID is checked
663
+ * across all licenses. Only if the KID is not usable on any of the licenses an error is thrown.
664
+ *
665
+ * Default is `true`.
666
+ */
667
+ CHECK_ALL_DRM_LICENSES_FOR_KID: boolean;
668
+ /**
669
+ * Controls whether the player should consume partial segments from a Low Latency playlist (`true`) or only consume complete segments in backwards compatibility mode (`false`).
670
+ *
671
+ * Default is `true`.
672
+ */
673
+ LL_HLS: boolean;
674
+ /**
675
+ * The tolerance in seconds to be considered when matching segment end times.
676
+ *
677
+ * Default is 0.1
678
+ */
679
+ LL_HLS_SEGMENT_END_TIME_MATCHING_TOLERANCE: number;
680
+ /**
681
+ * Controls the maximum age for Low Latency HLS blocking playlist reloads in multiples of the `PART-TARGET` attribute
682
+ * of the `#EXT-X-PART-INF` tag. For example, if the `PART-TARGET` attribute in the playlist is 1.1 seconds, and this
683
+ * is set to 2, the threshold for enabling blocking playlist reloads is 2.2 seconds.
684
+ *
685
+ * Default is 2.
686
+ */
687
+ LL_HLS_MAX_PLAYLIST_AGE_FOR_BLOCKING_REQUEST_IN_PART_TARGET_MULTIPLES: number;
688
+ /**
689
+ * Indicates if native metadata should be processed by the player, and exposed as ID3 metadata events
690
+ */
691
+ HLS_PARSE_NATIVE_METADATA: boolean;
692
+ /**
693
+ * Use `ManagedMediaSource` over regular `MediaSource` when both are available.
694
+ *
695
+ * Default is `true`.
696
+ */
697
+ PREFER_MANAGED_MEDIA_SOURCE: boolean;
698
+ /**
699
+ * If a live stream becomes unreachable during playback, i.e. requests are failing for segments and/or HLS playlists,
700
+ * the player will not throw an error after all qualities have been tried if the tweak is set. Instead, it will keep
701
+ * trying and, in case the stream comes back online, the player will resume playback.
702
+ * If the tweak is disabled, the player will throw a network error after exhausting all qualities.
703
+ *
704
+ * Default is `true`.
705
+ *
706
+ * @since v8.175.0
707
+ */
708
+ INFINITE_RETRIES_FOR_LIVE: boolean;
709
+ /**
710
+ * For live streams, `Infinity` is typically set as `duration` on the `MediaSource` object. This can cause problems
711
+ * on some legacy platforms. On those, finite values like `Number.MAX_SAFE_INTEGER` could resolve playback start
712
+ * issues of live streams.
713
+ *
714
+ * Default is `Infinity`.
715
+ *
716
+ * @since v8.192.0
717
+ */
718
+ MAX_SAFE_MSE_DURATION: number;
719
+ /**
720
+ * Enable logging of native HTMLMediaElement events. Requires {@link LogLevel.DEBUG} or higher.
721
+ *
722
+ * Default is `false`.
723
+ */
724
+ ENABLE_MEDIA_ELEMENT_EVENT_LOGS: boolean;
725
+ /**
726
+ * Enable logging of HTMLMediaElement setter and method calls. Requires {@link LogLevel.DEBUG} or higher.
727
+ *
728
+ * Default is `false`.
729
+ */
730
+ ENABLE_MEDIA_ELEMENT_ACTION_LOGS: boolean;
731
+ /**
732
+ * By default, the player will generally try to download audio and video segments in parallel as long as their buffer
733
+ * levels are equal, while favoring the media with the lower buffer level when they differ. Also, the player will
734
+ * download data and init segments concurrently.
735
+ * Setting this tweak to true will instead disable parallel segment loading. In this case, the player will favor the
736
+ * downloading of video segments over audio ones when their buffer levels are the same. Moreover, init and data
737
+ * segments will always be downloaded sequencially if the tweak is enabled.
738
+ *
739
+ * Default is `false`.
740
+ *
741
+ * @since v8.198.0
742
+ */
743
+ DISABLE_PARALLEL_SEGMENT_LOADING: boolean;
744
+ /**
745
+ * When calling `player.mute()` the player will normally only set the `muted` flag on the media element. Chromium
746
+ * based browsers can pause muted media elements when a different tab is selected in order to safe battery.
747
+ *
748
+ * When this flag is set to true, the player will ensure the `muted` flag is not set on the media element and
749
+ * only the volume is set to 0. This prevents the browser from pausing the media element, ensuring uninterrupted
750
+ * playback but may result in higher battery consumption. The player will still report the same values for
751
+ * `isMuted()` and `getVolume()` as if the tweak was not set (muted = true, volume > 0).
752
+ *
753
+ * Default is `false`.
754
+ *
755
+ * @since v8.206.0
756
+ */
757
+ ENABLE_MUTED_BACKGROUND_PLAYBACK: boolean;
758
+ /**
759
+ * In case of live streams that require manifest updates, this tweak causes the player to delay the scheduling of
760
+ * such updates until playback has started, which can help improve startup time on slower devices. Does not take
761
+ * an effect on HLS low latency streams.
762
+ *
763
+ * Default is `true`.
764
+ *
765
+ * @since v8.209.0
766
+ */
767
+ POSTPONE_MANIFEST_UPDATES_UNTIL_PLAYBACK_START: boolean;
768
+ /**
769
+ * When set, the SourceBuffers will be cleared when transitioning from one DASH period to another, even when content
770
+ * has compatible characteristics. Enabling this tweak can impact playback performance as transitions may become more
771
+ * noticeable to the user, however it can also help overcoming playback issues that may arise when working with DASH
772
+ * streams having inconsistencies in the timing model.
773
+ *
774
+ * Default is `false`. Buffers will only be cleared when strictly necessary, such as when transitioning from
775
+ * encrypted to unencrypted content or vice versa.
776
+ * However, if a {@link SourceConfigOptions.shouldRecreateSourceBuffersOnPeriodSwitch} callback is defined as part of
777
+ * the `SourceConfig`, the player will autonomously consider this default to be `true` instead, so that the intended
778
+ * behavior of the callback is still achieved, i.e. execute on every period switch.
779
+ * If your {@link SourceConfigOptions.shouldRecreateSourceBuffersOnPeriodSwitch} implementation is rather intended
780
+ * for disabling source buffer recreation for performance reasons, then it's recommended to set this tweak to `false`
781
+ * explicitly, so that any unnecessary buffer clearings can be avoided as well. Note that in this case the callback
782
+ * will only run for relevant period switches that require buffer clearing in any case (e.g. when transitioning from
783
+ * encrypted to unencrypted content and vice versa).
784
+ *
785
+ * @since v8.215.0
786
+ */
787
+ DASH_CLEAR_BUFFERS_ON_PERIOD_SWITCHES: boolean;
788
+ /**
789
+ * If set, the player will not handle DVR window exceeded event by its default behavior of seeking to the live edge.
790
+ * This is useful in case a custom behavior is desired, such as seeking to a specific position of the DVR window.
791
+ * Default is `false`, meaning that the player will seek to the live edge when the DVR window is exceeded.
792
+ *
793
+ * @since v8.221.0
794
+ */
795
+ DISABLE_AUTO_RECOVERY_ON_DVR_WINDOW_EXCEEDED: boolean;
796
+ /**
797
+ * Enables handling of HLS Interstitials (and SGAI in general in the future).
798
+ */
799
+ ENABLE_SGAI_HANDLING: boolean;
800
+ /**
801
+ * Compensation value in seconds to account for the trigger delay caused by the `TimeChanged` event interval.
802
+ *
803
+ * Default is `0`.
804
+ */
805
+ SGAI_TRIGGER_DELAY_COMPENSATION: number;
806
+ /**
807
+ * Enables additional debug logs that surface time measurements for certain operations performed in the player.
808
+ * Such performance logs are prefixed with `[Performance]`.
809
+ *
810
+ * Default is `false`.
811
+ *
812
+ * @since v8.41.0
813
+ */
814
+ ENABLE_PERFORMANCE_LOGS: boolean;
815
+ /**
816
+ * Temporary feature flag that can be used to enable HLS content steering experimental features.
817
+ *
818
+ * Default is `false`.
819
+ */
820
+ ENABLE_HLS_CONTENT_STEERING: boolean;
821
+ /**
822
+ * When enabled on Tizen TV, the player delays signaling the end of stream to the MSE until the playback position is
823
+ * within 2 seconds of the end of the buffered range. This can help avoid playback issues on certain Tizen TV models
824
+ * where calling `endOfStream()` early can increase the risk of playback issues.
825
+ *
826
+ * Default is `false`. Enabled by default on Tizen 2022 when the Tizen module is loaded.
827
+ */
828
+ TIZEN_DELAY_END_OF_STREAM_SIGNALING: boolean;
829
+ /**
830
+ * The amount of audio buffer in seconds to preserve ahead of the playhead when switching audio tracks.
831
+ *
832
+ * Default is `2`.
833
+ */
834
+ AUDIO_TRACK_SWITCH_BUFFER_GRACE_PERIOD: number;
835
+ /**
836
+ * When enabled, audio track switches preserve existing audio buffer ahead of the playhead instead of clearing the
837
+ * whole audio buffer, making the switch smoother by avoiding a playback interruption.
838
+ *
839
+ * Default is `false`.
840
+ */
841
+ DISABLE_AUDIO_BUFFER_CLEARING_ON_TRACK_SWITCH: boolean;
842
+ /**
843
+ * When enabled, the MediaSource and SourceBuffers may get re-used across content switches, e.g. when loading a new
844
+ * source, or when switching to a streaming ad using the Bitmovin Advertising Module or SGAI module.
845
+ *
846
+ * It will not have any effect when the IMA Advertising Module is loaded.
847
+ *
848
+ * Default is `false`.
849
+ */
850
+ ENABLE_SOURCEBUFFER_REUSE_ON_CONTENT_SWITCH: boolean;
851
+ }
852
+ export type SegmentLoaderPoolSizeMap = {
853
+ [type in MediaType]?: number;
854
+ };
855
+ export declare const WishDefaultConfig: WishAbrConfig;
856
+ export declare const DefaultSettings: Settings;