Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: movies via http
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: movies via http



(2) I'd like my movie to auto-play when enough data is buffered. This
really isn't an issue for rtsp, but it is for http. It looks like for QT
5.0, I can use 'mcActionAutoPlay'. But is there something I can do for QT
4.0? I tried 'mcActionPrerollAndPlay'... that works for rtsp, but not http.

thanks,
Chris



What i'm doing is :

NewMovieFromDataRef( &theMovie, 0, NULL, URLHandle, URLDataHandlerSubType);
SetMovieActive( theMovie , false ) ; //don't start the movie


GetMaxLoadedTimeInMovie ( theMovie , &t) ;
GetMovieDuration( theMovie ) ;

if ( t> duration/2 ) ( start if 50% of the movie has been loaded )
{
start playing
}


Works great on windows !
patrice


References: 
 >movies via http (From: Chris Silverberg <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.