Flash: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(→‎Testing Flash: note about resetting 'plugin.expose_full_path' to false)
(→‎Testing Flash: Mentioned Plugin Finder Service being triggered, replaced "Note" with "Caution" for plugin.expose_full_path setting, added bug references)
Line 7: Line 7:


==Testing Flash==
==Testing Flash==
'''SeaMonkey 2 or Firefox 3 and above:'''  If Flash is installed,  make sure that it is enabled ([[#Enabling and disabling Flash|see above]]); otherwise, Flash will not work and the Flash plugin will not be displayed in the [[about:plugins]] list.  
'''SeaMonkey 2 or Firefox 3 and above:'''  If Flash is installed,  make sure that it is enabled ([[#Enabling and disabling Flash|see above]]); otherwise, testing Flash will not work and the Flash plugin will not be displayed in the [[about:plugins]] list.  


To see if the Flash plugin is working  in your Mozilla browser, and what version is being used, go to [http://www.adobe.com/products/flash/about/ this Adobe.com Web page].   
To see if the Flash plugin is working  in your Mozilla browser, and what version is being used, go to [http://www.adobe.com/products/flash/about/ this Adobe.com Web page].  This may trigger the Plug-in Finder Service and start the installation process,  if Flash is not installed.  [https://bugzilla.mozilla.org/show_bug.cgi?id=416396]


You can also check what version (if any) of  the Flash plugin is being detected using [[about:plugins]]:  Enter ''about:plugins''  in the [[Location Bar]] (or,  in Mozilla Suite/SeaMonkey, click "Help -> About Plugins")  and find the  "Shockwave Flash" entry.  If Flash is enabled, you will see an entry similar to the following:   
You can also check what version (if any) of  the Flash plugin is being detected using [[about:plugins]]:  Enter ''about:plugins''  in the [[Location Bar]] (or,  in Mozilla Suite/SeaMonkey, click "Help -> About Plugins")  and find the  "Shockwave Flash" entry.  If Flash is enabled, you will see an entry similar to the following:   
Line 15: Line 15:
:File name: C:\WINDOWS\system32\Macromed\Flash\NPSWF32.dll
:File name: C:\WINDOWS\system32\Macromed\Flash\NPSWF32.dll
:Shockwave Flash 10.0 r42
:Shockwave Flash 10.0 r42
If you want to see the full path to the plugin file (as shown in the above example for Flash 10.0 r42 on Windows), use [[about:config]] to change the value of  '''plugin.expose_full_path''' to '''true'''.
If you want to see the full path to the plugin file (as shown in the above example for Flash 10.0 r42 on Windows), change the value of  '''plugin.expose_full_path''' to '''true''' using [[about:config]] .   '''Caution:''' This setting may have security implications on some systems,  so it is best to reset the preference to the default "false" value when you are done.  [https://bugzilla.mozilla.org/show_bug.cgi?id=488181]
 
'''Note:''' It is best not to leave the pref '''plugin.expose_full_path''' at the '''true''' value, but to reset to '''false''' if you are done to avoid security vulnerabilities: navigator.plugins exposes the full path of all plugins to websites if the value is '''true''' (navigator.plugins["Shockwave Flash"].filename).


'''Note:'''  The [[about:plugins]] list is generated from data stored in the [[pluginreg.dat]] file.  In some cases,  the stored data may be incorrect.  [https://bugzilla.mozilla.org/show_bug.cgi?id=313700]  To refresh the list,  [[Kill application|close the browser]] and delete the "pluginreg.dat" file, located in the [[profile folder]] in current Mozilla browsers.
'''Note:'''  The [[about:plugins]] list is generated from data stored in the [[pluginreg.dat]] file.  In some cases,  the stored data may be incorrect.  [https://bugzilla.mozilla.org/show_bug.cgi?id=313700]  To refresh the list,  [[Kill application|close the browser]] and delete the "pluginreg.dat" file, located in the [[profile folder]] in current Mozilla browsers.

Revision as of 11:51, 29 December 2009

Adobe Flash (formerly Macromedia Flash), refers to the Flash Player and browser plugin needed to handle SWF videos, web page animations and interactive content. Even though the Flash plugin is also referred to as "Shockwave Flash", it should not be confused with the Shockwave plugin that handles "Shockwave for Director" content.

Enabling and disabling Flash

Starting in Firefox 3 and in SeaMonkey 2, installed plugins, including Flash, can be disabled and enabled in the Add-ons manager. To disable or re-enable Flash, go to "Tools -> Add-ons (Add-on Manager) -> Plugins" and find the "Shockwave Flash" entry, shown here when enabled. Click the "Disable" button to disable the Flash plugin. If Flash is disabled, click the "Enable" button to re-enable Flash.

Testing Flash

SeaMonkey 2 or Firefox 3 and above: If Flash is installed, make sure that it is enabled (see above); otherwise, testing Flash will not work and the Flash plugin will not be displayed in the about:plugins list.

To see if the Flash plugin is working in your Mozilla browser, and what version is being used, go to this Adobe.com Web page. This may trigger the Plug-in Finder Service and start the installation process, if Flash is not installed. [1]

You can also check what version (if any) of the Flash plugin is being detected using about:plugins: Enter about:plugins in the Location Bar (or, in Mozilla Suite/SeaMonkey, click "Help -> About Plugins") and find the "Shockwave Flash" entry. If Flash is enabled, you will see an entry similar to the following:

Shockwave Flash
File name: C:\WINDOWS\system32\Macromed\Flash\NPSWF32.dll
Shockwave Flash 10.0 r42

If you want to see the full path to the plugin file (as shown in the above example for Flash 10.0 r42 on Windows), change the value of plugin.expose_full_path to true using about:config . Caution: This setting may have security implications on some systems, so it is best to reset the preference to the default "false" value when you are done. [2]

Note: The about:plugins list is generated from data stored in the pluginreg.dat file. In some cases, the stored data may be incorrect. [3] To refresh the list, close the browser and delete the "pluginreg.dat" file, located in the profile folder in current Mozilla browsers.

Installation

To install Flash (or to upgrade to a higher version) download the Flash installer from the Adobe Flash Player Download Center or from PluginDoc. If you cannot find a Flash Player download for your OS, find it manually on this page. If your system can't run the latest Flash Player (see the system requirements) you can download an updated version of Flash 9 for Windows, Linux or Mac OS X here. (Windows users should download the "Netscape" installer for Firefox and other Mozilla browsers.) Archived Flash versions can be downloaded here.

Note: If you see a yellow warning bar saying that Firefox prevented the site from asking you to install software on your computer, click the "Allow" button to start the Software Installation process. If you have problems or don't want to use the Software Installation method, look for a "click here to download" link (on the "Thank You" page with the yellow warning bar), save the download to your Desktop or other location, and then completely close Firefox and run the installer. [4] (screenshot)

After downloading the installer, completely close your Mozilla application and then run the setup file to install the Flash plugin. See PluginDoc's Flash FAQs for more information.

Installing Flash on Windows

There are two Flash players offered for Windows users: the Flash ActiveX control for Internet Explorer/AOL and the Flash plugin for Firefox/Mozilla/Netscape/Opera browsers. Each must be installed separately, since the Flash plugin installer does not add the ActiveX control and vice versa. In other words, it's possible to have the Flash 8 plugin installed for Mozilla browsers and the Flash 9 ActiveX control installed for Internet Explorer, and both will work.

Flash 9.0.r28 and earlier versions of the Flash plugin installer copied these two files to the installation directory of Firefox and other detected Mozilla browsers:

  • NPSWF32.dll to the plugins folder
  • flashplayer.xpt to the components folder or the plugins folder (for scripting support).

You would then have needed to copy these two files to the plugins folder of undetected browsers (e.g., zip builds). Note that an XPI package that was available for Flash 9.0.r28 and earlier using the "Install" link at PluginDoc also copied the Flash plugin files to the Windows System directory's Macromed\Flash folder and added a registry entry so that all Mozilla browsers could find the files through plugin scanning, using a Windows registry PLID scan [5]

Starting with Flash 9.0.r45 the Flash plugin installer for Firefox and other Mozilla-based browsers does not copy any files to the browser plugins folder. Instead, the files "NPSWF32.dll", "flashplayer.xpt" and related files are placed in the Macromed\Flash folder located in the Windows System directory (e.g., C:\WINDOWS\SYSTEM32\Macromed\Flash) and the installer removes any copies found in the installation directory of detected browsers. A Windows registry entry is created enabling each Mozilla browser to detect Flash via plugin scanning (PLID scan). [6]

  • If about:plugins shows multiple copies of NPSWF32.dll it usually means an outdated Flash plugin in the installation directory\plugins folder. The installation of Flash 9.0 r45 or later should detect and remove the Flash plugin from the plugins folder of detected browsers. If it doesn't, exit the browser and manually delete the "NPSWF32.dll" file from the plugins folder so that the newer version can be used.

Windows installation issues

  • To install Flash, you must be logged into Windows with an account that has Administrator access or privileges. [7] [8]
  • If you see the error, You do not have sufficient disk space to complete this installation. This is a known issue when installing the Flash Player plug-in on a Windows machine that does not have any drive labeled "C". See this Adobe Support TechNote and related Adobe bug report for workarounds. [9] [10]

For other installation issues, see the Adobe Support TechNote, Troubleshoot Adobe Flash Player installation for Windows.

Uninstalling Flash

Windows and Mac

An uninstaller can be downloaded from Adobe.com to remove Flash from your system. See the Flash Player TechNote, How to uninstall the Adobe Flash Player plug-in and ActiveX control. After downloading, make sure you completely exit your Mozilla application or other Internet browser before you run the uninstaller.

Windows uninstall

The Flash uninstaller from Adobe.com also removes the Flash ActiveX control needed in Internet Explorer and AOL. On Windows systems, the Flash uninstaller may hang at 93% completion. To finish the uninstall, open the Task Manager (Ctrl+Alt+Delete), click the "Processes" tab, select "killbrowser.exe", click <End Process> and say "yes" to the resulting dialog box. [11].

The Flash uninstaller may not remove all Flash plugin files from all locations so you should search for and delete the following files, if found:

  • NPSWF32.dll
  • flashplayer.xpt
  • GetFlash.exe
  • GetFlash.exe.manifest
  • NPSWF32_FlashUtil.exe

Flash 9.0 r45 and above: You can also uninstall Flash for Mozilla-based browsers using the "Adobe Flash Player Plugin" entry in the Windows Control Panel list of installed programs ("Add or Remove Programs") [12]. If you also installed Flash for Internet Explorer, you will see a second entry, "Adobe Flash Player ActiveX" which is for the Flash ActiveX control needed for Internet Explorer and the AOL browser.

Flash 9.0 r28 and below: Windows Add/Remove Programs may have an entry for "Adobe Flash Player ActiveX" but this will only remove Flash for Internet Explorer and AOL. To completely remove Flash from your system, download the uninstaller from Adobe.com. To remove Flash from Mozilla browsers only, delete the Flash plugin files shown above from all locations. [13]

Linux and Solaris

If you installed via Adobe installation routine, follow the uninstall instructions in the Flash Player ReadMe for your system, linked below:

If you installled via apt-get/aptitude (Debian/Ubuntu): sudo apt-get remove flashplugin-nonfree

If the uninstall don't work: 1. type about:config in the address bar and press Enter. Find the option plugin.expose_full_path and change the value to "true" (double-clicking the preference name will toggle the setting). 2. type about:plugins and locate the flash plugin. Remove the plugin files (both .so and .xpt)

Flash Settings Manager

You can adjust your Flash settings in the Flash Player Settings Manager. Some settings can be accessed from the context (right-click) menu of a Flash object during playback. Other settings, such as global settings for privacy, storage, security, and automatic notification of Flash Player updates, are accessible via links in the Adobe support document, Flash Player Help - Settings Manager

Troubleshooting

If Flash isn't working properly, first make sure that the plugin is installed (see above) and properly detected in about:plugins before trying the following solutions. If your problem isn't listed below:

Warning: Installing an older version of Flash may be suggested as a workaround for some Flash issues; however, doing so will make your system vulnerable to security exploits that have been addressed in the latest Flash version. [14]

The plugin for this content has been disabled

If you see a box with the message, The plugin for this content has been disabled. Click here to manage your plugins instead of Flash content on web pages, make sure that "Shockwave Flash" has not been disabled in the Add-ons manager Plugins list (SeaMonkey 2 or Firefox 3 and above). Also check in about:plugins and make sure that Shockwave Flash is properly detected; if it isn't, close the browser and delete the file "pluginreg.dat" from the profile folder. [15]

Websites ask you to install or update Flash when Flash 10 is installed

Some websites will ask you to install or update Flash when you already have the Flash 10 plugin installed. This is not a problem with your Mozilla browser or your Flash plugin, but with certain websites that misidentify Flash 10.0 as Flash 0 due to a faulty detection scheme (one digit before the decimal point). Contact the website and ask them to correct the problem or, on Windows, you can try the site in Internet Explorer, since the Flash ActiveX detection may work even though the plugin detection does not. As a last resort you can uninstall Flash 10 and install Flash 9. [16] [17]

Flash player not working on certain websites

If Flash video or other Flash content plays on some websites but not others, the website may be experiencing heavy traffic or having other problems. Try clearing the cache and reloading the video (read this article for other solutions). For issues specific to YouTube Flash videos, visit the YouTube Help Center.

Flash content may also fail to load on certain websites if you use a "spoofed" user agent (UA). For example, if you go to the Firefox menu and click "Help -> About Mozilla Firefox" and it shows Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1), then your UA is spoofed to show that you are using Internet Explorer 7 ("MSIE 7.0") instead of Firefox. If you use the User Agent Switcher extension, restore the default user agent in the Tools menu. Otherwise, open about:config, find all general.useragent preferences with a user set status, then context-click (right-click) on those preferences and select "Reset" to restore the default values. [18]

No audio when Flash video originates from an external site

A Flash video originating from an external website may be embedded on a web page, such as a blog that embeds a video from YouTube. If the audio fails to play, open the Flash Player Settings Manager and select the Global Storage Settings Panel. An Adobe Flash Player Settings Manager applet will load as a Flash object. Check the box, “Allow third-party Flash content to store data on your computer” then try the video again. [19]

Flash videos stop after 2-3 seconds

YouTube or other Flash videos may initially load but stop playing after 2 or 3 seconds. This is a bug in the Flash plugin which should be fixed in Flash 10. [20] As a workaround, restart the browser or look through bug 436686 for other solutions, such as using the Flashblock extension to select those videos you wish to play while blocking out other Flash content [21] or, in Firefox 3 and SeaMonkey 2, by disabling and re-enabling the Flash plugin in the Add-ons manager and then reloading the webpage with the Flash content. [22] Read the forum topics here and here and this Firefox Support article for more information.

Flash audio not working - Windows

First check your Windows Volume Control to make sure the sound isn't muted or turned down. On Windows Vista, open a web page in your Mozilla application that should have sound, then click the volume icon in the Windows task bar, click on "Mixer" and check the Volume Mixer per-application settings. [23]

Flash audio can also fail in Internet Explorer as well as Firefox and other Mozilla browsers if your Windows audio driver is outdated, if the default device for sound playback does not match the installed audio card, or if the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32 is missing an entry for "WaveMapper" (value data "msacm32.drv"). [24] For more information, see Flash Player audio failure on Windows (Adobe TechNote)

Flash audio may also fail or may only play while you are rolling over the play buttons, if you have too many Flash audio players loaded (the limit seems to be around 15). Note that this is a bug in the Flash plugin for Firefox and other Mozilla browsers that should be fixed in Flash 10; it does not affect Internet Explorer, which uses the Flash ActiveX control. If updating to Flash 10 does not resolve the issue, try the same workarounds given above (restart the browser; disable and re-enable the Flash plugin; use the Flashblock extension to selectively load Flash content). [25] [26]

Excessive CPU use with G-Mail

When used with G-Mail, Flash can cause Firefox to repaint the screen constantly, resulting in near 100% CPU use. This problem is fixed in trunk builds of Firefox, and will be fixed in Firefox 3. [27] [28]

QuickTime plugin takes over Flash

If you see a QuickTime symbol with a question mark where the Flash content should be, it means that QuickTime has taken over Flash content; in particular, the application/x-shockwave-flash MIME type for Flash media (.swf extension). Note: For security reasons, the Flash media handler is disabled starting in QuickTime 7.3.1 so this should not be an issue in current QuickTime versions. [29] (To see which plugins are being detected and the MIME types handled, enter about:plugins in your Mozilla browser Location Bar.) To fix this:

  • On Windows, open QuickTime Preferences (accessible from the Windows Control Panel), go to the Browser tab and select the "MIME settings" button. Uncheck "Flash media" or "Flash file" (if found) under "Miscellaneous". Click OK, then restart your browser.
  • On Mac OS, go to the QuickTime System Preferences and deselect the Flash MIME types (under the Advanced tab in recent OS X versions [30]).

If the problem persists, remove the file "pluginreg.dat" from the "Firefox" or "Mozilla" folder in the profile folder location. Important: On Windows, also open the Mozilla Suite/SeaMonkey or Firefox <installation directory>\plugins folder (e.g., C:\Program Files\Mozilla Firefox\plugins) and remove all "npqtplugin.*.dll" files found. Your browser will then detect the QuickTime plugins based on the MIME types selected in your QuickTime Preferences. [31]

Extension issues

Problematic extensions can interfere with Flash content, such as those listed below (this list is not complete). You can selectively disable your extensions to see if one of them is causing the issue (Firefox Safe Mode will disable all extensions). You can also test the problem site using a newly-created profile.

Adblock conflict

Flash content may not display if the Adblock extension is installed and OBJ-TABS are enabled. Disable OBJ-TABS in Adblock's options or try updating to the latest version of Adblock, or uninstall Adblock and install Adblock Plus. [32].

Amazing Media Browser

Flash content will not display if the Amazing Media Browser extension is installed, if the "Block all embedded objects" preference is set to "Yes". Change the preference setting to "No" to allow embedded media such as Flash to display.

Flashblock conflict

If you're using Flash Player 8 and the Flashblock extension, you need Flashblock 1.3.3 or higher. [33].

If you've removed Flashblock you need to take the following code out of userChrome.css or userContent.css:

object[classid$=":D27CDB6E-AE6D-11cf-96B8-444553540000"],
object[codebase*="swflash.cab"]
{ -moz-binding: url("chrome://flashblock/content/flash.xml#obj"); }

NoScript

The NoScript extension can block Flash content on untrusted sites, even content from trusted sites (e.g. YouTube.com) if embedded on an untrusted site. [34] You can temporarily allow JavaScript globally, which will also permit Flash and other blocked content [35].

OneClick YouTube Downloader

The OneClick YouTube Downloader extension can prevent YouTube videos from playing. [36]

User Agent Switcher

The User Agent Switcher extension allows you to spoof your user agent so that websites may think that you are using a different browser or operating system. This can can cause problems on websites that depend on that information to activate the Flash plugin. [37] Select the "Default" entry in the User Agent Switcher list to restore your correct user agent.

ActiveX plugin conflict

The Mozilla ActiveX plugin can conflict with the Flash plugin and cause errors when visiting sites with Flash content, including:

  • "Illegal Operation In Plug-In" referring to "Shockwave Flash" [38]
  • "This application has failed to start because xpcom_core.dll was not found. Re-installing the application may fix this problem." [39]

In Firefox 3 (or SeaMonkey 2), you can disable the ActiveX plugin via "Tools -> Add-ons (or Add-on Manager) -> Plugins"; otherwise, exit the browser and look for the file "npmozax.dll" in the installation directory plugins folder. If found, rename the file "Xnpmozax.dll" to disable the ActiveX plugin. If Flash content plays correctly afterwards, remove the ActiveX plugin.

Delay or hang waking from standby

You may experience excessive delay waking the computer from hibernation or standby mode, such that the browser may appear to "hang". High CPU usage may also be observed. This issue has been reported with Flash 8. On Windows, updating to Flash Player 9 should resolve the issue. [40] This page will tell you what Flash version is installed. As a workaround, close the browser before placing the computer in standby/hibernation. Note: Flash is not the only cause of problems after waking from hibernate or standby.

Memory Use

The Flashblock extension will help reduce memory usage by giving you control over the loading of flash images. Also, version 8.0.24.0 of Flash plugin can continually consume memory while you are on a web page that includes Flash content. [41] Workarounds are to remove the Flash plugin, block Flash content, or manually navigate away from pages with Flash. This problem is supposedly fixed in the latest Flash Player 9.

Crashes

Many crashes are caused by older versions of Flash, or even by recent versions. [42] If the crash still occurs with the latest version, follow Adobe's troubleshooting advice. If this advice does not help, please report a bug to Adobe.

The Adobe's implementation of the browser plugin is notorious for crashing Firefox. Fortunately there are alternatives, notably gnash (GPL license) and swfdec (LGPL license).

Flash files do not play

  • Some users find that direct links to Flash files (.SWF) will not open automatically in the browser, but instead cause the file Opening dialog box to appear, asking whether to save the file or to open it in a suitable application. This can happen when the server does not send the Flash file with the correct MIME type. In other cases, the Flash installation may be faulty, which can be fixed by uninstalling and reinstalling Flash. [43] In Firefox 3 or SeaMonkey 2, the issue can also occur if the (Helper) Applications entry for Flash content is set to "Always ask" instead of "Use Shockwave Flash". See Opening files using plugins for more information.
  • Flash files that were created with SwishMAX will not play with Flash Player 9. [44] For a user the only workaround is to install Flash Player 8. A zipped archive of Flash Player 8 installers is available here. For web masters a patch for SwishMax is available here.

Illegal Operation in Plugin error

An Illegal Operation in Plugin error referring to "Shockwave Flash" can result from an ActiveX plugin conflict (see above) or for other reasons, including malware, as described in bug 328474 and this forum topic. [45]

Not detected due to disabled plugin scan for PLIDs - Windows

Plugin scanning explains how to prevent your Mozilla browser from detecting plugins installed in directories specified in the Windows registry for PLIDs by setting the plugin.scan.plid.all preference to false. The problem with disabling the PLID plugin scan is that it disables all plugins that are detected this way, including Flash. A workaround is to copy NPSWF32.dll and flashplayer.xpt from C:\WINDOWS\SYSTEM32\Macromed\Flash to the installation directory plugins folder. [46] .

An alternative solution is to re-enable plugin scanning for PLIDs and disable the unwanted plugins using the Add-on Manager instead. See here for more information.

External links