0.1.4 • Published 1 year ago
canvas-video-cropper v0.1.4
Belivvr canvas video cropper
Before
After
interface Props {
targetVideo: HTMLVideoElement;
canvas: HTMLCanvasElement;
view: HTMLCanvasElement;
ratio: number;
width: number;
height: number;
}
export function makeEditedVideo({
targetVideo,
canvas,
view,
ratio,
width,
height,
}: Props): void;
Step
- prepare pseudo canvas, view canvas, choose the video that you want to crop.
- use function makeEditedVideo for crop.
- if success, get video like this. (id = 'maked-video')