// use a file input stream to make dragging faster as the movie is comletetly loaded into memory // this is not required for any other reason private static QTPlayer makePlayer(QTFile f) throws IOException, QTException { QTDrawable d = QTFactory.makeDrawable(new FileInputStream(f), kDataRefFileExtensionTag, "mov"); Movie m = ((QTPlayer) d).getMovieController().getMovie(); m.getTimeBase().setFlags(loopTimeBase); return (QTPlayer) d; }