File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,10 @@ export class ReplayContainer implements ReplayContainerInterface {
343
343
...( canvas && {
344
344
recordCanvas : true ,
345
345
sampling : { canvas : canvas . fps || 4 } ,
346
- dataURLOptions : { quality : canvas . quality || 0.6 } ,
346
+ dataURLOptions : {
347
+ type : canvas . type || 'image/webp' ,
348
+ quality : canvas . quality || 0.6 ,
349
+ } ,
347
350
getCanvasManager : canvas . manager ,
348
351
} ) ,
349
352
} ) ;
Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ export interface ReplayPluginOptions extends ReplayNetworkOptions {
235
235
canvas : {
236
236
fps ?: number ;
237
237
quality ?: number ;
238
+ type ?: string ;
238
239
manager : ( options : GetCanvasManagerOptions ) => CanvasManagerInterface ;
239
240
} ;
240
241
} > ;
You can’t perform that action at this time.
0 commit comments