what app/script is responsible for video media?
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.