On 9/27/10, Stephan Maximilian Huber <[email protected]> wrote:
> Hi Robert,
>
> Am 27.09.10 12:39, schrieb Robert Osfield:
>
>> Would could require 10.6 for the QtKit plugin but I'd much rather have
>> it work under 10.5 as well if possible.  Any chance that these methods
>> could be replaced by other methods?  Or for the QtKit version to be
>> back-ported to 10.5?
>
> I had some time, so I modified the source for 10.5. The modifications
> are minor and the plugin works for 10.5 now. I can't test the plugin for
> 10.6 unfortunately.

Notes from:
http://macguild.org/wwdc/wwdc-2009.pdf

"There are some other QTKit changes in Snow Leopard. It is now
possible to display one QuickTime movie object in multiple views or
layers. Due to changes with QuickTime X, the attributes
QTMovieCurrentSizeAttribute and QTMovieSizeDidChangeNotification have
been deprecated. Their replacements are called
QTMovieNaturalSizeAttribute (to get “authored” size) and
QTMovieNaturalSizeDidChangeNotification."

I believe his notes are correct. I think you want
QTMovieSizeDidChangeNotification and not QTMovieEditedNotification in
your fix.




>
> I noticed, that the imagestream has a width and height of 0 when
> initialized, after I started playing s() and t() hold the right values.
> Is this intended?

Yes, this was in the notes/comments:

 * The third problem is that OSG makes some really bad assumptions
about when the movie size (width,height)
 * becomes available. Particularly with live streams, movie sizes are
allowed to change inflight and
 * you may not get a valid movie size until after you initially start
playing the stream. OSG assumes
 * you have the correct movie size right on open and that it will never change.

Certain file formats and movie will initialize at 0 and lazily load
the width/height and you have to handle it. I sent Phil a modified
osgmovie example which polls for size changes. Ideally, there would be
a callback API for this in osgmovie, but there isn't.

-Eric
-- 
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to