Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Compositor and Streaming in full screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compositor and Streaming in full screen



Sorry if this question is painfully basic...

i want to add to the compositor a streming movie and
some images, that in fullscreen, but i can't get the
both things at the same time...

=============
this is the code I use to play the movie....


try{
QDRect size = new QDRect(640, 480);
QDGraphics gato = new QDGraphics (size);
Compositor compositor = new Compositor
(gato, QDColor.gray, 20 ,1 );
FullScreenWindow ventana = new
FullScreenWindow (new FullScreen(), frame);
myQTContent = QTFactory.makeDrawable
("rtsp://192.168.0.39:80/cucha.mov";);
QTFile archivoImagen = new QTFile(
QTFactory.findAbsolutePath("fondo.jpg"));
GraphicsImporterDrawer dibujadorDelMapa =
new GraphicsImporterDrawer(archivoImagen) ;

ImagePresenter presentador =
ImagePresenter.fromGraphicsImporterDrawer
(dibujadorDelMapa);
presentador.setLocation(0, 0);
presentador.getOriginalSize();
compositor.addMember ( presentador, 2);

((QTPlayer)
myQTContent).setControllerVisible(false);
((QTPlayer)myQTContent).setRate(1);
((QTPlayer)myQTContent).getTimeBase
().setFlags( StdQTConstants.loopTimeBase );// we want
the movie to loop

}


// compositor.addMember (((QTPlayer)
myQTContent), 1); //in this line i want to add to the
compositor, but i can't show the movie

compositor.addMember (myQTContent, 1); //i
try to add using this way

elQTCanvas.setClient (compositor,
true);//if i use this line i can see the image, but not
the movie
// elQTCanvas.setClient (myQTContent,
true); //if i use this line i can see the movie, but no
the image
compositor.getTimer().setRate(1);

ventana.add (elQTCanvas);
ventana.show();
ventana.setBackground (Color.black);
}


elQTCanvas.setClient (getCompositor(),
true);


Any help gratefully received

Cheers

-----------------------------------------------
Marcelinux 2001
http://www.marcelino.org
http://www.northamsoft.com
icq number: 95157614




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.