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
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.png98 KB · Views: 4
-
Screenshot_20240414_122408_Modes and Routines.png114.3 KB · Views: 3
-
Screenshot_20240414_122404_Modes and Routines.png99.5 KB · Views: 2
-
Screenshot_20240414_122415_Modes and Routines.png112.9 KB · Views: 4
-
MediaControl.macro18.6 KB · Views: 2
-
MediaControl.png486.4 KB · Views: 4