浏览代码

update ios

rhyme 5 年之前
父节点
当前提交
8722e3b05e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ios/Classes/FlutterSoundPlugin.m

+ 1 - 1
ios/Classes/FlutterSoundPlugin.m

@@ -202,7 +202,7 @@ NSString* status = [NSString stringWithFormat:@"{\"current_position\": \"%@\"}",
 
     audioFileURL = [NSURL fileURLWithPath:[GetDirectoryOfType_FlutterSound(NSCachesDirectory) stringByAppendingString:@"sound.aac"]];
   } else {
-    audioFileURL = [NSURL fileURLWithPath: [GetDirectoryOfType_FlutterSound(NSCachesDirectory) stringByAppendingString:path]];
+    audioFileURL = [NSURL fileURLWithPath:path];
   }
 
   NSMutableDictionary *audioSettings = [NSMutableDictionary dictionaryWithObjectsAndKeys: