Play in background intent

Support for Android version of Total Commander

Moderators: Hacker, petermad, Stefan2, white

Post Reply
gyx
New Member
New Member
Posts: 1
Joined: 2025-06-09, 13:23 UTC

Play in background intent

Post by *gyx »

Hi. I use the url of the link to play the media file. How can I play media immediately in the background, without opening the TC Media Player?
Now I can send (for example from Termux) a command:

Code: Select all

adb shell am start -d "file:///sdcard/Music/list.m3u8 -t audio/mp3" com.ghisler.android.TotalCommander/.MediaPlayerActivity; adb shell input keyevent 4
but I have to use an emulation of the BACK button to collapse the player into the background.. is there a shorter solution? To use "send intent" in Tasker or Macrodroid? Thanks)
As button 138 "Play Selected", but with broadcast/intent/activity...
Post Reply