Multiple clipping areas on Fabric.js canvas

This can be accomplished with Fabric using the clipTo property, but you have to ‘reverse’ the transformations (scale and rotation), in the clipTo function. When you use the clipTo property in Fabric, the scaling and rotation are applied after the clipping, which means that the clipping is scaled and rotated with the image. You have … Read more

Record at constant fps with CanvasCaptureMediaStream even on slow computers

The MediaRecorder API is meant to record live-streams, doing edition is not what it was designed to do, and it doesn’t do it very well to be honest… The MediaRecorder itself has no concept of frame-rate, this is normally defined by the MediaStreamTrack. However, the CanvasCaptureStreamTrack doesn’t really make it clear what its frame rate … Read more