-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
questionFurther information is requestedFurther information is requested
Description
If files are located in subfolder thant it will not play even if to indicate file with path
Sound.swfit
should be changed to this function
public init(fileName: String, bundle: Bundle = Bundle.main) {
super.init()
let urlName = URL(fileURLWithPath: fileName)
let file = urlName.deletingPathExtension().path
let fileExtension = urlName.pathExtension
name = fileName
if let path = bundle.path(forResource: file, ofType: fileExtension) {
url = URL(fileURLWithPath: path)
identifier = url?.absoluteString ?? ""
}
preparePlayer()
}
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested