视频地址截取转成本地资源列表路径

2017-07-24  本文已影响0人  eb7a9dac29d0

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];

上一篇 下一篇

猜你喜欢

热点阅读