获取本地视频 音频路径
2017-12-02 本文已影响15人
赤焰军少帅林殊
1 文件放在工程文件中
NSString *videoPath1 = [[NSBundle mainBundle]pathForResource:@"2" ofType:@"mp3"];
NSURL *recordedTmpFile = [NSURL fileURLWithPath:videoPath1];
2文件放在bundle文件中 再放在工程文件里面
NSString *videoPath1 = [[NSBundle mainBundle]pathForResource:@"sound" ofType:@"bundle"];
NSString *mp4string= [videoPath1 stringByAppendingPathComponent:@"1.mp3"];