HHK1 / PryntTrimmerView

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

How to get the trimmed video from this delegate 'didChangePositionBar' #27

Closed prithiviraj closed 6 years ago

prithiviraj commented 6 years ago

Can you please help me how to get the trimmed video from this delegate 'didChangePositionBar'

HHK1 commented 6 years ago

Hi @prithiviraj. didChangePositionBar is a delegate method to help you synchronise your video player with the trimmer. Also, this library does not make the work of trimming the video for you. Please refer to the readme and the example app if you don't know how to do this.

Access the startTime and endTime property to know where to trim your asset. You can use the TrimmerViewDelegate to link the trimmer with an AVPlayer and provide the end user with a preview. See the VideoTrimmerViewController inside the project to see an example.