Tasker Is Music Playing Plugin

Tasker Is Music Playing Plugin$0.99

Rated 4.09/5 (91) —  Free Android application by Harena Mons

Advertisements

About Tasker Is Music Playing Plugin

---=== Please note that this plug-in requires the application Tasker to be installed before use ===---

Are you a Tasker user? Do you need to know if music is currently playing for you to set up your tasks correctly? If yes on both questions, then this plug-in is written especially for you.
The plug-in itself uses no resources whatsoever when not used, no services are used. The memory footprint is minimal even when executing.

When installed, you will be able to ask the system if any application is currently playing audio through the media stream. The Media stream is used by all media players such as Google music, Spotify, Audio Book players etc.
This plug-in uses a two step process to achieve this, since Android system currently doesn't support a straight forward interrupt mechanism for discovering if music is played.
This is how you will get things done in Tasker:
Step 1, set up a State profile.
Context:
1. Is Music Playing? -> Yes
Task:
1. Set %IS_MUSIC_PLAYING = 1
Exit task:
1. Clear %IS_MUSIC_PLAYING

Since Android doesn't support interrupt based handling on playing music, you have to ask the system if music is playing before you act on your %IS_MUSIC_PLAYING variable.
Step 2, Ask the system if music is playing according to the following guide:
Context:
1. "When do you want to check if music is playing?"
Task:
1. "Your logic before the check is needed"
2. Plug-ins -> Is Music Playing? -> Query system (This will force an update of %IS_MUSIC_PLAYING via the first profile)
3. Wait 500ms (In order to let the first profile have time to populate %IS_MUSIC_PLAYING correctly)
4. If %IS_MUSIC_PLAYING is set
5. "Your logic if music is playing"
6. Else (Step 5 above will happen if %IS_MUSIC_PLAYING is set, step 7 below will happen if %IS_MUSIC_PLAYING is not set.)
7. "Your logic if music is not playing"
8. End if
9. "Your logic after the check is done"

An example of how to use it when you get an incoming text message and want to read it out loud. Then music should be paused, but only if it is currently playing.
Context:
1. Incoming text message
Task:
1. Wait around 2 seconds, depending on how long your message alert is (This needs to be done since the message alert signal will pause the music)
2. Plug-ins -> Is Music Playing? -> Query system
3. Wait 500ms
4. If %IS_MUSIC_PLAYING is set
5. Pause music
6. Read text message out load
7. Play music
8. Else
9. Read text message out load
10. End if

User feedback states that if you toggle play/pause in a task just before you want to check if music is playing, don't forget to add about a 1 second delay to ensure that the toggle is happening on the device before the check.
If you have problems with anything, send a mail and I will sort it out.

How to Download / Install

Download and install Tasker Is Music Playing Plugin version 1.0 on your Android device!
Downloaded 1,000+ times, content rating: Everyone
Android package: se.harenamons.ismusicplaying, download Tasker Is Music Playing Plugin.apk

All Application Badges

Paid
app
Android
2.2+
For everyone
Android app

App History & Updates

What's Changed
Some questions has been raised regarding Tasker 4.0+ compatibility for this plug-in. It is compatible with both pre and post 4 versions of Tasker.
Price update  Price changed from $0.50 to $0.99.
Price update  Price changed from $0.83 to $0.50.
More downloads  Tasker Is Music Playing Plugin reached 1 000 - 5 000 downloads
Price update  Price changed from $0.50 to $0.83.

What are users saying about Tasker Is Music Playing Plugin

Y70%
by Y####:

Worked really well initially, but since past few days it takes almost 30s for the 'is music playing' state-profile to activate once 'query system' task is executed. I'm on marshmallow, and running tasker 4.9u4 (which was last updated in Jan '17) so I don't think an app update is involved. I verified that tasker is' not optimized' in Android battery optimization settings, and also 'reduce resource usage' in not set in tasker settings. Is there a way I can debug this? Perhaps some logs I could enable and examine? Any guidance is appreciated...

