Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Nov 17, 2023
1 parent e67a5f4 commit 424dbcb
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions ts/Renderer/RendererManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,17 @@ export class RendererManager extends IRendererManager {
}
}

/**
* @ignore
*/
private getRender({
videoSourceType,
channelId,
uid,
}: VideoFrameCacheConfig) {
return this.renderers.get(videoSourceType)?.get(channelId)?.get(uid);
}

/**
* @ignore
*/
Expand All @@ -445,10 +456,7 @@ export class RendererManager extends IRendererManager {
channelId,
uid,
}: VideoFrameCacheConfig): IRenderer[] {
return (
this.renderers.get(videoSourceType)?.get(channelId)?.get(uid)?.renders ||
[]
);
return this.getRender({ videoSourceType, channelId, uid })?.renders || [];
}

/**
Expand Down

0 comments on commit 424dbcb

Please sign in to comment.