开发者

Does QTMovie handle URL redirects?

开发者 https://www.devze.com 2023-01-13 17:57 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号