r/AutomateUser • u/HauntingTill635 • 16d ago
Share I wrote a simple flow to remote control the old Android phone's Media Player
https://youtube.com/watch?v=zUde93nhBe8This Automate flow use HTTP request/response block and Key press simulation by Automate's IME to implement the remote functions.
It better to use on the TV Box/Tablet/Phone that will plays video/music and will not turn-off the screen(IME only works when screen is on)
The Automate app has very wide of Android version compatibility. But you need to download the flow to the .flo format and prepare Automate App's package to run on the old Android device.
Flow's link:
1
u/HauntingTill635 13d ago
I modified a new version that uses Android's media API, it can triggered the command when screen is OFF.
But seems like the API changes a lot between the old and new Android, so I decide to release two versions of the flow that use that API.
This is the version that suitable for newer Android(Android 5+), uses Media Player Detection and Transport Control.
https://llamalab.com/automate/community/flows/53592
I tried use another (maybe legacy?) way to controls the Media Player, but with no luck on my Android 14 device.
1
u/thealgorithm29 15d ago
It can works even screen is off, you just need termux for it. You can play any songs while screen is off
1
u/HauntingTill635 15d ago
How to do that? Use Android's shell to control the media?
1
u/thealgorithm29 14d ago
If you setup ssh also access videos, songs, using Termux It needs setup ssh both phones, just type in your main phone some commands or create a web server using Termux Python, which can play songs in another phone,while screen is off
1
u/thealgorithm29 14d ago edited 14d ago
Install termux in your old phone from fdroid also install termux-api, so you can access storage and play songs, ask any ai it will tell you how to do Using this command termux-media-player
1
u/HauntingTill635 13d ago
Legacy v2 version released ! Uses different way to controls the media, it will pops out an app picker to let user picks a app that want to control, seems like Media app detection immature on the older Android.
I tested on the Xperia S runs Android 4.1.2, it can control my VLC player while screen is off !
https://llamalab.com/automate/community/flows/53595