I run the program below, and this is the output:
QT v7.0
QTJ v6.1
url: http://www.google.com/intl/en/images/logo.gif
qtFile url: http:/www.google.com/intl/en/images/logo.gif
Note the difference between the two urls: one has http://, and the
other has only http:/
Is this a bug with qtFile.toString() ??
Thanks.
-John
// ============== code ===================
import quicktime.*;
import quicktime.io.*;
import quicktime.util.*;
import java.net.*;
public class QTFileExample {
public QTFileExample () {
try {
QTSession.open();
System.out.println("QT v" + QTSession.getMajorVersion() +
"." + QTSession.getMinorVersion());
System.out.println("QTJ v" + QTBuild.getVersion() + "." +
QTBuild.getSubVersion());
URL url = new URL
("http://www.google.com/intl/en/images/logo.gif");
QTFile qtFile = new QTFile(url.toString());
System.out.println ("url: " + url.toString());
System.out.println ("qtFile url: " + qtFile.toString());
QTSession.close();
} catch (Exception e) {
System.err.println("exception: "+e.toString());
}
}
public static void main (String arg[]) {
new QTFileExample ();
}
}
// =======================================