William Yu at REAL provided a great workaround for finding the duration of Read-Only movies when Windows Media Player is assigned as the MoviePlayer.PlayerType. So until a Duration property gets added to the Movie class for easily getting the duration of Read-Only media files (such as on CD), use these workarounds provided below:
QUICKTIME: Use the Monkeybread plugin's DurationMBS property -- MoviePlayer1.Movie.DurationMBS. -OR- use the declare code that Joe Huber and Erick Tejkowski posted earlier in this thread. WINDOWS MEDIA PLAYER: William Yu kindly provided this workaround that utilizes the ActiveX API that MoviePlayer uses for WMP -- MoviePlayer1.MovieController.CurrentMedia.Duration -- (make sure your movie is already loaded into the MoviePlayer.Movie before calling that line of code). I've updated my Feature Request (ID: iuvqmygp) in the Feedback system to include these workarounds, so that it can benefit others searching for this solution. Thanks to all for helping me solve this. :-) Regards, Dave Wooldridge Electric Butterfly http://www.ebutterfly.com ------------------------------------ > If you need to access the Duration of Read-Only multimedia files (such as > Audio CD files), then please vote for this feature request! ;-) > > > Movie Class needs a Duration property > > Even though a movie's Duration can be obtained via an Editable Movie, that > only works for writeable movies. When accessing a Read-Only movie (such as > on CD), there's currently no way to get the Duration from the > MoviePlayer.Movie. > > The MBS plugin has the DurationMBS property, but that only works for > QuickTime-supported Read-Only files, leaving the problem unresolved if the > MoviePlayer is set to PlayerType=2 (Windows Media Player). > > Sign onto Feedback ID: iuvqmygp > > <http://support.realsoftware.com/feedback/viewreport.php?reportid=iuvqmygp> > > > Thanks for your consideration! > > Regards, > Dave Wooldridge > Electric Butterfly > http://www.ebutterfly.com > > ---------------------------------------- > RB Garage - http://www.RBGarage.com > The largest independent online resource > For REALbasic software developers! > ---------------------------------------- > _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
