On 20-feb-06, at 19:06, JofeeDong wrote:
Oh,Thank you very much for your detailed reply!!I will try it.:)
I hope we didn't confuse you.
If you have movie data in RAM in a standard format MovieImportDataRef
is the way to go.
If you want to create a new movie you need AddMediaSample or
equivalent functionality.
I have used the AddMediaSampleRefence method for video digitizing
(creating the movie after writing the raw samples to disk) and for an
internet radio receiver (based on code by Andreas Pardeike). In the
latter case I kept adding mp3 samples to a wrap around buffer and
calling AddMediaSampleRefence and InsertMediaIntotrack. And indeed the
thing kept playing. That was fun!
Jan E.
------------------------------------------------------------------------