0

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?

2
  • Please show the code you are using to embed the video. Commented 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> Commented Jun 28, 2010 at 5:18

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.