New topic: Changing Movie Picture Size using MoviePlayer in RB
<http://forums.realsoftware.com/viewtopic.php?t=32205> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message barrytraver Post subject: Changing Movie Picture Size using MoviePlayer in RBPosted: Wed Jan 27, 2010 6:01 am Joined: Fri Sep 30, 2005 1:53 pm Posts: 341 Location: Philadelphia, PA I can change the window size and/or the movieplayer size, but I cannot figure out how to change the size of the movie picture size using RB code. Making a program to play movies is simple: start a new Project, add a MoviePlayer control, and put this code in Window1.Open: Code:Dim f as FolderItem Dim m as Movie f=GetOpenFolderItem(FileTypes1.WMVfiletype) m=f.OpenasMovie moviePlayer1.movie=m moviePlayer1.Play (For this particular code to work, of course, you also have to define FileTypes1 so that FileTypes1.WMVfiletype will mean that only files with a ".wmv" file extension will be listed.) The program loads in and plays the movie, but sometimes the movie picture is not much bigger than the size of a postage stamp. (That's a bit of an exaggeration, but you get the idea.) How do I change the size of the movie picture in RB? It's not difficult to maximize to "full screen" the size of the window or the size of the movieplayer, BUT so far I have not found a way to maximize (or make ANY change in) the size of the movie picture itself using RB code. Any advice for me? I know that the Windows Media Player knows how to do it, because if you run my RB program, the movie plays, and if you then double-click on the movie picture, then the window, the movieplayer, AND the movie picture are ALL maximized to full screen. But what RB code can I use to do the same thing without making the user double-click on the movie picture? I have an uncomfortable feeling that the only RB solution is to make use of the RB equivalent of some Windows API call. (I say "uncomfortable," because I have not found the supposedly "comprehensive" Windows API guru Dan Appleman to be of much help with multimedia-type things.) Bottom line question: Is there any way using RB code to change the picture size of a movie being played with the RB movieplayer (which -- in the case of Windows -- is built on the Windows Media Player)? If so, what is it? Thanks in advance for any help anyone may offer on this. Barry Traver Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
