Skip to main content
ömery98286934
Participating Frequently
January 18, 2018
Answered

Flash as3 air custom notification for music player, help?

  • January 18, 2018
  • 10 replies
  • 4816 views

Hi, How can I make this system as3/air ?

I have found a lot of ANE and examples but it is not that way.

i want to My sound Play/Pause Notification.

Andorid links:

Playing background Audio in Android with MediaSessionCompat - Learn Programming Together

Android custom notification for music player Example | Tutorials Face

11954620_10153574159971543_7746758011460724864_n.jpgqFoSXBc.pngrauGbQH.png

This topic has been closed for replies.
Correct answer marchbold

Here's a link to a simple background audio player APK

Dropbox - TestBackgroundAudioPlayer.apk

And a quick little video of the notification in action along with the Android Wear interaction.

MediaPlayer ANE Background Audio - YouTube

10 replies

Inspiring
July 25, 2018

An update from my side, I have paused the project, due to major issues with Starling and rendering mode on android. After we solve this, we might continue development, but for now Michaels solution is the best bet.

marchbold
marchboldCorrect answer
Inspiring
July 26, 2018

Here's a link to a simple background audio player APK

Dropbox - TestBackgroundAudioPlayer.apk

And a quick little video of the notification in action along with the Android Wear interaction.

MediaPlayer ANE Background Audio - YouTube

air native extensions // https://airnativeextensions.com
Inspiring
July 26, 2018

Wow. This is what I need   How to buy it?

ömery98286934
Participating Frequently
July 25, 2018

michaelarchbold, can you add the notification controller in the sample project that I made?

my project plays to work music in the background.

I want to just the notification controller.

For example,

if I push the pause button on the notification controller, The notification should send the code to 'pause();', in my app.

if I push the play button on the notification controller, the notification should send the code to 'play();', in my app.

Sample video: screen_video - Streamable

Sample source documents: http://https://yadi.sk/d/4kvRFf__3ZYnKW

marchbold
Inspiring
July 24, 2018

If anyone has access to our MediaPlayer ANE the current beta supports a notification for audio background playback. We'd welcome any feedback!

Cheers

air native extensions // https://airnativeextensions.com
ömery98286934
Participating Frequently
July 24, 2018

is there any sample apk that I will see?

ömery98286934
Participating Frequently
July 24, 2018

Is there a development about this project?

Inspiring
July 3, 2018

The ANE will be released after some time from myflashlabs. If anyone want to chip in for the R&D, you are more than welcome. PM me.

Inspiring
July 3, 2018

We are all ready in touch on Starling forum

Inspiring
June 30, 2018

I am moving forward with building an ANE for this. There is no other way to solve the problem.

Inspiring
June 30, 2018

All Hope for You!! )))

ömery98286934
Participating Frequently
June 26, 2018

still, I could not solve the problem. If you find anything, can you share with us please. :/

Inspiring
June 26, 2018

I have the same problem too (((

Inspiring
February 3, 2018

I am building something similar, and I don't think that either myflaslabs or milkman ANE will do. I have both but they can only be used for a simple alert - local notification. The main missing feature is the button place.

I am thinking of creating an ANE on my own just for this.

kglad
Community Expert
Community Expert
January 18, 2018

i don't understand your question(s).

ömery98286934
Participating Frequently
January 18, 2018

i want to this notification :

SeuIpyX2RTG-Yuwq_td7PQ.png

But I can only do :

nVxoGh_IQzSsH9wmvORq7g.png

my use code :

notificationManager = new NotificationManager();

n = new Notification();

n.actionLabel = "Open";

n.alertPolicy = NotificationAlertPolicy.EACH_NOTIFICATION;

n.cancelOnSelect = true;

n.hasAction = true;

n.actionData = "customAction";

n.iconType = NotificationIconType.MESSAGE;

n.numberAnnotation = 0;

n.ongoing = false;

n.playSound = true;

n.repeatAlertUntilAcknowledged = false;

n.vibrate = true;

n.tickerText = "My Ticker Text";

n.title = "My Title Text";

n.body = "My Body Text"; 

link: AIR ANE Notifications

kglad
Community Expert
Community Expert
January 19, 2018

there are no examples on this link.

Do you have a sample code, ANE or apk ?


i have sample code, but you have to purchase the ane.