Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以知道如何将 m4v 格式的视频文件转换为 NSData,反之亦然?
谢谢
将视频文件转换为 nsdata
NSData *videoData = [NSData dataWithContentsOfFile:videofilepath];
或者来自网址的视频
NSData *videoData = [NSData dataWithContentsOfURL:videourl];