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

Thanks

有帮助吗?

解决方案

Converting video file into nsdata

NSData *videoData = [NSData dataWithContentsOfFile:videofilepath];

or else video from url

NSData *videoData = [NSData dataWithContentsOfURL:videourl];
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top