Skip to content

Commit

Permalink
Register the media accessible URL sid
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Feb 26, 2024
1 parent 0eaca2b commit 1f06f53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bit-systems/media-loading.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ function* loadMedia(world: HubsWorld, eid: EntityID) {
let media: EntityID;
try {
const urlData = (yield resolveMediaInfo(src)) as MediaInfo;
APP.getSid(urlData.accessibleUrl); // Register the sid as this is what we will get over the network for media.
media = yield* loadByMediaType(world, eid, urlData);
addComponent(world, MediaRoot, eid);
addComponent(world, MediaLoaded, media);
Expand Down

0 comments on commit 1f06f53

Please sign in to comment.