New answers tagged media-player
You were assuming State → Hardware → Media Button coming close to your wishes – but No: That event triggers when One of the media buttons is pressed, as the name suggests, not when a video/media is played. When looking for a fitting Tasker trigger, the only thing coming close to it is checking the %MTRACK variable, but that only works for some audio ...
There isn't a single app or script that runs for all videos. Some video support is built into the Android framework, and each app also have its own logic for playing videos.
Top 50 recent answers are included