Browse Source

update ios

rhyme 5 years ago
parent
commit
8722e3b05e
1 changed files with 1 additions and 1 deletions
  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: