audioplayer icon indicating copy to clipboard operation
audioplayer copied to clipboard

Play files included with flutter assets

Open dustin-graham opened this issue 6 years ago • 19 comments

Add a first class way to easily play files included via flutter plugins.

dustin-graham avatar May 28 '18 17:05 dustin-graham

this playAssets not avaiable still now. with 0.5 version abover

lucasjinreal avatar Jun 23 '18 08:06 lucasjinreal

Hi, I am wondering how people play different notification sounds in their flutter apps without this support these days? Do they use SystemSound? I only know one sound SystemSound.play(SystemSoundType.click);, that's it. Can it play any other sounds? Is there a list of sound names? Are these sound names the same in both Android and iOS? Thanks a lot.

sgon00 avatar Jul 09 '18 03:07 sgon00

@sgon00 No, just load from assets and save to file, then play from file. not quite convenient.

lucasjinreal avatar Jul 09 '18 03:07 lucasjinreal

Does anyone know who maintains this repo? I'd really like to get this merged in.

dustin-graham avatar Jul 09 '18 03:07 dustin-graham

@sgon00 with my pull request #34, you would be able to add sounds to your flutter project, specify them in your pubspec.yaml and then play them from your flutter code. I'd like to get this merged in soon but nobody has responded yet to my pull request.

dustin-graham avatar Jul 09 '18 03:07 dustin-graham

@dustin-graham thanks a lot for your reply. I hope this pull request gets merged in soon. Notification sound is a primary feature for an app, It's unbelievable that this is still not supported properly in flutter.

sgon00 avatar Jul 09 '18 03:07 sgon00

@dustin-graham Could you start a new project and maintain from that? I think this repo is now not active. I opened an issue of play sounds from bytes but not respond yet. These features we discuss should be filled as for the convenient of other developers.

lucasjinreal avatar Jul 09 '18 04:07 lucasjinreal

I'd be happy to help maintain this one if I had rights to merge things. As it is, I have a fork of this repo, if you need this functionality urgently you could target my fork from your pubspec until this gets merged.

On Sun, Jul 8, 2018, 9:03 PM JinTian [email protected] wrote:

@dustin-graham https://github.com/dustin-graham Could you start a new project and maintain from that? I think this repo is now not active. I opened an issue of play sounds from bytes but not respond yet. These features we discuss should be filled as for the convenient of other developers.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rxlabz/audioplayer/issues/35#issuecomment-403353781, or mute the thread https://github.com/notifications/unsubscribe-auth/AA6lu0KTxGoQOXR-a0X10fY4uTI--pjjks5uEtYbgaJpZM4UQdiT .

dustin-graham avatar Jul 09 '18 04:07 dustin-graham

At some point someone needs to fork this repository to continue developing it.

Apparently the maintainers have abandoned it, I proposed a PR for speakers sound problem on iOS pull request #43, till now not yet merged.

We have no option than continuing the development somewhere else.

eddywm avatar Jul 09 '18 06:07 eddywm

@dustin-graham @eddywm I am hoping your guys start a new opensource project from scratch with same codes and license. These demand are urgent now as for the rapid evolution of Flutter.

lucasjinreal avatar Jul 09 '18 07:07 lucasjinreal

Hey folks I do think @jinfagang was right we need to do a serious fork and keep the development active for a good audio support on Flutter somewhere else.

Nothing was improved in this library for 2 months, pull request are not getting merged which is lagging all the Flutter community behind wanting good quality audio support.

I started implementing advanced missing features on my own in my fork to support iOS remote controls from stuffs like Lock-screen controls, AppleTV, smart watches, cars, ... using the unified Native iOS Remote Control API.

I'm not really an expert in audio apis but I'm doing some good progress.

I was thinking about us creating a Slack or Twitch channel to continue the development of this library to support the optimal native audio features for the Flutter developers.

What do you think ? @dustin-graham @jinfagang @takaoandrew

eddywm avatar Jul 30 '18 13:07 eddywm

This feels like something that should be core to flutter. I'd like to go and make a pull request into the flutter/plugins repo instead.

On Jul 30, 2018 6:51 AM, "Eddy WM" [email protected] wrote:

Hey folks I do think @jinfagang https://github.com/jinfagang was right we need to do a serious fork and keep the development active for a good audio support on Flutter somewhere else.

Nothing was improved in this library for 2 months, pull request are not getting merged which is lagging all the Flutter community behind wanting good quality audio support.

I started implementing advanced missing features on my own in my fork to support iOS remote controls from stuffs like Lock-screen controls, AppleTV, smart watches, cars, ... using the unified Native iOS Remote Control API.

I'm not really an expert in audio apis but I'm doing some good progress.

I was thinking about us creating a Slack or Twitch channel to continue the development of this library to support the optimal native audio features for the Flutter developers.

What do you think ? @dustin-graham https://github.com/dustin-graham @jinfagang https://github.com/jinfagang @takaoandrew https://github.com/takaoandrew

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rxlabz/audioplayer/issues/35#issuecomment-408870365, or mute the thread https://github.com/notifications/unsubscribe-auth/AA6lu3cjWmdLulJ6fJSn-f3MJHkYC25wks5uLw9IgaJpZM4UQdiT .

dustin-graham avatar Jul 30 '18 14:07 dustin-graham

@dustin-graham I think it's even a better alternative. Do it if you can, we will be coming to contribute. Hopefully the Flutter folks at Google will accept the PR.

eddywm avatar Jul 30 '18 14:07 eddywm

Hopefully. There's another one in that repo I've been working on so I know a couple of people that maintain those plugins.

Dustin

On Jul 30, 2018 7:43 AM, "Eddy WM" [email protected] wrote:

@dustin-graham https://github.com/dustin-graham I think it's even a better alternative. Do it if you can, we will be coming to contribute. Hopefully the Flutter folks at Google will accept the PR.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rxlabz/audioplayer/issues/35#issuecomment-408888395, or mute the thread https://github.com/notifications/unsubscribe-auth/AA6lu7cHvscEpXaeCj-hTKezTcJYicafks5uLxuegaJpZM4UQdiT .

dustin-graham avatar Jul 30 '18 14:07 dustin-graham

any updates?

sgon00 avatar Aug 27 '18 15:08 sgon00

any any updates?

sgon00 avatar Oct 12 '18 07:10 sgon00

any any any updates?

sgon00 avatar Nov 08 '18 03:11 sgon00

I'm working on an audio_player here : https://github.com/flutter/plugins/pull/1606/ It already works on android BTW

Please feel free to participate and to give a thumbs up 👍

axellebot avatar May 25 '19 11:05 axellebot

@axellebot Thank you very much for your follow-up. I have given two thumbs up here and in the pull request. I hope the iOS support can be added soon. I need to support both platforms for my app. So without iOS support, I can not use it. Thanks a lot. 😀👍

sgon00 avatar May 25 '19 19:05 sgon00