-
amishaLikes 0Problem Description
1st time screenshot get ready but when i tap 2nd or multipal time on sharing button then half screen show blak not full screenshot visible….how can i solve this issue.
error in logcat:
ImageIO: CGImageReadGetBytesAtOffset : *** ERROR *** CGImageSource was created with data size: 4425741 - current size is only: 4417265
2015-08-21 16:11:41.150 DressMeUp-mobile[1677:221559] plugin com.apple.share.Facebook.post invalidated
-
Sonar Systems adminLikes 0
Could you show us a screenshot of this problem.
This reply has been verified.
-
amishaLikes 0
-
amishaLikes 0
i show the help but image can not bowse and url is not consider.
Inshort,Image is not show as full screenshot but above half part get ready and below half part is black.
-
Sonar Systems adminLikes 0
I dont understand.
This reply has been verified.
-
amishaLikes 0
-
Sonar Systems adminLikes 0
I can’t see the screenshot.
-
amishaLikes 0
-
Sonar Systems adminLikes 0
Can you upload it to another image hosting site and share a link please.
-
amishaLikes 0
https://youtu.be/0K4OOlQCNJ4
-
Sonar Systems adminLikes 0
Can you show us the code where you are taking a screenshot and sharing to facebook.
-
amishaLikes 0
void HelloWorld::Share_btn_screen(Ref *sender)
{
utils::captureScreen( CC_CALLBACK_2(HelloWorld::afterCaptured, this), "screnshot.png" );
}
void HelloWorld::afterCaptured(bool succeed, const std::string& outputFile)
{
if (succeed) {
cocos2d::__String *str =String::create(outputFile);
SonarCocosHelper::Facebook::Share("","","My favorite game post","", str->getCString());
}
else
{
log("Capture screen failed.");
}
}
-
Sonar Systems adminLikes 0
try using the Facebook share after a delay of about 2 seconds.
This reply has been verified.
-
amishaLikes 0
i try that but still same problem
-
Sonar Systems adminLikes 0
Does it work without an image?
-
amishaLikes 0
yes
-
Sonar Systems adminLikes 0
Does it work with a local image?
-
amishaLikes 0
yes sir
-
Sonar Systems adminLikes 0
Try displaying the screenshot in a sprite and see if that works.
This reply has been verified.
-
alvinay00Likes 0
Was there ever a solution to this?
-
alvinay00Likes 0
I solved it by changing screenshot to save as jpg instead of png
-
Sonar Systems adminLikes 0
Fantastic to hear. If you have any more questions feel free to post them.
Login to reply