Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: creating reference movie without using user dialog



Hi Jan,

 

What I really wanted here was to create a reference movie from a URL, e.g. “rtsp://172.21.9.165/my_movie.sdp”.  I created a reference movie using this code:

 

      char  url[] = "rtsp://172.21.9.165/my_movie.sdp";

      urlDataRef = NewHandle(strlen(url) + 1);

      BlockMoveData(url,*urlDataRef,strlen(url) + 1);

      err = NewMovieFromDataRef(&movie,newMovieActive,nil,urlDataRef,URLDataHandlerSubType);

      FlattenMovie(movie,0,&outSpec,0,smCurrentScript,createMovieFileDeleteCurFile,nil,0L);

 

The Movie was created without error but could not play back from QT player.  What did I do wrong?

 

Thanks,

Hau

 

Quach, Hau wrote:

 

Is there a sample code for creating reference movie without user dialog?

Just create a new movie file, then use InsertMovieSegment and save.

 

Pseudocode:

 

CreateMovieStorage(dataRef)

dstMovie = NewMovieFromDataRef(dataRef)

InsertMovieSegment( srcMovie, dstMovie,0,GetMovieDuration(srcMovie), 0);

AddMovieToStorage

 

Jan E.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden

References: 
 >Re: creating reference movie without using user dialog (From: "Jan E. Schotsman" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.