views:

258

answers:

1

hi,

could you explain me why my flash video player doesn't work in Chrome while it perfectly works in other browsers ? (Firefox and IE)

You'll see it flickering...

thanks

+1  A: 

If you use the chrome developer tools you'll see that something keeps on adding a <param name="wmode" value="transparent"> to the object every second. Is there a timer somewhere in your code that should have been stoppend and isn't being stopped on chrome?

Update: it must be the changeSize() function that keeps being called. (By __flash__toXML as you can see when you start debugging by putting a breakpoint on the changeSize function)

Simon Groenewolt
uhm, yeah.. well no, there is not timer. The changeSize() fuction is triggered from the Flex code when the browser send metadata to the Flex app (basically it pass the video path) <mx:VideoDisplay metadataReceived="passSize(); ... /> passSize calls changeSize() to pass back the video size. Probably Chrome keep sending metadata ?
Patrick
I've now added a removeEventListener from my video player so that when the changeSize() function is triggered, the listener is removed and the flash player is not anymore invoking ExternalCall.. but still nothing ;(
Patrick
I've temporanely fixed by checking if embed exists before to add it. But the changeSize function is called iteratively, so it is not a "clear" solution.
Patrick