FileDocCategorySizeDatePackage
Handler.javaAPI DocJMF 2.1.1e2401Mon May 12 12:21:26 BST 2003com.sun.media.content.video.mpeg

Handler

public class Handler extends BasicPlayer
A MPEG player implementation using mpx.

Fields Summary
private static final int
ZoomedIn
private static final int
ZoomedOut
private boolean
reloaded
private int
type
protected com.sun.media.codec.video.jmpx.Jmpx
jmpx
boolean
streaming
private static int
sizeChangeWidth
Events from mpx are handled here.
Constructors Summary
public Handler()


      
	this(Jmpx.MpxStrm_Unknown);
    
public Handler(int type)

	this.type = type;
	jmpx = new Jmpx(type);
	manageController(jmpx);
    
Methods Summary
protected booleanaudioEnabled()

	if (jmpx.getStreamType() == Jmpx.MpxStrm_VSEQ)
	    return false;
	return true;
    
public voiddoClose()

	super.doClose();
	jmpx = null;
    
public voidgainChange(javax.media.GainChangeEvent gce)

	jmpx.setGain(gce.getLevel());
    
protected javax.media.TimeBasegetMasterTimeBase()

	return jmpx.getTimeBase();
    
public java.awt.ComponentgetVisualComponent()

	super.getVisualComponent();
	return jmpx.getVisualComponent();
    
public booleanisMuted()

	return jmpx.isMuted();
    
public voidmute(boolean m)

	if (jmpx.isInitialized())
	    jmpx.mute(m);
    
public voidmuteChange(boolean m)

	jmpx.setMute(m);
    
public voidprocessEvent(javax.media.ControllerEvent evt)


        
	super.processEvent(evt);
    
public voidsetAudioMode(int m)
Set the audio mode.

	if (jmpx.isInitialized())
	    jmpx.setAudioMode(m);
    
public voidsetAudioQuality(int q)
Set the audio quality.

	if (jmpx.isInitialized())
	    jmpx.setAudioQuality(q);
    
public voidsetSource(javax.media.protocol.DataSource source)


	super.setSource(source);
	jmpx.setSource(source);
    
public voidupdateStats()

    
protected booleanvideoEnabled()

	if (jmpx.getStreamType() == Jmpx.MpxStrm_ASEQ)
	    return false;
	return true;