public interface Player
Modifier and Type | Field and Description |
---|---|
static int |
ACTIVEX
Indicates an ActiveX-control Flash player, e.g.
|
static int |
AIR
Indicates the Flash player inside AIR.
|
static int |
NETSCAPE_PLUGIN
Indicates a Netscape-plugin Flash player, e.g.
|
static int |
STANDALONE
Indicates a standalone Flash player, e.g.
|
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. |
int |
getType()
Returns what type of Player this is:
STANDALONE , NETSCAPE_PLUGIN ,
ACTIVEX , or AIR . |
static final int STANDALONE
getType()
,
Constant Field Valuesstatic final int NETSCAPE_PLUGIN
getType()
,
Constant Field Valuesstatic final int ACTIVEX
getType()
,
Constant Field Valuesstatic final int AIR
int getType()
STANDALONE
, NETSCAPE_PLUGIN
,
ACTIVEX
, or AIR
.File getPath()
null
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.
Browser getBrowser()
null
if this is the standalone player or AIR,
or if we're not sure which browser will be run.Copyright © 2016 The Apache Software Foundation. All rights reserved.