With an HTML5 video element on the iphone, how can I detect the difference between “pause” and “done”?
This is an extension of this question According to my research, for a video element on an iPhone/iPad, pressing both "Done" and "Pause" triggers a "pause" event. So if I have some desired webpage behavior that I want to initiate upon pressing the "done" button, I need to listen for the "pause" event. player = document.getElementById('videoplayer'); player.addEventListener("pause", function() { //desired "done button" behavior defined here }, false); According to Arv-ToolTwist's answer to that original question, the way one differentiates between "done" and "pause" is by checking for the