mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Hint as mp3
This commit is contained in:
@@ -262,7 +262,7 @@ private final class AudioPlayerWrapper: NSObject, AVAudioPlayerDelegate {
|
||||
|
||||
super.init()
|
||||
|
||||
self.player = try? AVAudioPlayer(contentsOf: url, fileTypeHint: "m4a")
|
||||
self.player = try? AVAudioPlayer(contentsOf: url, fileTypeHint: "mp3")
|
||||
self.player?.delegate = self
|
||||
}
|
||||
|
||||
@@ -304,7 +304,7 @@ public func fileNameForNotificationSound(account: Account, notificationSoundList
|
||||
}
|
||||
for sound in notificationSoundList.sounds {
|
||||
if sound.file.fileId.id == fileId {
|
||||
if let path = account.postbox.mediaBox.completedResourcePath(sound.file.resource, pathExtension: "mp3") {
|
||||
if let path = account.postbox.mediaBox.completedResourcePath(sound.file.resource, pathExtension: nil) {
|
||||
return path
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user