NSString *videoUrl;
if (url.length > 6) {
NSArray *tempArray = [url componentsSeparatedByString:@"/"];
NSString *getUrl = [NSString stringWithFormat:@"%@",tempArray[tempArray.count - 1]];
NSString *cachesPath = [ExtensionObject fileExist:@"resource"];//获取本地资源列表路径
videoUrl = [NSString stringWithFormat:@"%@/%@",cachesPath,getUrl];
}
[self playVideo:videoUrl];
网友评论