|
@@ -173,11 +173,22 @@
|
|
|
NSString *filePath = yourModel.path;
|
|
|
NSString *urlStr = ksharedAppDelegate.NASFileByBoxService;
|
|
|
|
|
|
+ NSString *string = filePath;
|
|
|
+ NSData *data = [string dataUsingEncoding:NSUTF8StringEncoding];
|
|
|
+ NSString *filePathBase64 = [data base64EncodedStringWithOptions:NSDataBase64EncodingEndLineWithLineFeed];
|
|
|
+
|
|
|
+ NSData *data2 = [[NSData alloc] initWithBase64EncodedString:filePathBase64 options:NSDataBase64DecodingIgnoreUnknownCharacters];
|
|
|
+
|
|
|
+ NSString *string32 =[[NSString alloc] initWithData:data2 encoding:NSUTF8StringEncoding];
|
|
|
+ HLog(@"hxd1111: %@",string32);
|
|
|
+
|
|
|
//filePath = [filePath stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
|
|
|
- NSString *fileUrl = [[NSString alloc] initWithFormat:@"%@getFile?path=%@",urlStr,filePath];
|
|
|
- HLog(@"%@",fileUrl);
|
|
|
+ //NSString *fileUrl = [[NSString alloc] initWithFormat:@"%@getFile?path=%@",urlStr,filePath];
|
|
|
+ //NSString *fileUrl = [[NSString alloc] initWithFormat:@"%@getFiles?path=%@",urlStr,filePath];
|
|
|
+ NSString *fileUrl = [[NSString alloc] initWithFormat:@"%@getFiles/%@",urlStr,filePathBase64];
|
|
|
+ HLog(@"hxd2222:%@",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";
|
|
|
//fileUrl = @"https://www.cambridgeenglish.org/images/153149-movers-sample-listening-test-vol2.mp3";
|
|
|
//fileUrl = @"https://www.cambridgeenglish.org/images/506891-a2-key-for-schools-listening-sample-test.mp3";
|
|
@@ -185,10 +196,16 @@
|
|
|
//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:21025/getFiles/L3N0b3JhZ2UvZW11bGF0ZWQvMC9NdXNpYy9hYmMubXAz";
|
|
|
- fileUrl =@"http://transfertest.armclouding.com:21025/test/abc/abc.mp3";
|
|
|
- //fileUrl =@"http://transfertest.armclouding.com:21025/getFiles/L3N0b3JhZ2UvZW11bGF0ZWQvMC9NdXNpYy9hYmMubXAz";
|
|
|
-
|
|
|
+
|
|
|
+ //fileUrl = @"http://downsc.chinaz.net/files/download/sound1/201206/1638.mp3";
|
|
|
+ //fileUrl = @"http://transfertest.armclouding.com:21025/test/abc/abc.mp3";
|
|
|
+ //fileUrl = @"http://transfertest.armclouding.com:21025/test/abc/obj.mp3"; //0603 16:40验证可以播放
|
|
|
+ //fileUrl = @"http://file.phone.androidscloud.com:8210/document/newFile/download/1/ikIm5C0KjKNvusTF6tIH/LowLevelMultipartUpload_44933618366140107699/1.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 = @"http://transfertest.armclouding.com:21025/getFiles/L3N0b3JhZ2UvZW11bGF0ZWQvMC9NdXNpYy9vYmoubXAz";
|
|
|
+
|
|
|
// fileUrl = [fileUrl stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
|
|
|
|
|
|
NSURL * curURL = [NSURL fileURLWithPath:fileUrl];
|
|
@@ -282,6 +299,12 @@
|
|
|
|
|
|
}
|
|
|
|
|
|
+- (void)viewDidDisappear:(BOOL)animated
|
|
|
+{
|
|
|
+ [super viewDidDisappear:animated];
|
|
|
+ [[DFPlayer sharedPlayer] df_pause];
|
|
|
+}
|
|
|
+
|
|
|
-(void)setTitleFunByIndex
|
|
|
{
|
|
|
if(_index < _audioOutSidedataArray.count){
|