|
|
@@ -161,13 +161,21 @@
|
|
|
_dataArray = [NSMutableArray array];
|
|
|
|
|
|
for (int i = 0; i < _audioOutSidedataArray.count; i++) {
|
|
|
+
|
|
|
+ if(i!=_index){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
NASFileAudioDataModel *yourModel = _audioOutSidedataArray[i];
|
|
|
DFPlayerModel *model = [[DFPlayerModel alloc] init];
|
|
|
model.audioId = i;//****重要。AudioId从0开始,仅标识当前音频在数组中的位置。
|
|
|
|
|
|
NSString *filePath = yourModel.path;
|
|
|
NSString *urlStr = ksharedAppDelegate.NASFileService;
|
|
|
+
|
|
|
+ //filePath = [filePath stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
|
|
|
NSString *fileUrl = [[NSString alloc] initWithFormat:@"%@getFile?path=%@",urlStr,filePath];
|
|
|
+ HLog(@"%@",fileUrl);
|
|
|
//fileUrl = @"http://transfertest.armclouding.com:10006/getFile?path=/storage/emulated/0/Download/录音大师-2024.05.22-16:57.mp3";
|
|
|
//fileUrl = @"http://transfertest.armclouding.com:10010/getFile?path=/sdcard/Music/abc.mp3";
|
|
|
//fileUrl = @"http://m10.music.126.net/20240527160012/d3f165dc686ac01afd4497400b2c2c58/ymusic/5353/0f0f/0358/d99739615f8e5153d77042092f07fd77.mp3";
|
|
|
@@ -175,9 +183,11 @@
|
|
|
//fileUrl = @"https://www.cambridgeenglish.org/images/506891-a2-key-for-schools-listening-sample-test.mp3";
|
|
|
//fileUrl = @"http://downsc.chinaz.net/Files/DownLoad/sound1/201906/11582.mp3";
|
|
|
//fileUrl = @"http://downsc.chinaz.net/files/download/sound1/201206/1638.mp3";
|
|
|
+ fileUrl =@"http://192.168.11.248:9888/getFile?path=/storage/C47D-46D2/audioTest/jiajiaeeyinyue.mp3";
|
|
|
|
|
|
+// fileUrl = @"http://transfertest.armclouding.com:10001/getFile?path=/storage/6C07-E638/miniType/%E9%9F%B3%E9%A2%91%E6%A0%BC%E5%BC%8Fing/jiajiaeeyinyue.mp3";
|
|
|
+// fileUrl = [fileUrl stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
|
|
|
|
|
|
- fileUrl = [fileUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
|
|
|
NSURL * curURL = [NSURL fileURLWithPath:fileUrl];
|
|
|
HLog(@"%@",curURL.absoluteString);
|
|
|
model.audioUrl = curURL;
|