media-encoder-host-worker
Version:
The worker which is used by the media-encoder-host package.
10 lines • 398 B
JavaScript
export const createGetEncoderInstance = (encoderInstancesRegistry) => {
return (encoderInstanceId) => {
const entry = encoderInstancesRegistry.get(encoderInstanceId);
if (entry === undefined) {
throw new Error('There was no instance of an encoder stored with the given id.');
}
return entry;
};
};
//# sourceMappingURL=get-encoder-instance.js.map