I am using a remote link to play a VOD HLS video using AVPlayer. It's playing fine.
Once the video is playable I am using generateCGImagesAsynchronouslyForTimes to get the thumbnail for a specific time.
But it is responding with following error:-
Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could
not be completed" UserInfo={NSLocalizedFailureReason=An unknown error
occurred (-12436), NSLocalizedDescription=The operation could not be
completed, NSUnderlyingError=0x2805331e0 {Error
Domain=NSOSStatusErrorDomain Code=-12436 "(null)"}}
It would really help if anybody can help me with the error reason.
Related
Error Domain=AVFoundationErrorDomain Code=-11855 "Cannot Decode" UserInfo={NSUnderlyingError=0x157372050 {Error Domain=NSOSStatusErrorDomain Code=560226676 "(null)"}, NSLocalizedFailureReason=The media data could not be decoded on this device., NSLocalizedDescription=Cannot Decode}
Getting the above error when trying to start writing with an AVAssetWriter. This only occurs on iphone 5s, and only occurs sometimes. The most reproducible case is when we move from a VC with an AVPlayer that is playing media straight to the VC that handles the recording. The same VC with the recorder works correctly with the same settings when not navigating from the VC with the AVPlayer. What might cause this error and where can I look to fix this?
The asset writer code is part of the SCRecorder pod:
https://github.com/rFlex/SCRecorder
https://github.com/rFlex/SCRecorder/blob/master/Library/Sources/SCRecordSession.m
We solved this after finding that the audio sample rate was being changed, causing this error. We recheck the audio sample rate prior to recording and correct it if it has for some reason been changed.
I am trying to play a movie file of .mp4 format using AVPlayer. In my code, I am creating AVPlayer every time whenever a movie play is requested. Everything works fine except if due AVPlayer fails to play a movie once then in every next play request it fails until application is launched again.
I key value observing AVPlayerItem's status property for detecting AVPlayer failure.
Has anyone come across similar kind of problem?
Thanks in Advance.
I get this error from AVPlayerItem's error property:
Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo=0x17946d540 {NSUnderlyingError=0x178642dc0 "The operation couldn’t be completed. (OSStatus error -12983.)", NSLocalizedFailureReason=An unknown error occurred (-12983), NSLocalizedDescription=The operation could not be completed}
I'm working on an app that allows users to play videos from YouTube inside a UIWebView. The videos play fine on the device, but I'm having issues when attempting to AirPlay CERTAIN videos from my UIWebView. Basically, there are some videos that will consistently fail to AirPlay - and I get an error message on my AppleTV - "An error occurred loading this content. Try again later" ... The device logs reveal this error:
_itemFailedToPlayToEnd: {
AVPlayerItemFailedToPlayToEndTimeErrorKey = "Error Domain=AVFoundationErrorDomain Code=-11800 \"The operation could not be completed\" UserInfo=0x170a7a9c0 {NSUnderlyingError=0x17064b1c0 \"The operation couldn\U2019t be completed. (OSStatus error -12926.)\", NSLocalizedFailureReason=An unknown error occurred (-12926), NSLocalizedDescription=The operation could not be completed}";
The console logs on my device show this when attempting to make an AirPlay connection:
Connected to address: 10.1.5.30:5000
Connected to endpoint: "Apple TV" at 10.1.5.30:5000 (from 10.1.7.233:58375)
Audio pair-verify: 10.1.5.30:5000
### Pair-verify failed: -6743/0xFFFFE5A9 kSizeErr
### Audio pair-verify failed: -6743/0xFFFFE5A9 kSizeErr
Re-pair-setup with "Apple TV"
Audio pair-Setup: 10.1.5.30:5000
### Pair-setup failed: -6743/0xFFFFE5A9 kSizeErr
### Audio pair-setup failed: -6743/0xFFFFE5A9 kSizeErr
Disconnected from 10.1.5.30:5000
Here are some example YouTube videos that will NOT AirPlay from a UIWebView with iframe embed (my apologies for the content):
http://www.youtube.com/watch?v=KQ6zr6kCPj8
http://www.youtube.com/watch?v=CevxZvSJLk8
I'm looking for any help or ideas for a workaround. Thanks!
EDIT: I would like to also say that I can AirPlay these "problem" videos with success to third-party AirPlay implementations such as AirServer.
I have found this error:
Error - Error Domain=NSURLErrorDomain Code=-999
The operation couldn’t be completed. (NSURLErrorDomain error -999.)
During load youtube link on my UIWebView first time.
Any idea why this happens?
-999 error code means NSURLErrorCancelled.
This happens when the past request is cancelled.
If it works without any issues except that, no problem :)
See: Foundation Constants Reference
I have integrated Dropbox core api. I am able to upload data without any error but when i am downloading all contents present in my app folder its showing the following error :
DropboxSDK: error making request to
/1/files/sandbox/Mov_1373955204.txt - Error Domain=NSURLErrorDomain
Code=-1001 "The operation couldn’t be completed. (NSURLErrorDomain
error -1001.)" UserInfo=0x9c0ec30 {path=/Mov_1373955204.txt,
destinationPath=/Users/mac26/Library/Application Support/iPhone
Simulator/6.0/Applications/800506EB-02E2-40F6-8B2B-F8B296760795/Library/Caches/DropBox/Mov_1373955204.txt}
I have searched alot have also tried to change the request timeout from 20 to 200 but still same issue is coming.
Any help will be appreciated thanks.