Fast-forward/Rewind Media on newer Samsung's lock screen

hsurB

Well-known member
Macro requires using both samsung's built in modes and routines app and macrodroid, screen on and media app that shows notification.
Macro reads screen content to save current time stamp of played media and total time, runs shell script to calculate on what % of total time are you right now, then it either fast-forwards or rewinds by 5% (uses ui interaction to click on notification) based on what triggered macro.
I set up modes and routines to trigger macro by clicking volume up or down button twice (as on screenshots)
I used S23 Ultra with QHD+ resolution (3088x1440)
Works with spotify and youtube, haven't tested other apps
 

Attachments

  • Screenshot_20240414_122412_Modes and Routines.png
    Screenshot_20240414_122412_Modes and Routines.png
    98 KB · Views: 4
  • Screenshot_20240414_122408_Modes and Routines.png
    Screenshot_20240414_122408_Modes and Routines.png
    114.3 KB · Views: 3
  • Screenshot_20240414_122404_Modes and Routines.png
    Screenshot_20240414_122404_Modes and Routines.png
    99.5 KB · Views: 2
  • Screenshot_20240414_122415_Modes and Routines.png
    Screenshot_20240414_122415_Modes and Routines.png
    112.9 KB · Views: 4
  • MediaControl.macro
    18.6 KB · Views: 2
  • MediaControl.png
    MediaControl.png
    486.4 KB · Views: 4
Top