It's not my project. I'm simply testing your sample project titled "QTKit 
Create Movie.rbp." After some more playing around with it I find that it works 
the first time; that is, it creates a file named "test.mov" on the desktop and 
plays it with QT player. However, if the file already exists it will no longer 
play and there is no error. I changed one of the draw parameters to make sure 
that the movie file was indeed being recreated and find that it is, it just 
will not play if the file already existed. While the app is running I can 
navigate to my desktop and play the movie manually. Your demo code is below 
with my notes.
----------------
  // where to write?
  dim outputfile as FolderItem = SpecialFolder.Desktop.Child("test.mov")
  
  // create movie file
  dim e as NSErrorMBS
  dim q as QTKitMovieMBS = QTKitMovieMBS.CreateMovieWithFile(outputfile, e)
  
  // create duration for the picture
  dim duration as QTKitTimeMBS = new QTKitTimeMBS(20, 600)
  
  // create a picture
  dim p as new Picture(500,500,32)
  dim g as Graphics = p.Graphics
  
  // prepare
  g.ForeColor = &cFFFFFF
  g.FillRect 0,0,500,500
  g.PenWidth = 10
  g.PenHeight = 10
  
  // let's add 501 frames
  for i as integer = 0 to 500
    
    // draw something. e.g. a line
    g.ForeColor = &cFF0000
    g.drawline 0, 0, i,i
// After successfully running once I changed the 2nd drawline parameter to i to 
make sure that
// the movie file was in fact being overwritten with a new one which it was. It 
simply will not play
// unless the original file is deleted.
    
    // add the image
    dim image as new NSImageMBS(p)
    q.addImage image, duration, "tiff", QTKitModuleMBS.codecHighQuality
    
  next
  
  // save file
  if q.updateMovieFile then
    q = nil
    outputfile.Launch // This works only if the file did not exist in the first 
place
    
  else
    MsgBox "Failed"
  end if
-------------

It's certainly nothing tragic but, I'm just trying understand why this happens.

Best Regards,
Ola Olsson
 
On Jun 14, 2012, at 12:43 AM, Christian Schmitz wrote:

> 
> Am 14.06.2012 um 05:23 schrieb [email protected]:
> 
>> I'm changing from deprecated movie classes and methods to QTKit. The QTKit 
>> Create Movie sample works to the point that it creates the movie file but 
>> the .launch method doesn't work. That is, the movie is playable stand-alone 
>> but not from within the application. After calling the "outputfile.launch" 
>> method all that I get is a blank window of the correct size with no movie 
>> playing.
> 
> 
> How can I see this?
> Can you send project off list to show?
> 
> Greetings
> Christian
> 
> -- 
> Real Studio Conferences, Training and Meetings.
> 
> More details and registration here:
> http://www.monkeybreadsoftware.de/realbasic/events/
> 
> 
> 
> 
> 
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> [email protected]
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to