Recupera il video e costruisce la grafica del player

public Player player = null;
private VideoControl vc = null;
private VolumeControl volCont = null;
private static final String FILE_URL = "http://127.0.0.1/video.mpg";
private static final int VOLUME_START = 50;
private String playerState = STOP_LABEL;


private static final String STOP_LABEL = "STOP";
private static final String PLAY_LABEL = "PLAY";
private static final String PAUSE_LABEL = "PAUSE";

//......

private void buildPlayer() throws IOException, MediaException
{
    player = Manager.createPlayer(FILE_URL);
    player.realize();
    if ((vc = (VideoControl) player.getControl("VideoControl")) != null)
    {
        vc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
        vc.setDisplayLocation((getWidth() - vc.getSourceWidth())/2, (getHeight() - vc.getSourceHeight())/2);
        vc.setVisible(true);
    }
    if ((volCont = (VolumeControl) player.getControl("VolumeControl")) != null)
    {
        volCont.setLevel(VOLUME_START);
    }
}