|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PortControl
interface represents a control to
access the input or output ports of a device. A device in
this case could be an capture device (CaptureDevice
)
or a renderer (Renderer
).
Methods are provided to find out what
ports the device includes, to find out which ports are currently
turned on, and to turn a port on or off.
Field Summary | |
static int |
COMPACT_DISC
Specifies a compact disc port. |
static int |
COMPOSITE_VIDEO
Specifies a composite video port. |
static int |
COMPOSITE_VIDEO_2
Specifies a second composite video port. |
static int |
HEADPHONE
Specifies a headphone port. |
static int |
LINE_IN
Specifies a line in port. |
static int |
LINE_OUT
Specifies a line out port. |
static int |
MICROPHONE
Specifies a microphone port. |
static int |
SPEAKER
Specifies a speaker port. |
static int |
SVIDEO
Specifies a S-Video port. |
static int |
TV_TUNER
Specifies a TV-Tuner input port. |
Method Summary | |
int |
getPorts()
Obtains the set of ports currently enabled. |
int |
getSupportedPorts()
Obtains the set of ports supported by the device that is controlled by this PortControl object. |
int |
setPorts(int ports)
Set the enabled ports. |
Methods inherited from interface javax.media.Control |
getControlComponent |
Field Detail |
public static final int MICROPHONE
public static final int LINE_IN
public static final int SPEAKER
public static final int HEADPHONE
public static final int LINE_OUT
public static final int COMPACT_DISC
public static final int SVIDEO
public static final int COMPOSITE_VIDEO
public static final int TV_TUNER
public static final int COMPOSITE_VIDEO_2
Method Detail |
public int setPorts(int ports)
For example, to enable microphone and line in,
use setPorts(MICROPHONE | LINE_IN)
.
ports
- the logical "OR" of the bit mask value of the ports.public int getPorts()
public int getSupportedPorts()
PortControl
object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |