Topic: Flash Inconsistency

Hi all,

I am having a strange problem with Flash at the moment, one of my clients wants a video on their website, so I have uploaded a FLV player I have been using for a while (I think it's the JW FLV player or something). In the backend CMS it works fine (using exactly the same code as the frontend), in both Safari and FF, but in the front end it only works in Safari, which is very odd.

I thought it could be cross domain conflicts, but after reverting to a relative URL it still isn't working. I followed the Flash Satay method (http://www.alistapart.com/articles/flashsatay) to no avail, and below is the code (have added full domains so you can test):

<object type="application/x-shockwave-flash" data="http://herpetosure.com/mediaplayer.swf" width="300" height="300">
    <param name="movie" value="http://herpetosure.com/mediaplayer.swf" />
    <param name="allowfullscreen" value="true" />
    <param name="flashvars" value="width=300&amp;height=300&amp;file=http://cms.herpetosure.com/uploads/uiAVBnKzrKCYAm4NQfIW.flv&amp;image=http://herpetosure.com/resize/300/300/1/uploads/D6oBQzYAzd5nGzhzXsvT.jpg" />
    <p>You must have Flash installed to view this video.</p>
</object>

There is also a test page up at: http://herpetosure.com/test, as you can see not even the basic flash player is loaded (at least for me anyway).

Any ideas would be greatly appreciated.

ThinkRefresh - Free Rails Techniques Screencasts

Re: Flash Inconsistency

It's because of the object tags. Rather than using object tags, use swfobject.js, but put the swf and flv files themselves in directories in public/. I have no idea why, but it will not play the swf movie at all (since flv movies are played from swf movies anyway tongue) from withing the application itself, they have to be somewhere in public/.

The swfobject.js will call the object through JavaScript so any browser will render it just the same.