Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Playing protected m4p files and dealing with authorization popup windows




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

This email sent to email@hidden
References: 
 >Playing protected m4p files and dealing with authorization popup windows (From: "Sean van der Toorn" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.