canvas-video-cropper
v0.1.4
Published
## Before <img width="1033" alt="스크린샷 2022-11-23 오후 2 12 16" src="https://user-images.githubusercontent.com/76682009/203701022-488fb7d6-5f3e-4238-bf5b-f5d599be3ff8.png">
Downloads
2
Readme
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')