try {
QTSessionCheck.check();
QTFile file =
QTFile.standardGetFilePreview (QTFile.kStandardQTFileTypes);
OpenMovieFile omFile = OpenMovieFile.asRead (file);
Movie m = Movie.fromFile (omFile);
Frame f = new BasicQTPlayer (m);
f.pack();
f.setVisible(true);
m.start();
} catch (Exception e) {
e.printStackTrace();
}