Commit 4837934
Fix false-positive MPEG2/VC-1 direct play on Xbox WebView2
browser.edgeUwp matches the WebView2 Xbox client's user agent (Edg/ +
WebView2), which was originally meant for the old EdgeHTML/UWP host
that could genuinely hardware-decode MPEG2/VC-1 via Windows Media
Foundation. Chromium/WebView2 cannot decode these codecs, so the
server was told direct play was supported, causing direct play
attempts to fail and fall back to transcoding.
Add an xboxOne guard to supportsMpeg2Video() and supportsVc1(),
mirroring the existing canPlayAv1() workaround for the same class of
WebView2-on-Xbox false positive.
Refs jellyfin/jellyfin-xbox#113
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 4983aec commit 4837934
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
240 | 245 | | |
241 | 246 | | |
242 | 247 | | |
243 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
244 | 254 | | |
245 | 255 | | |
246 | 256 | | |
| |||
0 commit comments