javax.media.control
Interface MonitorControl


public interface MonitorControl
extends Control

Some capture devices or encoders may have a monitor to view/listen to the capture or encoding progress. The MonitorControl allows you to enable/disable monitoring and in the case of a video monitor, also control the preview rate. Setting a lower preview rate will result in lesser resource consumption.

Since:
JMF 2.0

Method Summary
 boolean setEnabled(boolean on)
          Enable or disable the monitor.
 float setPreviewFrameRate(float rate)
          Sets the frame rate at which the video is to be previewed.
 
Methods inherited from interface javax.media.Control
getControlComponent
 

Method Detail

setEnabled

public boolean setEnabled(boolean on)
Enable or disable the monitor.
Parameters:
on - true to enable monitoring.
Returns:
true if the monitor is enabled.

setPreviewFrameRate

public float setPreviewFrameRate(float rate)
Sets the frame rate at which the video is to be previewed. This does not affect the actual capture or encoding rate.
Parameters:
rate - the frame rate used for previewing.
Returns:
the actual rate that it was set to. Returns -1 if this is not a video monitor.


Submit a bug or feature
Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.