HHK1 / PryntTrimmerView

A set of tools to trim, crop and select frames inside a video
MIT License
835 stars 199 forks source link

How to trim the asset #73

Closed coder123-star closed 3 years ago

coder123-star commented 3 years ago

I have implemented this into my project, I am wondering how I can get the trimmed video. Is there a function or code that I need to add?

HHK1 commented 3 years ago

Trimming of the assets is not provided by the library. The goal of this package is to give you UI controls, the implementation of actual trimming/cropping is up to you.

You can take a look at this thread for an example: https://stackoverflow.com/questions/35696188/how-to-trim-a-video-in-swift-for-a-particular-time

Or https://github.com/HHK1/PryntTrimmerView/blob/master/PryntTrimmerViewExample/VideoCropperViewController.swift for an example of cropping the video