Skip to content

Commit 702296e

Browse files
authored
Add RequestModifier to the migration guide (#4778)
1 parent ee8a5c6 commit 702296e

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

pages/developers/migration-guides/4-to-5.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ parent: Migration Guides
55
grand_parent: Developers
66
---
77

8+
<details open markdown="block">
9+
<summary>
10+
Table of contents
11+
</summary>
12+
{: .text-delta }
13+
1. TOC
14+
{:toc}
15+
</details>
16+
817
# Migration guide - 4.x to 5.0
918

1019
dash.js version 5.0 introduces changes to the build files, settings and the APIs. This guide will help you migrate your
@@ -44,7 +53,8 @@ The following entry points are defined in the `package.json`:
4453

4554
More information about installation and building can be found [here](../../quickstart/installation.html).
4655

47-
Multiple examples how to use dash.js in your Typescript or Webpack based JavaScript project can be found in `samples/modules`.
56+
Multiple examples how to use dash.js in your Typescript or Webpack based JavaScript project can be found in
57+
`samples/modules`.
4858

4959
### Settings
5060

@@ -72,8 +82,8 @@ new [settings structure](https://github.com/Dash-Industry-Forum/dash.js/blob/dev
7282
The setting `stableBufferTime` has been renamed to `bufferTimeDefault` to align with the terminology used for setting
7383
the buffer target for the top quality and long form content:
7484

75-
| v4 | v5 | Description |
76-
|:-------------------|:--------------------|:-------------------------------------------------------------------------------------|
85+
| v4 | v5 | Description |
86+
|:-------------------|:--------------------|:----------------------------------------------------------------------------------|
7787
| `stableBufferTime` | `bufferTimeDefault` | See [Buffer Management](../../usage/buffer-management.html) for more information. |
7888

7989
#### changeType()
@@ -149,6 +159,12 @@ The method `getAdaptationForType()` has been renamed, use `getMainAdaptationForT
149159
|:-------------------------|:-----------------------------|:---------------------------------------------------------------------------------|
150160
| `getAdaptationForType()` | `getMainAdaptationForType()` | Returns the AdaptationSet for a given mediaType and a given `streamInfo` object. |
151161

162+
#### RequestModifier
163+
164+
The `RequestModifier` class has been removed. Instead, dash.js provides the opportunity to define network interceptors
165+
now. Network inceptors allow you to modify the outgoing network requests or the incoming network response data. For detailed
166+
information about network interceptors refer to the [Network Interceptor](../../usage/network-interceptor.html) section.
167+
152168
## Recommended changes
153169

154170
This section lists the recommended changes that you should consider when migrating from dash.js version 4.x to 5.0.

0 commit comments

Comments
 (0)