• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 721
  • Last Modified:

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

0
MortenWB
Asked:
MortenWB
  • 8
  • 6
  • 2
  • +1
1 Solution
 
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 8
  • 6
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now