I've made a mistake. I was accessing AVPlayer.status instead of AVPlayerItem.status. Now the status and error avaialable.
I'm getting following error:
Error Domain=AVFoundationErrorDomain Code=-11821 "Cannot Decode" UserInfo={NSLocalizedFailureReason=The media data could not be decoded. It may be damaged., NSLocalizedDescription=Cannot Decode, NSUnderlyingError=0x281dc83f0 {Error Domain=NSOSStatusErrorDomain Code=-12911 "(null)"}}
But still would be great to have a confirmation that this is because f the size/quality of video.
Post
Replies
Boosts
Views
Activity
Thank you for the explanation.
Thanks for the reply.
An application will receive nil if it fails to meet any of the above 4 requirements. But that's not true, in my case. The completion handler is not called.
I just happen randomly and I can't found the cause of this.
even when I use old function CNCopyCurrentNetworkInfo then this method is not finished (i did wait about 30 sec). This is callstack.
#0 0x00000001ba7fc2d0 in mach_msg_trap ()
#1 0x00000001ba7fb6d8 in mach_msg ()
#2 0x00000001077b4560 in _dispatch_mach_send_and_wait_for_reply ()
#3 0x00000001077b48fc in dispatch_mach_send_with_result_and_wait_for_reply ()
#4 0x00000001d82a0e68 in xpc_connection_send_message_with_reply_sync ()
#5 0x000000019e8a7984 in NEHelperCopyResponseAndCancel ()
#6 0x000000019e8a9f68 in NEHelperCopyCurrentNetworkInfo ()
#7 0x00000001c579ddf4 in __CNCopyCurrentNetworkInfo ()
#8 0x0000000104fa15c0 in @nonobjc CNCopyCurrentNetworkInfo(_:) ()