diff --git a/lib/net/http_fetch_plugin.js b/lib/net/http_fetch_plugin.js index b5320258c6..b73178be0c 100644 --- a/lib/net/http_fetch_plugin.js +++ b/lib/net/http_fetch_plugin.js @@ -243,6 +243,16 @@ shaka.net.HttpFetchPlugin = class { } else { return false; } + // Old fetch implementations hasn't body and ReadableStream implementation + // See: https://github.com/shaka-project/shaka-player/issues/5088 + if (window.Response) { + const response = new Response(''); + if (!response.body) { + return false; + } + } else { + return false; + } return !!(window.fetch && window.AbortController); } };