I'm in the process of creating my own HTML5 video player and packaging it as a reusable jQuery plugin. I need to terminate a function part way through, because when i press play, the player would play, then pause itself, if there is an odd number of times that a player is created afterwards.I'm in the process of creating my own HTML5 vid