VLC in full screen
BlitzMax Forums/BlitzMax Beginners Area/VLC in full screen
| ||
I found a topic playing vlc dll video function to play mp4 files. how do I use code to do full screen. http://www.blitzbasic.com/codearcs/codearcs.php?code=3230 |
| ||
Morning Caton. Try this: |
| ||
Since the vlc dll requires an already created window to display a video, that is up to whatever you use for that. MaxGUI is used in the example, so you have complete control over it. Now it doesnt do fullscreen by itself, but you can fake it by creating a frameless window the size of the desktop (and if you need to, forcing it to be on top). I believe dw817 has some code to do this already somewhere on this forum... |
| ||
Grable is right. The easiest way to do a frameless window can be accomplished in MaxGUI thus: |
| ||
Hi, out of curiosity. Could you not create a frameless window simple by passing Null in the style parameter of 'CreateWindow()' ? -Henri |
| ||
Hi Henri. Long day wouldn't believe. Lessee ... No, you can't do that. Now as near as I understand CreateWindow() just opens up a white area that you CANNOT draw to. You can add buttons and fields and junk and you can add a SCREEN (where you CAN draw on). Now the GetDesktopArea() routine is one that makes sure you can see the taskbar buttons below. Now if you JUST want full-screen with no buttons there are two easy ways to do it. Lemme know if you want the taskbar buttons to be seen or not. |
| ||
You can create a borderless fullscreen canvas to draw to . Might not be best suited for games (although there's nothing to stop you), but might be suited for VLC. [Slightly modified Canvas example] -Henri |