Click to See Complete Forum and Search --> : FLV playing in FF and IE, please help!


zero001
01-14-2009, 12:43 PM
Hello, I hope someone can help me out, I'm trying to get an .flv movie to play in Firefox and Internet Explorer (IE6 and IE7). I hope im in the right forum :) Im using Dreamweaver and I can get the movie to work in FF with one code and not in IE; and with another code I can get it to work in IE and not in FF! Its driving me doolally!
I've put the codes below, the first is works in FF and the second in IE6. If anyone can help me out with this I'd be very very grateful! :confused:
Rob

1st code works in FF and not in IE
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="280" height="228"><param name="movie" value="http://www.youtube.com/v/filename" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="wmode" value="" /><embed src="http://www.youtube.com/v/filename" wmode="" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="280" height="228"></embed></object>

2nd Code works in IE and not in FF
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="280" height="228" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_1&amp;streamName=../_assets/cutter-movie&amp;autoPlay=false&amp;autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="../Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="280" height="228">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_1&amp;streamName=../_assets/cutter-movie&amp;autoPlay=false&amp;autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<param name="expressinstall" value="../Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</h5>
<p><img src="../_images/2.jpg" width="280" height="145" alt="cutters" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
<div id="emptybar"></div>
<div id="footer"> Copyright © 2006 . Click <a href="../legal.htm">here</a> for legal terms.</div>
</div>
<script type="text/javascript">
<!--
swfobject.registerObject("FLVPlayer");
//-->
</script>
</body>
</html>

Eye for Video
01-14-2009, 02:34 PM
After a little review and experimenting with your code, I see a couple of potential problems.
In the first code set, you are using an absolute address:
<param name="movie" value="http://www.youtube.com/v/filename" />
in the second you are using a relative address:
FLVPlayer_Progressive.swf
Without the actual address in the first set, it’s hard to duplicate your results. So I changed the address and using a relative address to an existing .swf on my local machine…code works just fine in both IE and FF. Then I tested an absolute address and again the code works fine in both IE6,7 and FF2. Seems like something is a problem for IE in the way that YouTube address is parsed in IE. Does it open the video if you load it directly with this address:
http://www.youtube.com/v/filename
Fill in the actual address of course. If you can’t load it directly, the address part may be the problem.
Second set of code is reading a relative address:
FLVPlayer_Progressive.swf
Substituting a different .swf on my local machine, that code works fine in FF2, In the IE, I get “new player version needed” (which is not actually the case).
So are you testing these sets of code on a local machine or are you testing after it’s been uploaded to the server? In the first set of code (which works except for the address), there’s no way to tell if you are downloading a .flv (the actual video) or a .swf (the video player). The second set is using swfobject to place the player on the page. This should also work in both IE and FF.
There may not be a major problem with either set of code but rather the way the address is used. If your goal is simply to play that one video. Download the .flv (the video), get a Flash player (the .swf) that will work with it and upload both to correct folder on server. Then use a relative address (in either set of code). First set of code…simple, it works..but it won’t validate the <embed>. Second set using swfobject, works, but is much more complicated and difficult to trouble shoot.
Best wishes,
Eye for Video
www.cidigitalmedia.com

zero001
01-15-2009, 05:13 AM
Hi EFV, thanks for your help its much appreciated although I have to tell you something and u must promise not to hurt me... you promise? Good. Ok, I am an utter fool and my IE updated my player and now the code that works in Firefox now works in my IE too :o

My head is hung in suitable shame and embrassment.

Thank you for the help though as you assistance has helped me learn a bit more than I previously did about coding and flv etc. I have to admit i'm a bit of a mole when trying to figure out coding and I just blindly find my way sometimes. If I ever need help again I'll be sure to thuroughly test beforehand, in fairness to me I thought I had. :o

Thanks again for your help
All the best
Rob

Eye for Video
01-15-2009, 10:38 AM
Hey, that kind of stuff happens to all of us. Just glad I could help out a little. I appreciate learning the outcome. With out that, the rest of us can't learn as much from each other.
EfV

zero001
01-15-2009, 02:01 PM
Thanks for being so understanding, I will endeavour to be more thorough before asking for help again :)
All the best
Rob