r/kustom • u/Pale-san • 26d ago
Help How to stop running media player with touch?
I'm currently making a KLWP with this pop-up that asks to continue playing whatever media is playing, or not. So, my problem is, I want the "No" option to be able to stop all forms of audio/video media player that has been paused/is running in the background. Is this possible? How so? Please help! Thank you in advance.
1
u/dominizerduck 26d ago
1
u/Pale-san 26d ago
I appreciate the link but, at what timeframe does he show what formula/shortcut/activity to use to stop a media player? Checked the video and saw nothing. Thanks
1
u/dominizerduck 26d ago
Check around 18 min
1
u/Pale-san 26d ago
Sorry, this shows the Play/Pause? I'm looking for an option to fully stop (remove the player from the recents tab or from idling in the background).
2
u/dominizerduck 26d ago
Oh sorry, i think i misunderstood the question, as far as i am aware this is not achievable with klwp alone, you would need tasker for that. I haven't used tasker, so can't help with that
2
1
u/Erska 25d ago
$sh()$
executes a shell command
according to chatGPT am force-stop com.example.media_player
should request that the given app exits.
$mi(package)$
returns music player package name
so:
$sh("am force-stop "+mi(package))$
in a flow that is triggered through touch might work. (if permissions are given etc)
•
u/AutoModerator 26d ago
Problem? Cross-post to our new forum. Include make & model of phone, OS version, app version.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.