I'm thinking like the old Cinemavision addon - when I am in my library, I long press the play button, and I get a context menu, where I can choose Play, Info, Manage, etc.... and one of the options was "play using cinemavision" which would then launch the cinemavision script.