How to convert AVAsset to NSData using Swift?

I have a variable

var videoFile: AVAsset!

and it already contains (uploaded) MP4 video, so there’s no need to download or save the URL to your local drive.

I need to convert this videoFile to NSData strong> using Swift . How to do this conversion?

+4
source share

Source: https://habr.com/ru/post/1649831/


All Articles