Commit d23943d
committed
fix(relay): scope manifest classification to .m3u8/.mpd extensions
The relay's "manifest" URL convention (/play/<id>/manifest.<ext>) covers
both HLS playlists and progressive MP4 responses. LooksLikeManifestPath
was matching any filename starting with "manifest.", so manifest.mp4
went through the line-by-line text rewriter and shipped as
Transfer-Encoding: chunked without Content-Length -- WMF/NSPlayer
disconnects on the first byte under that response shape, which surfaced
as immediate load_failure for any YouTube video that resolved to a
progressive MP4 format.
Tighten the heuristic to require either an extensionless "manifest"
filename or a known manifest extension (.m3u8 / .mpd). The Content-Type
fallback still catches manifests served from unconventional URL shapes.1 parent f683ced commit d23943d
2 files changed
Lines changed: 31 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| 363 | + | |
363 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
364 | 370 | | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
365 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
366 | 385 | | |
367 | 386 | | |
368 | 387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
206 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
207 | 216 | | |
208 | 217 | | |
209 | 218 | | |
| |||
0 commit comments