Start TC Media Player from Tasker
Moderators: white, Hacker, petermad, Stefan2
-
- Junior Member
- Posts: 2
- Joined: 2016-05-09, 04:22 UTC
Start TC Media Player from Tasker
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
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
- ghisler(Author)
- Site Admin
- Posts: 48079
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
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
https://www.ghisler.com
-
- Junior Member
- Posts: 2
- Joined: 2016-05-09, 04:22 UTC
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
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
Do it is possible to have a intent for Play and a intent for Stop distinctly?
- ghisler(Author)
- Site Admin
- Posts: 48079
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Start TC Media Player from Tasker
Why not use what user robert1968 describes?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Start TC Media Player from Tasker
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.
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.
- ghisler(Author)
- Site Admin
- Posts: 48079
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Start TC Media Player from Tasker
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"
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
https://www.ghisler.com
Re: Start TC Media Player from Tasker
Ok, but I would to stop without exit to mantain the play list, and also a play only command.
- ghisler(Author)
- Site Admin
- Posts: 48079
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Start TC Media Player from Tasker
You can try to simulate media button presses, see this page:
https://stackoverflow.com/questions/12925896/android-emulate-send-action-media-button-intent
https://stackoverflow.com/questions/12925896/android-emulate-send-action-media-button-intent
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Start TC Media Player from Tasker
In my case, I have two player playing simultaneously and therefore I have to control each player separately.