Converting video file m4v to NSData

1.6k Views Asked by At

Can I know how to convert a video file in the format m4v to NSData and vice versa?

Thanks

1

There are 1 best solutions below

1
Thukaram On BEST ANSWER

Converting video file into nsdata

NSData *videoData = [NSData dataWithContentsOfFile:videofilepath];

or else video from url

NSData *videoData = [NSData dataWithContentsOfURL:videourl];