但是在ios中如何将字节流转换为视频并在iphone中播放,有人能帮助我吗?
stream t = new Filestream ("video.mp4, FileMode.Create);
BinaryWriter b = new Binary_Writer(t);
b.write(videoData);
t.close();
解码b64,试试这个库:https://github.com/l4u/NSData-Base64
像这样使用:
NSString *videoPath = '...'; //output path for the video.mp4
NSString *encodedString = '...'; //the encoded "data"
NSData *decodedData = [NSData dataFromBase64String:encodedString];
[decodedData writeToFile:videoPath atomically:NO];