Creates a new ShareProcessor
.
port message port - The message port used for communication.
customised options - Optional processor configuration.
The communication port used for messaging between the processor and the main thread.
Retrieves the OffscreenCanvas
that renders the current output frame or processed result.
Called when the processor is initializated.
Called when the processor is uninitialized.
Processes a share frame and optionally applies effects or transformations.
The input share frame to process.
The canvas where the processed frame is rendered.
true
/false
or a Promise
that resolves to a boolean
indicating success or failure.
Base class for all source share stream processors.