jwxbond / panoramagl

Automatically exported from code.google.com/p/panoramagl
0 stars 0 forks source link

Black screen when open the image. #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run a movie (MPMoviePlayerController), and add a 
"MPMoviePlayerPlaybackDidFinishNotification".
2. In this "MPMoviePlayerPlaybackDidFinishNotification", add a method to open 
the image, using the code that is on the example. 
3. This screen will start black, if you touch on the screen, will appear the 
image and the navigation will work pretty good.

What is the expected output? What do you see instead?
The problem is the black screen.

Thanks

Original issue reported on code.google.com by jrSin...@gmail.com on 12 Aug 2010 at 12:20

GoogleCodeExporter commented 8 years ago
and when you add in your DidFinishNotification 
[view needsLayout];  ?

Original comment by sd8...@googlemail.com on 13 Aug 2010 at 9:25

GoogleCodeExporter commented 8 years ago
This is the code:
[[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(movieFinishedCallback:) 
name:MPMoviePlayerPlaybackDidFinishNotification object:player];

Original comment by jrSin...@gmail.com on 13 Aug 2010 at 12:28

GoogleCodeExporter commented 8 years ago
ah ok sry..

When you have called the Notificationevent try [view needsLayout]; It will 
repaint your view.
I had a similar situation, (not with Movieplayer) and it work´s for me

Original comment by sd8...@googlemail.com on 13 Aug 2010 at 2:26

GoogleCodeExporter commented 8 years ago
I understand, your solution, but when I tried I received the error:
[UIView needsLayout]: unrecognized selector sent to instance 0x5310200

Original comment by jrSin...@gmail.com on 13 Aug 2010 at 6:06

GoogleCodeExporter commented 8 years ago
I find, the correct way is: [view setNeedsLayout];

I have another problem, maybe you can help me, I need add some hotspot on the 
panorama image, do you have any idea, how can I do that?

Many thanks.

Original comment by jrSin...@gmail.com on 13 Aug 2010 at 6:32

GoogleCodeExporter commented 8 years ago
oh yes, sry that was my fault..

At this moment I have no idea. :( 

Original comment by sd8...@googlemail.com on 13 Aug 2010 at 10:02

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi I'm also desperately in need of implementing hotspots on the panorama image! 

Original comment by isaac...@gmail.com on 27 Aug 2010 at 8:57

GoogleCodeExporter commented 8 years ago
I also want to know how to implement hot spots,Is there any way to convert 
from view to image and image to view coordinates?

Original comment by pinggoo1...@gmail.com on 22 Dec 2011 at 3:40

GoogleCodeExporter commented 8 years ago
Hotspots are supported in 0.1 version, please check last version of PanoramaGL 
library : )

Original comment by javbae...@gmail.com on 5 Jul 2012 at 4:00