Skip to content

Commit

Permalink
Feat: Add blob-url support (shaka-project#3583)
Browse files Browse the repository at this point in the history
  • Loading branch information
Álvaro Velad Galván committed Aug 19, 2021
1 parent ef506ac commit 6a03207
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/net/http_fetch_plugin.js
Expand Up @@ -306,4 +306,8 @@ if (shaka.net.HttpFetchPlugin.isSupported()) {
'https', shaka.net.HttpFetchPlugin.parse,
shaka.net.NetworkingEngine.PluginPriority.PREFERRED,
/* progressSupport= */ true);
shaka.net.NetworkingEngine.registerScheme(
'blob', shaka.net.HttpFetchPlugin.parse,
shaka.net.NetworkingEngine.PluginPriority.PREFERRED,
/* progressSupport= */ true);
}
4 changes: 4 additions & 0 deletions lib/net/http_xhr_plugin.js
Expand Up @@ -158,4 +158,8 @@ shaka.net.NetworkingEngine.registerScheme(
'https', shaka.net.HttpXHRPlugin.parse,
shaka.net.NetworkingEngine.PluginPriority.FALLBACK,
/* progressSupport= */ true);
shaka.net.NetworkingEngine.registerScheme(
'blob', shaka.net.HttpXHRPlugin.parse,
shaka.net.NetworkingEngine.PluginPriority.FALLBACK,
/* progressSupport= */ true);

0 comments on commit 6a03207

Please sign in to comment.