FileDocCategorySizeDatePackage
TrivialAudioPlayer.javaAPI DocExample1849Wed Nov 10 12:37:10 GMT 2004com.oreilly.qtjnotebook.ch01

TrivialAudioPlayer

public class TrivialAudioPlayer extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        if (args.length != 1) {
            System.out.println (
                "Usage: TrivialAudioPlayer <file>");
            return;
        }
        try {
            QTSessionCheck.check();
            QTFile f = new QTFile (new File(args[0]));
            OpenMovieFile omf = OpenMovieFile.asRead(f);
            Movie movie = Movie.fromFile (omf);
            TaskAllMovies.addMovieAndStart();
            movie.start();
        } catch (QTException e) {
            e.printStackTrace();
        }