Flutter-AssetsAudioPlayer icon indicating copy to clipboard operation
Flutter-AssetsAudioPlayer copied to clipboard

Play simultaneously music/audio from assets/network/file directly from Flutter, compatible with android / ios / web / macos, displays notifications

Results 203 Flutter-AssetsAudioPlayer issues
Sort by recently updated
recently updated
newest added

playlist feature is not working in ios, Future songPlayNow(List audioconvertedsongs, int index) async { checkIsPlayingthenStop(); await audioplayer.open( Playlist( audios: audioconvertedsongs, startIndex: index, ), loopMode: LoopMode.playlist, showNotification: true); audioplayer.play(); final id...

bug

**Flutter Version** My version : **Lib Version** My version : **Platform (Android / iOS / web) + version** Platform : **Describe the bug** A clear and concise description of what...

bug

can i play two audio at same time in background.

new feature

Module 'assets_audio_player' not found

[{"_id":"664723cb2cfd0d66a80d765a","body":"That looks like you're trying to import the library in the wrong place (an objective-C file instead of a dart file).\r\n\r\nIn your dart package, import using this syntax:\r\n```dart\r\nimport 'package:assets_audio_player\/assets_audio_player.dart';\r\n```","issue_id":1708637644291,"origin_id":1721151144,"user_origin_id":13125514,"create_time":1694778822,"update_time":1694778822,"id":1715938251296,"updated_at":"2024-05-17T09:30:51.296000Z","created_at":"2024-05-17T09:30:51.296000Z"},{"_id":"664723cb2cfd0d66a80d765b","body":"hi @all\r\n\r\nAfter setting 'Debug' to 'Yes' in the 'Build Active Architecture Only' option, it started working for me.\r\n\r\n<img width=\"523\" alt=\"Screenshot 2023-12-11 at 12 55 24\" src=\"https:\/\/github.com\/florent37\/Flutter-AssetsAudioPlayer\/assets\/46396672\/9bcb46aa-5f5f-48c0-b02c-8781dd8d0d97\">\r\n","issue_id":1708637644291,"origin_id":1849832892,"user_origin_id":46396672,"create_time":1702292353,"update_time":1702292353,"id":1715938251302,"updated_at":"2024-05-17T09:30:51.302000Z","created_at":"2024-05-17T09:30:51.302000Z"},{"_id":"66c4fb9b65e3f042b806489d","body":"[This fix doesn't work in my case](https:\/\/github.com\/florent37\/Flutter-AssetsAudioPlayer\/issues\/772#issuecomment-1849832892). \r\nThis issue has been reported twice => #772 #720 . \r\nNone of these tickets has a solution. \r\n@florent37 any idea ? ","issue_id":1708637644291,"origin_id":2258262048,"user_origin_id":135387990,"create_time":1722343437,"update_time":1722343652,"id":1724185499846,"updated_at":"2024-08-20T20:24:59.846000Z","created_at":"2024-08-20T20:24:59.846000Z"}] comment

**Flutter Version** My version : Flutter (Channel stable, 3.0.3, on macOS 11.5.2 20G95 darwin-arm (Rosetta), locale en-IN) **Lib Version** My version : assets_audio_player: ^3.0.6 **Platform (Android / iOS/web) + version**...

bug

Open it and choose iOS, next song, previous song, or the previous 10 seconds and the next 10 seconds.

[{"_id":"664723d34ecfda50de12a01d","body":"There is no need to customize the icon, but if you turn on the forward and back buttons on iOS, now there is only the previous song and the next song.","issue_id":1708637644300,"origin_id":1829238354,"user_origin_id":52568890,"create_time":1701155655,"update_time":1701155655,"id":1715938259256,"updated_at":"2024-05-17T09:30:59.255000Z","created_at":"2024-05-17T09:30:59.255000Z"}] comment

I looked at the update proposed a year ago and it's still not resolved yet.

new feature

@kalismeras61 facing same issue with the **android** and **ios** please reopen this issue.and i have also followed all the things which are mentioned in the document. still background music is getting stopped when we play some sound by asset audio player. In video player we have this kind of option to mix sound with other playing audio which are playing but in audio player we can not do this

[{"_id":"664e349a2308c3a90320d330","body":"@BlackStriker99 did you have any luck on this? This plugin seems outdated now \r\n","issue_id":1708637644314,"origin_id":1364978035,"user_origin_id":26625526,"create_time":1672041814,"update_time":1672041814,"id":1716401306708,"updated_at":"2024-05-22T18:08:26.707000Z","created_at":"2024-05-22T18:08:26.707000Z"},{"_id":"664e349a2308c3a90320d331","body":"Did you tried audioFocusStrategy in open method ? \r\n\r\n\r\n```\r\n await _assetsAudioPlayer.open(\r\n\r\n audioFocusStrategy: AudioFocusStrategy.request(\r\n resumeAfterInterruption: true,\r\n resumeOthersPlayersAfterDone: true,\r\n ),\r\n );\r\n```","issue_id":1708637644314,"origin_id":1365034736,"user_origin_id":246747,"create_time":1672047089,"update_time":1672047089,"id":1716401306714,"updated_at":"2024-05-22T18:08:26.714000Z","created_at":"2024-05-22T18:08:26.714000Z"},{"_id":"664e349a2308c3a90320d332","body":"@kalismeras61 still doesn't work. Background music still stops and doesn't resume if asset audio player is paused or stopped (Android)","issue_id":1708637644314,"origin_id":1818262453,"user_origin_id":80647291,"create_time":1700458808,"update_time":1700458931,"id":1716401306723,"updated_at":"2024-05-22T18:08:26.723000Z","created_at":"2024-05-22T18:08:26.723000Z"}] comment

@kalismeras61 facing same issue with the **android** and **ios** please reopen this issue.and i have also followed all the things which are mentioned in the document. still background music is...

[ New Feature ] Icy metadata

[{"_id":"66c4fb6b65e3f042b8064891","body":"do you have the equivalent for ios ?","issue_id":1708637644326,"origin_id":647335738,"user_origin_id":5754972,"create_time":1592810490,"update_time":1592810490,"id":1724185451318,"updated_at":"2024-08-20T20:24:11.318000Z","created_at":"2024-08-20T20:24:11.318000Z"},{"_id":"66c4fb6b65e3f042b8064892","body":"Apparently, **AVPlayer** automatically requests metadata\r\nhttps:\/\/stackoverflow.com\/questions\/27955125\/timed-metadata-with-avplayer\r\n\r\nIn React Native there is a library that implement this for iOS\r\nhttps:\/\/github.com\/react-native-kit\/react-native-track-player\/pull\/937","issue_id":1708637644326,"origin_id":647499711,"user_origin_id":10598983,"create_time":1592830351,"update_time":1592830351,"id":1724185451325,"updated_at":"2024-08-20T20:24:11.325000Z","created_at":"2024-08-20T20:24:11.325000Z"},{"_id":"66c4fb6b65e3f042b8064893","body":"@florent37 \r\nhttps:\/\/github.com\/Sithira\/FlutterRadioPlayer\/pull\/20\r\nThis PR can help can you have a look when free","issue_id":1708637644326,"origin_id":666931621,"user_origin_id":17390257,"create_time":1596173368,"update_time":1596173402,"id":1724185451330,"updated_at":"2024-08-20T20:24:11.329000Z","created_at":"2024-08-20T20:24:11.329000Z"},{"_id":"66c4fb6b65e3f042b8064894","body":"@florent37 Recently add this trait to https:\/\/github.com\/Sithira\/FlutterRadioPlayer. If you want I can help you with them. It really is simple.","issue_id":1708637644326,"origin_id":669652958,"user_origin_id":42654354,"create_time":1596682509,"update_time":1596682509,"id":1724185451335,"updated_at":"2024-08-20T20:24:11.335000Z","created_at":"2024-08-20T20:24:11.335000Z"},{"_id":"66c4fb6b65e3f042b8064895","body":"@cjamcu i can probably like to take this up if you can help me out. not very good at java or kotlin or you can create a PR here that will be great.","issue_id":1708637644326,"origin_id":669828524,"user_origin_id":17390257,"create_time":1596707084,"update_time":1596707777,"id":1724185451341,"updated_at":"2024-08-20T20:24:11.340000Z","created_at":"2024-08-20T20:24:11.340000Z"},{"_id":"66c4fb6b65e3f042b8064896","body":"this will be a great addition. any news?\r\n","issue_id":1708637644326,"origin_id":824432833,"user_origin_id":4300876,"create_time":1619048224,"update_time":1619048224,"id":1724185451347,"updated_at":"2024-08-20T20:24:11.346000Z","created_at":"2024-08-20T20:24:11.346000Z"},{"_id":"66c4fb6b65e3f042b8064898","body":"Will this function be available? ExoPlayer supports metadata retrieval, I tried to do it myself but gave up.","issue_id":1708637644326,"origin_id":1464026852,"user_origin_id":89237708,"create_time":1678464262,"update_time":1678464262,"id":1724185451356,"updated_at":"2024-08-20T20:24:11.355000Z","created_at":"2024-08-20T20:24:11.355000Z"},{"_id":"66c4fb6b65e3f042b8064899","body":"it will be awesome guys, if you can make this a reality. please @cjamcu :)","issue_id":1708637644326,"origin_id":1786769431,"user_origin_id":246828,"create_time":1698742332,"update_time":1698742332,"id":1724185451361,"updated_at":"2024-08-20T20:24:11.360000Z","created_at":"2024-08-20T20:24:11.360000Z"}] comment

First of all, thank you for making this plugin. Add support for **Icy metadata** in the livestream. An example in Android with **Exoplayer**: https://github.com/saschpe/android-exoplayer2-ext-icy Cheers! Thank you so much!

new feature

ForegroundServiceStartNotAllowedException

[{"_id":"664723e84a8e87d14e172043","body":"I am also experiencing this problem and the other issue. Has the new 3.1.1 update fixed the problem in the new 3.1.1 update and the other issue?\r\n\r\nOther issue: https:\/\/github.com\/florent37\/Flutter-AssetsAudioPlayer\/issues\/803","issue_id":1708637644331,"origin_id":1712584524,"user_origin_id":20662454,"create_time":1694287738,"update_time":1694287792,"id":1715938280736,"updated_at":"2024-05-17T09:31:20.735000Z","created_at":"2024-05-17T09:31:20.735000Z"},{"_id":"664723e84a8e87d14e172044","body":"This one is resolved by release `3.1.1`, even though `3.1.1` has another bug mentioned above.","issue_id":1708637644331,"origin_id":1723508535,"user_origin_id":13467769,"create_time":1695046280,"update_time":1695046280,"id":1715938280741,"updated_at":"2024-05-17T09:31:20.740000Z","created_at":"2024-05-17T09:31:20.740000Z"},{"_id":"664723e84a8e87d14e172045","body":"Is this issue resolved? \r\nI'm using the version \"assets_audio_player: ^3.1.1\" \r\n\r\nIn my android application this issue is occurring, leading to crashes in massive amount of Android 12 & 13 devices.","issue_id":1708637644331,"origin_id":1784064559,"user_origin_id":149300408,"create_time":1698576750,"update_time":1698576750,"id":1715938280744,"updated_at":"2024-05-17T09:31:20.744000Z","created_at":"2024-05-17T09:31:20.744000Z"}] comment

Flutter 3.13.1 Assets audio Player : 3.1.0 **Platform (Android / iOS / web) + version** Platform : Android Fatal Exception: android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service com.goodvibes/com.github.florent37.assets_audio_player.notification.NotificationService...

bug

It's not clear to me what I need to do when using Asssets Audio Player iin terms of freeing/releasing resources. For example, I have the following standalone method in one...

new feature