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.
Andre's comments may well be on the right track, on the other hand. If
you finally do not end up working around the issue though, it may well
be a bug and should file a bug report accordingly. I would test the same
behavior with a non-authorized audio MP4 file, a MP4 track encapsulated
in a mov, etc.
Best,
Dani
Subject:
Re: Playing protected m4p files and dealing with authorization popup
windows
From:
Andre-John Mas <email@hidden>
Date:
Thu, 7 Dec 2006 11:32:16 -0500
To:
Sean van der Toorn <email@hidden>
CC:
email@hidden
On 6-Dec-06, at 07:58 , Sean van der Toorn wrote:
Hi,
I am writing an m4a/m4p player using the QTJ classes. When I call
movie.start() on a protected (m4p) file that is not authorized on my
computer, the authorization popup window appears and gives 2 options:
1. Cancel
2. Open Itunes and enter authorization information.
If I do the the latter, and enter the correct authorization
information, the file will begin to play. If I select Cancel the file
does not play. The problem I have is that according to QTJ the file is
playing - the movie time continues to increment. Thus, it seems that
there is no way for me to check that the song is not actually playing.
I've tried using Extremes, Rate and Time callbacks, all of which
indicate that the file is playing.
I'd appreciate any ideas or comments on how I could determine that the
unauthorized m4p file is not being played.
Although I am not familiar with this aspect of the API, I am guessing
that you may need
to look at the problem differently. Basically think of the movie as
playing, but not
being decoded with the right codec. For this reason what you should do
is add a test
to find out:
- whether the movie required authorization
- whether the movie was given authorization
Andre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden