سؤال

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