audioplayers
                                
                                
                                
                                    audioplayers copied to clipboard
                            
                            
                            
                        Not support aac file on IOS
Checklist
- [X] I read the troubleshooting guide before raising this issue
 - [X] I made sure that the issue I am raising doesn't already exist
 
Current bug behaviour
not support aac file on ios
Expected behaviour
can play aac file on ios
Steps to reproduce
- Execute 
flutter runon the code sample - ...
 - ...
 
Code sample
Code sample
final player = AudioPlayer();
await player.setSourceUrl(
                      'https://flipflop-storage-001.maxx4business.com/disks/storage-001-002/music/Business Background Music/Business Corporate.aac');
                  player.resume();
Affected platforms
iOS
Platform details
IOS 16.0
AudioPlayers Version
5.2.0
Build mode
debug
Audio Files/URLs/Sources
No response
Screenshots
No response
Logs
my relevant logs
Full Logs
flutter: \^[[31mAudioPlayers Exception: AudioPlayerException(
	UrlSource(url: https://flipflop-storage-001.maxx4business.com/disks/storage-001-002/music/Business Background Music/Business Corporate.aac), 
	PlatformException(DarwinAudioError, Failed to set source. For troubleshooting, see https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, AVPlayerItem.Status.failed on setSourceUrl, null)<…>
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(DarwinAudioError, Failed to set source. For troubleshooting, see https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, AVPlayerItem.Status.failed on setSourceUrl, null)
Flutter doctor:
[✓] Flutter (Channel stable, 3.13.2, on macOS 12.6.6 21G646 darwin-x64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 14.0.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.2) [✓] VS Code (version 1.83.0) [✓] Connected device (4 available) [✓] Network resources
Output of: flutter doctor -v
[✓] Flutter (Channel stable, 3.13.2, on macOS 12.6.6 21G646 darwin-x64, locale en-US) • Flutter version 3.13.2 on channel stable at /Users/imac/development/sdks/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision ff5b5b5fa6 (7 weeks ago), 2023-08-24 08:12:28 -0500 • Engine revision b20183e040 • Dart version 3.1.0 • DevTools version 2.25.0
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/imac/Library/Android/sdk • Platform android-34, build-tools 34.0.0 • ANDROID_SDK_ROOT = /Users/imac/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694) • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14A400 • CocoaPods version 1.12.1
[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
[✓] VS Code (version 1.83.0) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.74.0
[✓] Connected device (4 available) • BISON Pro (mobile) • BISONPRO2120010354 • android-arm64 • Android 11 (API 30) • iPhone SE (3rd generation) (mobile) • 678F00DA-B3EB-4377-A1EC-F76534D72AD1 • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator) • macOS (desktop) • macos • darwin-x64 • macOS 12.6.6 21G646 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 117.0.5938.149
[✓] Network resources • All expected network resources are available.
Related issues / more information
No response
Working on PR
no way
You can see the supported encodings here: if it's supported, then it should work: https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md#supported-formats--encodings
If not, unfortunately there's nothing we can do about it!