public abstract class AbstractPlayer extends Object implements Player
ACTIVEX, AIR, NETSCAPE_PLUGIN, STANDALONE| Constructor and Description |
|---|
AbstractPlayer(File webBrowser,
File flashPlayer) |
| Modifier and Type | Method and Description |
|---|---|
Browser |
getBrowser()
Returns the web browser with which this player is associated,
or
null if this is the standalone player or AIR,
or if we're not sure which browser will be run. |
File |
getPath()
Returns the path to the Flash player file -- e.g. the path to
FlashPlayer.exe, NPSWF32.dll, Flash.ocx, or adl.exe -- or
null if not known. |
public File getPath()
Playernull if not known. (Filenames are obviously
platform-specific.)
Note that the file is not guaranteed to exist. You can use File.exists() to test that.
public Browser getBrowser()
Playernull if this is the standalone player or AIR,
or if we're not sure which browser will be run.getBrowser in interface PlayerCopyright © 2016 The Apache Software Foundation. All rights reserved.