Thats a good idea, but since PDF is the exception rather than the
rule, i'd like to have it in the quicktime codepath. That said, I
figured out hwo to do it, now I just have to figure out how to convert
the result of getCType() to something "readable" any ideas? :)
sugam
On 11/4/05, Rice, Gary <email@hidden> wrote:
>
>
>
> Couldn't you just open the file and look at the first few bytes? In a PDF file they will be "%PDF" (without the quotes).
>
>
>
>
>
> Gary
>
>
>
> ________________________________
>
> From: Sugam Jain [mailto:email@hidden]
> Sent: Friday, November 04, 2005 1:58 PM
> To: email@hidden; email@hidden
> Subject: Determining if a track is a PDF
>
>
>
> I'm trying to tell the difference in my code if a Media is a pdf or something else. Both PDFs and Video tracks happen to be handled by the "VideoMediaHandler" I cant think of a way to determine the difference. I think this can be done because in QTPlayer, a pdf will show "PDF" as the "format' in the properties window. Does anyone have any hints?
>
> sugam
> ________________________________
>
> This e-mail message has been scanned for Viruses and Content and cleared by PanAmSat
> ________________________________
>
> ATL
_______________________________________________
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