I recall Chris Adamson made some comments on the ability --or
rather, inability-- to play protected file using QT4J. Maybe you
can look them up at the macdevcenter site.
Authorized iTunes music has worked for me (just checked). TV shows
and shorts didn't when I tried a while back (and blogged it), but I
haven't tried again lately. I accidentally deleted my copy of a
Pixar short, but just bought some Blue's Clues for the kids and... nope.
[aeris:books/qtj developer's notebook/code] cadamson% ant run-ch02-
basicqtplayer
Buildfile: build.xml
run-ch02-basicqtplayer:
[java] quicktime.std.StdQTException[QTJava:
6.1.5g],-2126=notAllowedToSaveMovieErr,QT.vers:7138000
[java] at quicktime.std.StdQTException.checkError
(StdQTException.java:38)
[java] at quicktime.std.movies.Movie.fromFile(Movie.java:211)
[java] at quicktime.std.movies.Movie.fromFile(Movie.java:174)
[java] at com.oreilly.qtjnotebook.ch02.BasicQTPlayer.main
(BasicQTPlayer.java:52)
I've been meaning to look at quicktime.std.RestrictionSet and see if
that can at least give a heads-up that a given Movie won't import,
won't play, won't export, etc. Would be nice to fail gracefully, at
least. Has anyone else done anything with this class?