try {
QTSessionCheck.check();
BasicQTURLController f = new BasicQTURLController ();
String url =
javax.swing.JOptionPane.showInputDialog (f,
"Enter URL");
DataRef dr = new DataRef (url);
Movie m = Movie.fromDataRef (dr,
StdQTConstants.newMovieActive);
MovieController mc = new MovieController (m);
f.qc.setMovieController (mc);
f.setVisible(true);
f.pack();
m.prePreroll(0, 1.0f);
m.preroll(0, 1.0f);
m.start();
} catch (Exception e) {
e.printStackTrace();
}