Y70%
by Y####:

I have some profiles set up that require me to know if music is playing to work correctly, and this works great! If you FOLLOW THE INSTRUCTIONS, it works great, because I will admit that it's not intuitive at first, and I'm glad the dev explained why it had to be setup like this.

F70%
by F####:

I didn't understand the instructions but not because they're bad, I'm just a dumbass. Now I've got it working it's amazing. Thanks so much for making this.

Y70%
by Y####:

The missing cog in my music profiles! Perfect for restricting a context to when music is actually being played, as opposed to the music app just being open or downloading something e.g. the profile doesn't trigger when I'm browsing my Spotify library, or when Spotify starts downloading music because I've just connected to a Wi-Fi network.

E70%
by E####:

Worth every penny although i recommend you read the app purchase page before having ago.

Y70%
by Y####:

Works with all 3rd party music apps I have.

Y70%
by Y####:

Takes a bit of time to figure out how to use. However, it works and I am very happy.

H70%
by H####:

Works nicely!

Y70%
by Y####:

Instructions are vague who knows how you are supposed to create the task with this as the instruction Task 1. Set %IS_MUSIC_PLAYING = 1 Exit task: 1. Clear %IS_MUSIC_PLAYING. Tasker asks for an action category it makes no sense. Then there are more instructions that still make no sense. Should have step by step instructions. Eg under profiles create a "state context, select plugins select the app Cant even get a refund because I waited too long for help. Developer refuses to help

Y70%
by Y####:

tried to catch media output from navigation software so device could turn on the screen whenever something was up, but it did not really work. sometimes this plugin realized the sound, sometimes not. for this purpose not usable, otherwise does what it says. a little pricey considering there is only one functionality to it, thus only 4 stars.

X70%
by X####:

Performs a critical function for those who need it, and in an unique way. It's elegant in a nerdy kind of way, which makes it that much more satisfying for a Tasker user when it works. Speaking of that, I'd put its success rate at around 95% even with "loopy" workflows, or anything else you may wish to build around this plugin's task-profile foundation. Nice work dev. Hmm, would publishing a Tasker App Factory thing help out newcomers?

Y70%
by Y####:

The 'query' action/task that this plugin comes with, is actually responsible for updating the profile 'context' plugin that also comes with it. Apparently this teamwork is what makes it tick, but I'm kinda wondering why the context plugin couldn't handle this instead? Seems like an oversight. Good luck getting that task to query when you need it to, you may have to jump through some holes to get it just right.

Y70%
by Y####:

I didn't understand the instructions but not because they're bad, I'm just a dumbass. Now I've got it working it's amazing. Thanks so much for making this. Edit. Eg. Trigger = "is music playing" (configure to "yes") > Action = set %Myvar to 1. Next. Trigger = "is music playing" (configure to "no") > Action = set %Myvar to 0. Use the "query" plugin action & it will set %Myvar to 1 or 0 (1 = audio, 0 = no audio). A 1s "wait" is needed after "query" for %Myvar to set in-time for the next action.

Y70%
by Y####:

I'm running Tasker/AutoVoice Continuous. I was able to stop AVC when I opened Music Player, but there was no way native to Tasker to close the app while playing music and have AVC reload *after* the music stopped. This just made my day :-) Happy Memorial Day 2014.

E70%
by E####:

Works as expected. Does not update information quickly though. Not really useful

Y70%
by Y####:

Does not detect BeyondPod, Audible, or Amozon Music

Y70%
by Y####:

Tried it on Xiaomi mi4. Is music playing profile was never active even when the music was playing. YouTube video tutorial is needed

Y70%
by Y####:

Does not work well with htc m9 (android 6) and Bubble Upnp

C70%
by C####:

