Embed flv fail in internet explorer

Hi experts,

I attempt to embed FLV files on my website, but encounter a compatibility problem:
the code works fine in Firefox and Safari but IE 7 and 8 just show a white rectangle. What do I miss?

link: http://brockhoffsarkiv.dk/projekter.asp
try the first link: "dictes indledningssang" - there are several FLV-links , but all of them has the same issue.

Regards
MWB


Code attached

MortenWBAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CyanBlueCommented:
I see the video just fine???

CyanBlue
0
MortenWBAuthor Commented:
in Internet Explorer??
0
CyanBlueCommented:
Oh, I totally missed that part...

It seems like the issue has to do with your OBJECT/EMBED tag...
See if SWFObject solves the problem...
   http://code.google.com/p/swfobject/
   http://code.google.com/p/swfobject/wiki/documentation

CyanBlue
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

MortenWBAuthor Commented:
Might it be a problem with the internet explorer settings?? I have two IE systems running and neither show the video, just a white frame. Both have FlashPlayer 10,0,45,2 installed, and I've tried to uncheck the "hardwre acceleration" and positioned an "unlimited local storage" setting inthe player. None of this works.
0
MortenWBAuthor Commented:
Cyanblue,

thanks for responding :)

okay - haven'nt got the time to download and check SWFObject code 'fore tomorrow. I'll be back in -like- 12 hours.

Best regards

MortenWB
0
nicawCommented:
Hi,
try the following:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="530" height="315" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="scale" />
<param name="bgcolor" value="#000000" />
<param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_3&amp;streamName=http://mbweb.dk/movies/Aabningssang&amp;autoPlay=false&amp;autoRewind=false" />
</object>

Open in new window

0
MortenWBAuthor Commented:
thanks nicaw, but this does not work either.
0
MortenWBAuthor Commented:
And having looked into the SWFobjct documentation it seems only to deal with swf-files, and not FLV?
0
CyanBlueCommented:
You cannot directly embed the FLV...  You have to embed the SWF file that plays FLV file...  As long as the SWF is embedded correctly, it should play the video just fine...  So, did you try the SWFObject???

CyanBlue
0
MortenWBAuthor Commented:
okay, sorry guys, just stumbled over the problem - 'twas this piece of code, that I inserted on the page believing that it would overcome the IE-issue of having to make a choice before flash got enabled:

objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
    objects[i].outerHTML = objects[i].outerHTML;
}

This turned out to be the culprit, so I simply leave it out now, and the page works in all my testbrowsers now.

thanks for you attention.
0
MortenWBAuthor Commented:
CyanBlue,

just saw your comment after my last post - did not try it yet - but whats the advantage of SWFobject2?

0
CyanBlueCommented:
Well...  Let me quote what is in the documentation...  ;)

In other words, it is easy to use to embed the SWF into the webpage, it takes care of most of the browser compatibility issue, and provides you a way to display an alternative content in case the user does not have Flash Player installed or do express install if the user choose to...

CyanBlue
SWFObject 2:

    * Offers two optimized Flash Player embed methods; a markup based approach and a method that relies on JavaScript
    * Offers a JavaScript API that aims to provide a complete tool set for embedding SWF files and retrieving Flash Player related information
    * Utilizes only one small JavaScript file (10Kb / GZIPed: 3.9Kb)
    * Is the successor of SWFObject 1.5, UFO and the Adobe Flash Player Detection Kit
    * Intends to unify all existing Flash Player embed methods and provide a new standard for embedding Adobe Flash Player content

Open in new window

0
CyanBlueCommented:
Any update???  Please elaborate if you still have the problem, otherwise close the topic...

CyanBlue
0
ronan1979Commented:
>>> I made it work under IE6.0, so it should be working everywhere. <<<

the player works with IE but the parameters are not set!!

IE tried to display an unkown movie http://brockhoffsarkiv.dk/.swf  in a player of 0x0pixel dimension.

I compared the source code between FireFox and IE.
IE has no width, height and streamName set!!!

so i manually did, and it works fine under FF and IE6.0.

Note:

some code seems unused so i removed them
  1. MISSING MM JAVASCRIPT FILE (MM_preloadImages, MM_swapImgRestore, MM_swapImage unknown)
  2. IS 'AC_RunActiveContent.js' file USED ? seems no.
0
CyanBlueCommented:
Yeah, there are numerous problems in that page...  That's why I suggested SWFObject in the first place...  ;)

CyanBlue
0
ronan1979Commented:
i check the link: "dictes indledningssang" in http://brockhoffsarkiv.dk/projekter.asp
FF and IE send the same POST data.

Oh, you change fix the player. good

 but you still have the javascript problem so IE6.0 generate very annoying errors.
please, add the javascript file missing OR BETTER remove the code
0
MortenWBAuthor Commented:
Hi experts,

sorry about the delay - got lost in other work - thanks for your participation - I havnet got the time to implement the SWFObject you suggest, Cyanblue, but award you the points, as I'm sure your suggestion will releive of future probs once I've build it into my pages.

Best regards

MortenWB
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.