Page 1 of 1
Start TC Media Player from Tasker
Posted: 2016-05-09, 04:54 UTC
by robert1968
Hi,
I would start Total Commander Media Player with a specific mp3 from Tasker. How?
How to start playing -from Tasker- if music paused?
(TC very usefull I like it very much. Congrat for Christian!
Best Regards,
Robert
Posted: 2016-05-09, 08:58 UTC
by ghisler(Author)
To launch the player:
Choose "System" - "Send Intent"
Action: VIEW
Type: Default
Packet: com.ghisler.android.TotalCommander
Class: com.ghisler.android.TotalCommander.MediaPlayerActivity
Target: Activity
Optional: You can pass an URL to a track via "Data" to queue it.
To play/pause:
Choose "System" - "Send Intent"
Action: com.ghisler.PlayPause
Type: None <- not Default!
Other fields: not set
Posted: 2016-05-11, 14:59 UTC
by robert1968
Hi Chris!
Thank you very much for quick and very helpfull information!!
Probably i have different Tasker version, but I have to set some settings on other fields:
A1: Send Intent
Action:VIEW
Cat:Default
Mime Type:
Data:/storage/emulated/0/mp3/Morning Show 2016.05.09.mp3
Extra:/storage/emulated/0/mp3
Extra: Extra:
Package:com.ghisler.android.TotalCommander Class:com.ghisler.android.TotalCommander.MediaPlayerActivity
Target:Activity
To play/pause:
A1: Send Intent
Action:com.ghisler.PlayPause
Cat:None
Mime Type: Data: Extra: Extra: Extra: Package: Class:
Target:Broadcast Receiver
But evrithing is working fine
Thank you very much!!!
Best Regards,
Robert
Re: Start TC Media Player from Tasker
Posted: 2020-11-02, 11:51 UTC
by Hurdet
Do it is possible to have a intent for Play and a intent for Stop distinctly?
Re: Start TC Media Player from Tasker
Posted: 2020-11-03, 16:35 UTC
by ghisler(Author)
Why not use what user robert1968 describes?
Re: Start TC Media Player from Tasker
Posted: 2020-11-03, 16:45 UTC
by Hurdet
Because I don't care to toggle player but play or stop if necessary.
f.e. I would to stop the player when I get home but if it already is stopped then with PlayPause ti start to play.
Re: Start TC Media Player from Tasker
Posted: 2020-11-03, 17:04 UTC
by ghisler(Author)
There is a command to stop and close the player:
adb shell am start -n "com.ghisler.android.TotalCommander/com.ghisler.android.TotalCommander.MediaPlayerActivity" -a android.intent.action.VIEW -d "file://exit"
Re: Start TC Media Player from Tasker
Posted: 2020-11-03, 17:44 UTC
by Hurdet
Ok, but I would to stop without exit to mantain the play list, and also a play only command.
Re: Start TC Media Player from Tasker
Posted: 2020-11-06, 13:46 UTC
by ghisler(Author)
Re: Start TC Media Player from Tasker
Posted: 2020-11-06, 14:02 UTC
by Hurdet
In my case, I have two player playing simultaneously and therefore I have to control each player separately.