Does QTMovie handle URL redirects?
I was just wondering if the QTMovie class does handle URL redirects, because I'm streaming audio files with it and the stream URLs can contain redirects. Sometimes the movie won't start playing but doesn't throw an error (i always operate on the main thread, i know this class is not开发者_StackOverflow社区 thread safe).
Any ideas why QTMovie might not start playing?
Regards, Erik
Update:
QTMovie returns following -userInfo
dict on error. Does the 403 refer to HTTP 403?
{
QTMovieStatusCodeNotificationParameter = 403,
QTMovieStatusFlagsNotificationParameter = 26411036
}
Sometimes the movie won't start playing but doesn't throw an error ….
Do you mean throw an exception, or return an error? I wouldn't expect it to throw an exception, but you should check whether the method failed and, if it did, inspect the error object.
Any ideas why QTMovie might not start playing?
Try observing for QTMovieStatusStringPostedNotification
on the local notification center.
精彩评论