Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hey Guys,

I am using swfobject.js file to embed youtube video in my application..

I am using the following code to embed:

JavaScript
swfobject.embedSWF(url, "container", w, h, "8", false, null, params, atts, swfCallback);


All works great when the page is first time loaded..

Now i am using a link to change the Youtube video url and embedding the video again..

This time also video works fine but swfobject.embedSWF method calls twice..which returns e.success falls in my swfCallback which is a call back function...

The video can play..but with error,,

This happens only in Firefox,
in IE, Safari, Chrome its working great..!

Please help me whats the reason the swfobject.embedSWF calls twice?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900