hiimnalaa / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

After installing flash, swfobject still wont embed video until i reload the original page #514

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Uninstall flash

2. Open an html page where you have a link where when clicked will call 
swfobject.embedSWF(...);

3. Clicking the link should obviously not show the video

4. Now install flash

5.  Go back to the page in #2 (don't refresh just go back to the page that was 
open).

6.  Clicking the link still does not embed the video.

7.  Refresh the page, now embedSWF will work.

What is the expected output? What do you see instead?
After you install flash, it should get embedSWF to work

What version of the product are you using? On what operating system?
SWFObject v2.2, Windows XP, IE 8

Please provide any additional information below.

Original issue reported on code.google.com by bla...@gmail.com on 4 Nov 2010 at 5:55

GoogleCodeExporter commented 9 years ago
Here is a code example:

http://pastebin.com/raw.php?i=TWVS52HF

Original comment by bla...@gmail.com on 4 Nov 2010 at 8:50

GoogleCodeExporter commented 9 years ago
Hi Blairv 

Your code example wraps everything in a jQuery 'ready' function. 
swfobject.embedSWF() also uses its own domready detection.  Can you try your 
test again, but this time use createSWF instead of embedSWF (see 
http://code.google.com/p/swfobject/wiki/api)?  This can help determine if the 
issue is related to the domready code, which is especially important if you're 
referring to re-visiting a page without reloading it.

Also, be aware that SWFObject 1.5 used document.write(), while SWFObject 2.x 
uses the W3C createElement() with an outerHTML fallback. This may account for 
the differences you've encountered.

- philip

Original comment by platelu...@gmail.com on 7 Nov 2010 at 5:30

GoogleCodeExporter commented 9 years ago
Related discussion here:
http://groups.google.com/group/swfobject/browse_thread/thread/2f457ef5936b59a2?h
l=en

Original comment by platelu...@gmail.com on 7 Nov 2010 at 5:32

GoogleCodeExporter commented 9 years ago
I did not try the createSWF function because it seems overly verbose.  I did 
however ditch the dom ready and instead added an onclick tag to the link itself 
that called a function which calls embedSWF.  Still does not work.  I would 
really suggest revisiting exactly why it is so vastly different then the 1.5 
implementation.  Seems like something more than just the dom ready.

Original comment by bla...@gmail.com on 9 Nov 2010 at 5:12

GoogleCodeExporter commented 9 years ago
Does the SWF show up without a refresh if you use a non-SWFObject embed method, 
such as using the <object><embed> combo in your HTML?

Original comment by platelu...@gmail.com on 9 Nov 2010 at 6:55

GoogleCodeExporter commented 9 years ago
Installing the Flash Player plugin may require a page refresh depending on the 
browser.  This is handled by the browser vendors and Adobe, and is therefore 
beyond our control.

Original comment by platelu...@gmail.com on 16 May 2011 at 5:25