Well, if you know in advance the movies you are playing and the order, you could use an editable movie to combine them all and play that. You can quickly on the fly reference all the movies and copy/ paste them into a new (temporary) movie. If you don't know ahead of time what you're going to be playing, that might not work though.
Greg On Apr 19, 2007, at 3:44 AM, Carlo Rubini wrote: > Using a moviePlayer object, is there a way to play several tracks > avoiding the very short gap occurring at the end of a track and the > beginning of the next one? > > iTunes can do that, but after several trials I always get the short > gap. This is noticeable especially when the end of a track is not > silent, nor is the beginning of the next track: in other words, > when the next track is supposed to be the continuation of the > previous one. > > > My first try was to make a mMovie.array containg several movies, > and in the stop event of the moviePlayer I put something like this: > > if me.position >= movieSize then > theNext = theNext + 1 > me.movie = mMovie(theNext) > me.play > end if > > Then I used a timer with more or less the same code: > > dim prevPlayer as moviePlayer > if moviePlayer.position >= movieSize -1 then// or movieSize - > 2/-3/-4 > me.mode = 0 > theNext = theNext + 1 > prevPlayer.movie = mMovie(theNext) > prevPlayer.position = 9999999 > movieSize = prevPlayer.position > prevPlayer.position = 0 > moviePlayer1 = prevPlayer > moviePlayer1.play > me.mode = 2 > end if > > Then I tried using two moviePlayer objects: in this case, the timer > action being: > > //thePlayer is a property > dim prevPlayer as moviePlayer > if thePlayer.position >= movieSize -1 then > me.mode = 0 > prevPlayer = thePlayer > if prevPlayer = moviePlayer1 then > prevPlayer = moviePlayer2 > else > prevPlayer = moviePlayer1 > end if > theNext = theNext + 1 > prevPlayer.movie = mMovie(theNext) > prevPlayer.position = 9999999 > movieSize = prevPlayer.position > prevPlayer.position = 0 > thePlayer = prevPlayer > thePlayer.play > me.mode = 2 > end if > > In the Play event of moviePlayer1 there is: > moviePlayer2.stop > moviePlayer2.position = 0 > > In the Play event of moviePlayer2 there is: > moviePlayer1.stop > moviePlayer1.position = 0 > > But I always get the very short gap... > And using movieTask doesnt help. > > RB 5.5.5 Mac OS 10.4.5 > Any suggestion welcome. Thanks, > > -- > Carlo > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives: > <http://support.realsoftware.com/listarchives/lists.html> > _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
