How to detect if video is currently playing in page without using youtube/ggole api
<p>Situation: I have a page that shows a stream of posts (news) submitted by our members. I have a setInterval() in this page that causes it to refresh every x seconds - if user is idle for x seconds. </p>

<p>Recently I have added video posts where user can click on an item and video would begin to play immediately in the page (so far I'm only using youtube iframes).</p>

<p>The problem: my auto refresh sometimes refreshes the news content while user is watching a video and being "idle"... which causes video to close and content to reset...etc. Meaning, user will loose his/her position in the video and have to start over.</p>

<p>My question: how do I detect if this page has at least one video that is currently "playing"? I'd like to use this to decide if auto refresh should occur or not.</p>

<p>Note: I'm not currently in favor of using the custom player or google/youtube js api because soon I will be adding support for videos from other services such as vimeo, 56.com...etc.</p>

<p>Question rephrased: is there a "universal" javascript or jquery method to detect if a video is currently playing in the document or window?</p>

<p>Thank you!</p>
