Has anyone else seen or solved this error on the new ZoomIt v6.0?
Related
I've got the following code:
let reachUrl = "https://helpers.pythonanywhere.com/load-data/announcements?key=\(key)&data=[\"\(nameTF.text!)\", \"\(infoTF.text!)\", \"\(pickerView.selectedRow(inComponent: 0))\"]"
UIApplication.shared.open(URL(string: reachUrl.addingPercentEncoding(withAllowedCharacters: .alphanumerics)!)!)
The error I get is
Failed to open URL https%3A%2F%2Fhelpers%2Epythonanywhere%2Ecom%2Fload%2Ddata%2Fannouncements%3Fkey%3D3409298423076318kk%2B8i%26data%3D%5Bff%2C%2 ... C%201%5D: Error Domain=NSOSStatusErrorDomain Code=-50 "invalid input parameters" UserInfo={NSDebugDescription=invalid input parameters, _LSLine=234, _LSFunction=-[_LSDOpenClient openURL:options:completionHandler:]}
The error is only shown in console, nothing is done within the app itself.
I'm wondering what's the matter. Thanks for any help
I see what the problem is, can you please try the code below and let me know if it works.
let reachUrl = "https://helpers.pythonanywhere.com/load-data/announcements?key=\(key)&data=[\"\(nameTF.text!)\", \"\(infoTF.text!)\", \"\(pickerView.selectedRow(inComponent: 0))\"]"
UIApplication.shared.open(URL(string: reachUrl.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)!)!)
Thanks,
Happy Coding.
I am using Opentok code for my swift program.
I have two questions.
1) I use same session in my two UIViewcontrollers.
Once I open my connection with the session, should I close it before opening /connecting it in the second page?
2) sometime I am getting black screen insead of subscribers video. I use the static session created in the trial version.
Please advice.
var error: OTError? = nil
session.disconnect(error)
if error != nil {
print("disconnect failed with error: (\(error))")
}
session(session, streamDestroyed: stream)
I searched this error code, that means kAudioToolboxError_NoTrackDestination.
I want to know how to figure it out
The "audio" of background mode must be allowed, or MusicTrackDestinationCreate will return this error.
Can anyone provide anymore information on why I might get AVErrorFailedToParse when using MPMoviePlayerViewController.
AVError.h lists the error, but doesn't provide any other info.
AVErrorFailedToParse NS_AVAILABLE(10_10, 8_0) = -11853,
The error happens intermittently. So I'll try and play a mp4 and it will fail with this error, i'll try again immediately afterwards and it works.
I am using MPMoviePlayerController to play videos. I want to show an alert to user when the given video does not have a supported format. But I am not getting any error from SDK about it.
When I try to run any unsupported video , it leaves me with MPMovieFinishReasonPlaybackEnded and the following error in the console.
_itemFailedToPlayToEnd: {
kind = 1;
new = 2;
old = 0;
}
Does anyone know about how to handle it?
Have you tried examining the errorLog property of MPMoviePlayerController?
I got the solution for this.
[[[notification userInfo]valueForKey:#"error"] localizedDescription];
This works for me and gives "can not open" for the unsupported formats. Hope it helps others looking for similar problems.