Re: Text track in QTMovie

2008-12-20 Thread Joe Turner
Okay, I took your suggestions. It seems that my array of characters is the issue. My ByteCount s and other variables have seemingly correct values, but the array of chars' value does not change from before it gets written to. So, I tried a few more ways and no luck. I tried using a UInt8

Re: Text track in QTMovie

2008-12-16 Thread Joe Turner
Sorry for taking so long. Okay, what I am looking for is the contents of the text track. Like, for a movie, it would be the chapter names and times. The issue is that I am making this for someone who is using AppleScript, and is just using a call method on my method to do this. So, the

Re: Text track in QTMovie

2008-12-16 Thread douglas welton
Hi Joe, My suggestions: 1) write a small application that test your routine before you give it someone else to use. given the code you already have doing this should take all of 5 minutes. Once you do this, you can use the debugger and find your boo-boos. I suspect they will be quite

Text track in QTMovie

2008-12-14 Thread Joe Turner
I have a QTMovie (that is valid), and it has a text track. I am wondering if there is any easy way to get the contents of the text track into an NSString. Thanks, Joe ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Text track in QTMovie

2008-12-14 Thread douglas welton
Hi Joe, Since you didn't define easy or tell me what you'd tried, then I'll have to make some assumptions about what you know. I will assume that you have read the documentation on QT media samples. The basic steps: Get the text track. Get the track media. loop thru the

Re: Text track in QTMovie

2008-12-14 Thread Joe Turner
Yeah, I should have defined easy! This helps a lot :) Thanks! Joe On Dec 14, 2008, at 7:03 PM, douglas welton wrote: Hi Joe, Since you didn't define easy or tell me what you'd tried, then I'll have to make some assumptions about what you know. I will assume that you have read the

Re: Text track in QTMovie

2008-12-14 Thread Joe Turner
Okay, so I did what you said, but yet, it still won't show me the track names. Here is my code: Media media = [movieView movie] tracksOfMediaType:QTMediaTypeText] objectAtIndex:0] media] quickTimeMedia]; TimeValue64 timeValue = 0; TimeValue64 duration = 0;

Re: Text track in QTMovie

2008-12-14 Thread douglas welton
when you say it won't show you the track names do you mean: a) your NSLog() function is failing and nothing is printed b) NSLog() prints something, but the value of string appears to be either nil or empty (which one?) c) you really want the name of the track (i.e., the thing displayed in