Responsive javascript flash player dectetion
- Responsive javascript flash player dectetion update#
- Responsive javascript flash player dectetion upgrade#
- Responsive javascript flash player dectetion code#
- Responsive javascript flash player dectetion download#
The downside to this was that it also broke ExternalInterface calls going into the swf. Working with another developer, we found a very odd resolution at first – if we removed the Id attribute from the object tag, it would fix the problem – no more ghosted audio. When you embed a swf using innerHTML in IE 6, and stream content to the Flash Player, when the user leaves the page (either by reloading it, hitting the back button, or closing the browser window with another browser window open), the audio will keep playing until the video ends or until the user closes all of their open IE windows. To make a long story short, the issue was this: So they called me late on a Sunday night to help figure out what the problem was. They found a very odd bug: when watching a video, if they hit F5 to reload the page, or closed the popup window, if they were using IE, the audio would keep playing until the video ended or until they closed all their open Internet Explorer windows.Īfter spending a few hours investigating, Danny noticed that when they weren’t using SWFObject to embed the swf, they didn’t have the problem. Go get it! Posted in javascript, swfobject Flash Player bug with streaming content and innerHTML in IEĪ few weeks back some Schematic developers were working on a video player for NBC Universal*. If you are familiar with SVN, you can do a checkout from. I’ve also created a Subversion repository for SWFObject.
Responsive javascript flash player dectetion update#
fixed a couple of strict js warnings that crept back in sometime after the 1.4 update.updated the getQueryParamValue method to fix a bug that would return the wrong value if you had two variables that ended with the same string (Thanks to Aran Rhee for discovering the issue and providing a fix).
Responsive javascript flash player dectetion code#
Responsive javascript flash player dectetion download#
Here’s a direct download link, or you can get it out of the SVN repository, or visit the SWFObject page and get it from there.
Responsive javascript flash player dectetion upgrade#
Go grab a copy now – anyone using ExternalInterface needs to be aware of this issue and should upgrade their SWFObject script immediately if you have any pages with more than one swf embedded in it. So to get to the point, this new version of SWFObject just removes the ‘bad’ code that Flash Player 9 inserts into the page and instead uses the cleanup code from the previous version of SWFObject that has been working fine for Flash Player 8. The only problem is that the code they used doesn’t like it when there is more than one swf embedded in a page. All was fine then, until Flash Player 9 was released, and it turns out Adobe included their own Javascript (that is very similar to the fix in SWFObject) to fix the streaming media problems in IE. This IE bug affected swf files that connected to streaming media servers – to learn more about it you can read this blog post.Īfter working with Adobe, we came up with a Javascript fix for the streaming media issue and I used a variant of this code in the 1.4.2 version of SWFObject. The problem is in some new Javascript code that was inserted into Flash Player 9 to fix a bug in the IE browser. This only occurs in IE – no other browsers are affected, and it only happens when using Flash Player 9 whether you are using SWFObject or not. If you have multiple swf files embedded in a single HTML page, and at least one of those files uses ExternalInterface to add a callback, when you leave the page you will get an error that says “Line 56: Out of Memory”. This release only contains a single fix for a new issue that occurs when using Flash Player 9. When clicking links that use href=”javascript:” in them, it triggers the new onbeforeunload, which makes all your swf files dissapear. Please note that there is an issue with this version of SWFObject.