Skip to content

Commit

Permalink
feat: add data uri support in shaka package (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaDemchenko authored Nov 21, 2024
1 parent 205191d commit dab746b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/p2p-media-loader-shaka/src/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,14 @@ export class ShakaP2PEngine {
};
NetworkingEngine.registerScheme("http", handleLoading);
NetworkingEngine.registerScheme("https", handleLoading);
NetworkingEngine.registerScheme("data", handleLoading);
}

private static unregisterNetworkingEngineSchemes(shaka: Shaka) {
const { NetworkingEngine } = shaka.net;
NetworkingEngine.unregisterScheme("http");
NetworkingEngine.unregisterScheme("https");
NetworkingEngine.unregisterScheme("data");
}

/**
Expand Down

0 comments on commit dab746b

Please sign in to comment.