mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 13:04:05 -08:00
Improve handling of MultimediaManager to make it a bit easier to make a 'basic' build
git-svn-id: https://zxing.googlecode.com/svn/trunk@822 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
1c4f85ee24
commit
6a9910a9b2
|
@ -43,7 +43,7 @@ final class SnapshotThread implements Runnable {
|
|||
this.zXingMIDlet = zXingMIDlet;
|
||||
waitLock = new Object();
|
||||
done = false;
|
||||
multimediaManager = new DefaultMultimediaManager();
|
||||
multimediaManager = ZXingMIDlet.buildMultimediaManager();
|
||||
}
|
||||
|
||||
void continueRun() {
|
||||
|
|
|
@ -67,13 +67,17 @@ public final class ZXingMIDlet extends MIDlet {
|
|||
return videoControl;
|
||||
}
|
||||
|
||||
static MultimediaManager buildMultimediaManager() {
|
||||
return new AdvancedMultimediaManager();
|
||||
// Comment line above / uncomment below to make the basic version
|
||||
// return new DefaultMultimediaManager();
|
||||
}
|
||||
|
||||
protected void startApp() throws MIDletStateChangeException {
|
||||
try {
|
||||
player = createPlayer();
|
||||
player.realize();
|
||||
MultimediaManager multimediaManager = new AdvancedMultimediaManager();
|
||||
// Comment line above / uncomment below to make the basic version
|
||||
//MultimediaManager multimediaManager = new DefaultMultimediaManager();
|
||||
MultimediaManager multimediaManager = buildMultimediaManager();
|
||||
multimediaManager.setZoom(player);
|
||||
multimediaManager.setExposure(player);
|
||||
videoControl = (VideoControl) player.getControl("VideoControl");
|
||||
|
|
Loading…
Reference in a new issue