On Aug 16, 2012, at 9:19 AM, Christian Schmitz <[email protected]> wrote:
> > On 16.08.2012, at 13:55, James Sentman <[email protected]> wrote: > >> and that appears to connect OK at least it asks me for the RTSP password to >> the stream and does not return an error. However the: >> >> MyMovie.currentFrameImage >> >> always returns nil. > > You did wait some time to load the video? I have a timer calling back every second trying to extract a frame, it would be OK for the first few to be nil if the movie hasn't queued up and is streaming yet, but it never changes to anything but nil. > >> I'm basically just pulling a frame out of the stream every second or so to >> look at and those are always nil. Is there a trick to getting it to actually >> render the image? I CAN see that the size changes correctly, if I output the >> naturalsizeheight and width I can see them start at 120x140 and then a few >> moments later jump to 640x480 which means it is really connecting to the >> stream, I just can't get an image out of it. > > > > I'm actually not sure whether this works. > > For me, the functions work with local video: > > dim f as FolderItem = SpecialFolder.Desktop.Child("test.m4v") > dim q as new QTKitMovieMBS(f) > > q.time = new QTKitTimeMBS(600, 600) // 1 second > > Backdrop = q.currentFrameImage.CopyPictureWithMask Thanks for all the help with this ;) I can verify that for a local file it works, I wonder what is different for a streaming movie loaded from a URL? I tried assigning the movie to a QTMovieViewMBS in a window and that works just fine, the movie loads and is displayed all the while calling currentFrameImage returns just nil. Going to take a short break from hammering on this for sanity sake ;) Perhaps read up on the underling quicktime documentation, though i've paged through this part of it before without having any ah ha moments. Thanks again! James James Sentman http://sentman.com http://MacHomeAutomation.com _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
