package hello;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.*;
import javax.microedition.media.control.*;
import javax.microedition.media.protocol.*;
import javax.microedition.m3g.*;
import javax.microedition.io.*;
import java.io.*;
import java.util.*;
import javax.microedition.rms.*;
/**
*
* @author Toygar Dundaralp
*/
public class HelloMidlet extends MIDlet {
public HelloMidlet() {
}
public void startApp() {
videoCont();
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
public void videoCont(){
Player p;
VideoControl vc;
try {
p = Manager.createPlayer("capture://video");
p.realize();
vc = (VideoControl)p.getControl("VideoControl");
if (vc != null) {
Form form = new Form("video");
form.append((Item)vc.initDisplayMode(vc.USE_GUI_PRIMITIVE, null));
Display.getDisplay(this).setCurrent(form);
}
p.start();
} catch (IOException ioe) {
} catch (MediaException me) { }
}
}
-----------------------------------------------------------------------------
Not : Program j2me kullanılarak yazıldıgından programı herhangi micro edition compiler ile derlemeniz gerekiyor.ide nin oluşturdugu jar dosyasını telefonunuza yükleyin.Kolay gelsin..
toygar dündaralp
tdundaralp@gmail.com