Can i use javascript to check whether the video is running or stopped? I have to loop the video but putting loop='true' in the embed doesnt work out well. Is there a javascript method to check if the video is running or stopped?
-
Please show the code you are using to embed the video.Pekka– Pekka2010-06-25 10:59:54 +00:00Commented Jun 25, 2010 at 10:59
-
<object width="425" height="350"><param name="movie" value="youtube.com/v/5sw2OvIgoO8"></param><param name="wmode" value="transparent"></param><embed src="youtube.com/v/5sw2OvIgoO8" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>ria– ria2010-06-28 05:18:57 +00:00Commented Jun 28, 2010 at 5:18
Add a comment
|
1 Answer
It depends on what methods the particular object you are using exposes to the JavaScript.
You've tagged this as "flash" - even then it depends on the particular flash object you have, which has to explicitly expose things via the External Interface.