I have found out my issue on the device not working and simulator working.
When i comment out this part, it works:
[OpenFeint initializeWithProductKey:#"MYKEY" andSecret:#"MYSECRET" andDisplayName:#"LatinToGo" andSettings:settings andDelegates:[OFDelegatesContainer containerWithOpenFeintDelegate:self]];
So it looks like this:
//[OpenFeint initializeWithProductKey:#"MYKEY" andSecret:#"MYSECRET" andDisplayName:#"LatinToGo" andSettings:settings andDelegates:[OFDelegatesContainer containerWithOpenFeintDelegate:self]];
it works perfectly when I comment out that part above, but when I click the open feint button, I get this error:
EXC_BAD_ACCESS.
I replace My key with my app Key in open feint and my secret with my app's secret code.
When I click the open feint button, it goes to a file and highlights this part in GREEN:
[inv invoke]; EXC_BAD_ACCESS
Then in my console when i Step into:
2012-04-28 08:53:12.076 BalloonsPop[500:707] Application windows are expected to have a root view controller at the end of application launch
Single stepping until exit from function +[OpenFeint(Private) launchDashboardWithDelegate:tabControllerName:andControllers:],
which has no line number information.
warning: Remote failure reply: E37
Any Suggestions to try?
Thanks A lot!
I am not sure if you do, but I would declare it like this:
OpenFeint *openfeint = [OpenFeint initializeWithProductKey:#"MYKEY"
andSecret:#"MYSECRET" andDisplayName:#"LatinToGo" andSettings:settings
andDelegates:[OFDelegatesContainer containerWithOpenFeintDelegate:self]];
I hope this helps.
Related
I'm doing something fairly simple with videojs. I simply want to set the time to an arbitrary point on the timeline by clicking on an externally build UI (not the default seek stuff, but a set of divs that are acting like a progress bar.)
All the documentation and every post seems to indicate that setting currentTime as in object.currentTime(time) works. But in my case it doesn't. Not in the console, not anywhere.
Here's my code:
function clearSetTimeBug(videoObj,timeToSetTo){
console.log('timeToSetTo:'+timeToSetTo);
console.log("-1."+videoObj.id()+" readyState(): "+videoObj.readyState());//returns 4 (loaded)
console.log("0."+videoObj.id()+" bufferedEnd(): "+videoObj.bufferedEnd());//returns about 2 seconds ahead of where the playhead is)
if(videoObj.bufferedEnd()>timeToSetTo){
console.log("1."+videoObj.id()+" currentTime(): "+videoObj.currentTime()); // returns a valid videojs object id and then shows the currentTime to be where the video's current timecode as a float.
videoObj.currentTime(timeToSetTo);//this should totally work!
console.log("2."+videoObj.id()+" currentTime(): "+videoObj.currentTime());// shows that the current time is 0!
}else{
//I added this to just go to as far as it's buffered, but this doesn't work either
console.log("3."+videoObj.id()+" currentTime(): "+videoObj.currentTime());
console.log("4. newTime: "+videoObj.bufferedEnd());
videoObj.currentTime(videoObj.bufferedEnd());
pageTime=videoObj.bufferedEnd();
console.log("5."+videoObj.id()+": "+videoObj.currentTime());// still shows that the current time is 0!
console.log("6. pageTime:"+pageTime);
}
}
The player is spun up like this:
function setUpPlayers(playerId,playlist,local_file,index){
let myAspectRatio=heightRatio+":1"
let videoTag="";
videoTag +="<video id='playerInstance"+index+"' class='video-js vjs-fluid' width='100%' height='100%'>\n";
videoTag +="\t<source src='"+playlist+"' type='video/mp4'>\n";
videoTag +="</video>\n"
$('#player'+index).html(videoTag);
window["vjPlayer"+index]=videojs("playerInstance"+index, {"autoplay": false, "preload": "auto" });
}
Play() and pause() and even currentTime() to get the current time works. But trying to set it just forces the player to go back to 0.
I'm working in a Mac in Chrome Version 86.0.4240.80 and Firefox Developer's Edition 71.0b1 (64-bit). These are all local files and I'm running it from http://localhost:8000/index.php.
In the video.js github channel, I figured out the answer to this question. I hadn't checked it on my server, so running the page locally screwed up the ability to click around and set currentTime. Quite strange, actually. I'm still not sure why it happens. You can see the comment here: https://github.com/videojs/video.js/issues/6900
Not the smartest move on my part, but hopefully this might help someone else in the future.
I am trying to do the following in Safari: I have a website opened (let's say http://www.example.org) and I'm trying to get the current tab by using applescript.
I tried the following:
delay 1
tell application "Safari"
set mytitle to name of current tab in window 1
end tell
display alert mytitle
However I get the following error message
Safari got an error: AppleEvent handler failed.
I tried with all sorts of variations, URL of current tab in window 1, name of current tab, with and without window 1...
But the error persists.
After a bit of consoling it came up with this error:
Console returns this: Error while returning the result of a script command: the result object... lol - Buscar con Google ...could not be converted to an Apple event descriptor of type 'text'. This instance of the class '__NSCFString' returned nil when sent -objectSpecifier (is it not overridden?) and there is no coercible type declared for the scripting class 'text'.
What am I doing wrong?
I'd appreciate any ideas.
Thanks.
Try:
tell application "Safari"
set mytitle to name of current tab in window 1
end tell
return mytitle
The first script I posted did indeed work... There was a systemwide error and clean install fixed it. Not sure what was going on. Thanks everyone.
I need to refresh html in wxHtmlWindow sometimes. But when I set html for the second time - my apllication crashed without any error.
code is here
What is this and how to avoid crashing?
EDIT: After some experimenting i found that code work well
void MessagesViewer::ShowMessages()
{
wxString html2 = "TEST";
m_pHtml->SetPage(thml2);
//this->Show(true);
}
But when i uncomment line with Show - app starts crashing on 2d time I call this function.
Your stack trace shows that m_pHtml pointer is invalid. It's impossible to say why exactly does it happen from the code you show here.
I'm tring to put facebook Like Box to my blog but after I put Javascript SDK (right after opening body it show me error
**
The reference to entity "appId" must end with the ';' delimiter.
**
and I cant fix it ... :(
What I need to do/edit ???
I had the same problem: fbml=1 appId where I just deleted & and put the closing script right after Load the SDK line. I checked it with the debugger and now there are no errors.
I'm not asking for other permissions, just the "like my page."
{edit. had to change to closing script as the brackets and script didn't show.
Yes, Change the &appId to &appId ant it will work.
I am trying to automate a web app which involves selecting an existing file using a fileuploaddialoghandler() method and entering the full path in the file name dropdown then Open click.
However, when I attempt this using this code
FileUploadDialogHandler fileupload = new FileUploadDialogHandler(#"C:\TIFFiles\Testtif.TIF");
//browser.WaitForComplete();
using (new UseDialogOnce(browser.DialogWatcher, fileupload))
{
newIee.Button(Find.ById("ctl00_WebPartManager1_FileUpload_FileBrowse")).ClickNoWait();
browser.AddDialogHandler(fileupload);
browser.WaitForComplete();
browser.RemoveDialogHandler(fileupload);
}
It does not work.
What else should I be doing?
Thanks much!
W
I just have one question about your code... What is newIee? I can't tell by looking at the code if newIee is attached to browser. Other than that, your FileUpdateDialogHandler should be fine.
If you can provide the code where you declare newIee, it might add me in determining if it's a factor causing your code not to work properly.