Great if you can follow instructions! This solved my problem of using my device as a car media player. Whenever the car started, the device would temporarily lose power and then Tasker would stop my music and then replay it from the beginning. This check let me stop my task if the music was already going, preventing the "Play" command from restarting my music. Also sometimes when the car was stopped, the music would fail to pause and keep playing. This let me add a check that if the music was still playing after a few seconds AND there was no power to the device, to kill the player and prevent the music from completely draining my device overnight. So it solved 2 problems at once! Awesome. The whole setup and configuration is pretty convoluted, especially if you're new to Tasker, so I would say to read the instructions very carefully. Thanks to the dev for providing a solution to a previously impossible problem.

P70%
by P####:

Can't use my UE Booms like I used to (as a loud alarm) without this & Tasker (plays silence every 10 min to avoid auto-shutoff).

T70%
by T####:

Doesn't work on my note 4 on lollipop

N70%
by N####:

Worth every penny although i recommend you read the app purchase page before having ago.

T70%
by T####:

Works perfectly. Don't let the setup of this plugin intimidate you. It is actually very simple and once you have the first simple profile created, you can simply use the plugin to query that profile from any context/task.

T70%
by T####:

Was a great plug in till I started to do more with my phone it causes issue with one app I recently got called side control when playing and pausing music was well worth the few change I spent on it though I have it here just in case I can find a fix

T70%
by T####:

Bit complicated to use. But works. Great

K70%
by K####:

Works nicely!

O70%
by O####:

Instructions are vague who knows how you are supposed to create the task with this as the instruction Task 1. Set %IS_MUSIC_PLAYING = 1 Exit task: 1. Clear %IS_MUSIC_PLAYING. Tasker asks for an action category it makes no sense. Then there are more instructions that still make no sense. Should have step by step instructions. Eg under profiles create a "state context, select plugins select the app Cant even get a refund because I waited too long for help. Developer refuses to help

T70%
by T####:

I don't think this works on it. 2 stars because it wasn't specified in description.

T70%
by T####:

It was too slow reacting

Z70%
by Z####:

Follow the instructions and it will work. I used a variable set to 1 or 0 and it didn't work. Use set/unset and it works.

Z70%
by Z####:

It's an essential part of the home grown voice assistant.

Z70%
by Z####:

It does what it says it will. Nothing more, nothing less. ...Update: I switched to using Media Utilities instead, MU works better/faster and is more useful.

W70%
by W####:

You can't just create the profile, you need to execute the query task which in turn activates the profile. In other words, the profile isn't "listening" all the time, it only checks for audio when you're query task tells it to check.

S70%
by S####:

Works with all 3rd party music apps I have.

U70%
by U####:

I'm running Tasker/AutoVoice Continuous. I was able to stop AVC when I opened Music Player, but there was no way native to Tasker to close the app while playing music and have AVC reload *after* the music stopped. This just made my day :-) Happy Memorial Day 2014.

U70%
by U####:

I wanted a way to query the media stream when certain apps were open and a video was playing inside them in order to force landscape mode and rotate back to portrait as soon as the audio is finished . This plugin helps me accomplish this flawlessly. Thanks to the dev for an awesome Tasker plugin!

K70%
by K####:

This plugin isn't super easy to use but I have to give many many props to the developer for taking his time to help me when I couldn't get it to work properly and eventually we were able to come up with a solution. I bought this app so I could save battery on my devices by turning off WiFi when the display was off and it was a bit difficult to make it work properly but I guess tasker isn't for beginners so I should have known better than to just jump in uninformed. Again, I highly commend the dev for his support efforts and that's why I give this app 5 Stars

K70%
by K####:

Was a great plug in till I started to do more with my phone it causes issue with one app I recently got called side control when playing and pausing music was well worth the few change I spent on it though I have it here just in case I can find a fix

K70%
by K####:

Had difficulty setting it up at first but the developer helped walk me through it over email. Works great and well worth the price.

K70%
by K####:

A little confusing until I paid attention to the directions here! You need a profile and a task and a two second delay. Do all that and it works like a charm. (Android 4.3, Tasker 4.1)


Share The Word!


Rating Distribution

RATING
4.15
91 users

5

4

3

2

1