Start TC Media Player from Tasker

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
robert1968
Junior Member
Junior Member
Posts: 2
Joined: 2016-05-09, 04:22 UTC

Start TC Media Player from Tasker

Post 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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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
Author of Total Commander
https://www.ghisler.com
robert1968
Junior Member
Junior Member
Posts: 2
Joined: 2016-05-09, 04:22 UTC

Post 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
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Re: Start TC Media Player from Tasker

Post by *Hurdet »

Do it is possible to have a intent for Play and a intent for Stop distinctly?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Start TC Media Player from Tasker

Post by *ghisler(Author) »

Why not use what user robert1968 describes?
Author of Total Commander
https://www.ghisler.com
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Re: Start TC Media Player from Tasker

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Start TC Media Player from Tasker

Post 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"
Author of Total Commander
https://www.ghisler.com
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Re: Start TC Media Player from Tasker

Post by *Hurdet »

Ok, but I would to stop without exit to mantain the play list, and also a play only command.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Start TC Media Player from Tasker

Post by *ghisler(Author) »

Author of Total Commander
https://www.ghisler.com
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Re: Start TC Media Player from Tasker

Post by *Hurdet »

In my case, I have two player playing simultaneously and therefore I have to control each player separately.
Post Reply