We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
canvas.type
1 parent 8fb1a2f commit 84299d0Copy full SHA for 84299d0
packages/replay/src/replay.ts
@@ -343,7 +343,10 @@ export class ReplayContainer implements ReplayContainerInterface {
343
...(canvas && {
344
recordCanvas: true,
345
sampling: { canvas: canvas.fps || 4 },
346
- dataURLOptions: { quality: canvas.quality || 0.6 },
+ dataURLOptions: {
347
+ type: canvas.type || 'image/webp',
348
+ quality: canvas.quality || 0.6,
349
+ },
350
getCanvasManager: canvas.manager,
351
}),
352
});
packages/replay/src/types/replay.ts
@@ -235,6 +235,7 @@ export interface ReplayPluginOptions extends ReplayNetworkOptions {
235
canvas: {
236
fps?: number;
237
quality?: number;
238
+ type?: string;
239
manager: (options: GetCanvasManagerOptions) => CanvasManagerInterface;
240
};
241
}>;
0 commit comments