Flutter-Music-Player icon indicating copy to clipboard operation
Flutter-Music-Player copied to clipboard

Enhancement: Add Play/pause buttons etc in Notification area

Open nsreenath opened this issue 6 years ago • 10 comments

Add music player controls on notification area like this:

image

Flutter doesn't seem to have direct support it. We may have to use platform channels.

http://www.tutorialsface.com/2015/08/android-custom-notification-tutorial/ This tutorial explains how to do it in Android.

But I am not sure if Dart layer can be invoked from Java layer using platform channels when app is in background.

nsreenath avatar Mar 27 '18 13:03 nsreenath

Don't worry i will implement those too in near future . Till then you can enjoy my other full fledged music players from playstore and thanks for sharing but i already have coded many apps like this . :)

On Tue, Mar 27, 2018, 7:19 PM Sreenath [email protected] wrote:

Add music player controls on notification area like this:

[image: image] https://user-images.githubusercontent.com/3154529/37971197-fb031f92-31f2-11e8-9fee-35b2cc66781a.png

Flutter doesn't seem to have direct support it. We may have to use platform channels.

http://www.tutorialsface.com/2015/08/android-custom-notification-tutorial/ This tutorial explains how to do it in Android.

But I am not sure if Dart layer can be invoked from Java layer using platform channels when app is in background.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/iampawan/Flutter-Music-Player/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AMCOnFgFX8VscIly7XSgqStNoCX0OqsEks5tikNegaJpZM4S89Zg .

iampawan avatar Mar 27 '18 13:03 iampawan

Did you add this yet? I need a persistant notification and background music controls in an app I'm working on

ThinkDigitalSoftware avatar Jun 17 '18 03:06 ThinkDigitalSoftware

@ThinkDigitalRepair You can use this package https://pub.dartlang.org/packages/media_notification#-example-tab-

N9vn1njdf avatar Aug 16 '18 11:08 N9vn1njdf

Wow, good work! Thank you!

On Thu, Aug 16, 2018, 4:59 AM Zeratyll [email protected] wrote:

@ThinkDigitalRepair https://github.com/ThinkDigitalRepair You can use this package https://pub.dartlang.org/packages/media_notification#-example-tab-

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iampawan/Flutter-Music-Player/issues/2#issuecomment-413521156, or mute the thread https://github.com/notifications/unsubscribe-auth/AV-Hfab-XrvBjU1l88lm_c2WEIkhbQu8ks5uRV6ggaJpZM4S89Zg .

ThinkDigitalSoftware avatar Aug 16 '18 14:08 ThinkDigitalSoftware

@ThinkDigitalRepair Note that this plugin is only for android. I can not develop on iOS.

P.S. Sorry for my English

N9vn1njdf avatar Aug 16 '18 18:08 N9vn1njdf

OK, good to know, thank you.

On Thu, Aug 16, 2018 at 11:22 AM Zeratyll [email protected] wrote:

@ThinkDigitalRepair https://github.com/ThinkDigitalRepair Note that this plugin is only for android. I can not develop on iOS.

P.S. Sorry for my English

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iampawan/Flutter-Music-Player/issues/2#issuecomment-413639697, or mute the thread https://github.com/notifications/unsubscribe-auth/AV-HfUCRAXcwZrhjG22UcngJMLIQ5EZvks5uRbh4gaJpZM4S89Zg .

-- Think Digital 323-638-9448 760-678-8833 Facebook.com/ThinkDigitalRepair

ThinkDigitalSoftware avatar Aug 16 '18 20:08 ThinkDigitalSoftware

@Zeratyll I would like to use your plugin but I would like it to work on iOS too. I also do not have experience developing for iOS. Do you know of any way we could recruit help from the community to implement this functionality? Thank you for your work!

benwicks avatar Sep 10 '18 00:09 benwicks

@benwicks Hello. Anyone can create a branch and add the required functionality. I think that I can start working on IOS in 2 months, you can wait. I can not before because of financial problems. By the same I'm thinking of developing plugin, but it's only in the plans.

N9vn1njdf avatar Sep 10 '18 18:09 N9vn1njdf

@benwicks But if you send me a macbook, then I'll implement any functional for you))

N9vn1njdf avatar Sep 10 '18 18:09 N9vn1njdf

Don't worry i will implement those too in near future . Till then you can enjoy my other full fledged music players from playstore and thanks for sharing but i already have coded many apps like this . :) On Tue, Mar 27, 2018, 7:19 PM Sreenath @.***> wrote: Add music player controls on notification area like this: [image: image] https://user-images.githubusercontent.com/3154529/37971197-fb031f92-31f2-11e8-9fee-35b2cc66781a.png Flutter doesn't seem to have direct support it. We may have to use platform channels. http://www.tutorialsface.com/2015/08/android-custom-notification-tutorial/ This tutorial explains how to do it in Android. But I am not sure if Dart layer can be invoked from Java layer using platform channels when app is in background. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#2>, or mute the thread https://github.com/notifications/unsubscribe-auth/AMCOnFgFX8VscIly7XSgqStNoCX0OqsEks5tikNegaJpZM4S89Zg .

did you implemented?

hiranthaR avatar Oct 11 '19 12:10 hiranthaR