FLASH Plugin Crash Detection

Is there any way to detect flash plugin crashes in main browsers (firefox i.e. chrome, safari and opera) via javascript?

+7
javascript browser flash crash
source share
4 answers

I'm not sure if this works or not. You can periodically get a link to a Flash object and check if it has a SetVariable method.

function checkFlashCrashed() { try { var tmp = document.getElementById("flashObjectId").SetVariable; if(!tmp) { alert("Flash crashed"); return; } } catch (e) { alert("Flash crashed"); return; } setTimeout(checkFlashCrashed, 1000); // check it out every one second } 

SetVariable is an interface function that can be called from Javascript code. If the flash fails, its interface must also be damaged. Therefore, this may be a solution.

+8
source share

Use global exception handling in ActionScript to call the front end on UncaughtErrorEvent.UNCAUGHT_ERROR.

When an error occurs during the execution of Flash Player, it can catch an exception and pass a JavaScript signal.

+1
source share

Maybe you can use a keep alive script in your as3 file that speaks to the js page, if js doesn't receive the call in a few seconds, you can turn it off and treat it like a flash accident.

0
source share

It depends on how you feel about false positives.

You may have a watchdog timer that makes an ajax call “The flash didn't crash” if the flash seems to still work. And suppose the flash crashes if not written. This will create false positives if the user closes the page before checking.

You may have a watchdog timer that makes the ajax call “Flash crashed” if the flash does not seem to work. This will skip glitches, such as glitch, which kills the entire browser.

Perhaps you can have both watchdogs so you can better understand what is happening.

0
source share

All Articles