On Jan 20, 2008, at 1:38 PM, Christian Schmitz wrote:
> Alfred Van Hoek <[EMAIL PROTECTED]> wrote:
>
>> Has anybody found a workaround to get a QuickTime "Movie" from a
>> "REALmovie" on windows? And if so, don't answer only with yes,
>> please. REALgetMovieMovie returns nil on windows, dang.
>
> Well, I created OpenAsMovieMBS to make sure it will not return nil.
>
> The reason is simple. As long as you don't use a Movieplayer
> control, RB
> does not know whether to use QuickTime or MediaPlayer for playback, so
> it delays the opening of the movie.
Yes, can confirm this, if you have a movie but have not yet assigned
it to a MoviePlayer, REALgetMovieMovie returns nil. However, it
appears that the following will work before the movie is presented to
the MoviePlayer:
if (movieObject == nil) return;
Movie theMovie = REALgetMovieMovie(movieObject);
if (theMovie == nil)
{
long handle = 0;
REALGetPropValueInt32((REALobject)movieObject, "handle",
&handle);
theMovie = (Movie)handle;
}
if (theMovie == NULL) {
return;
}
Thanks for the feedback,
Alfred
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>