GLBasic forum

Codesnippets => Inline / 3rd party => Topic started by: Hemlos on 2008-Oct-29

Title: Play movie.avi fullscreen
Post by: Hemlos on 2008-Oct-29
http://www.glbasic.com/forum/index.php?topic=2502.0
Title: Re: Play movie.avi fullscreen
Post by: Schranz0r on 2008-Oct-29
Code (glbasic) Select
playfile("test.avi",1)
SHOWSCREEN
MOUSEWAIT
END

FUNCTION foo:
ENDFUNCTION
INLINE
}
extern "C" int __stdcall mciSendStringA(const char*,int,int,void*);
namespace __GLBASIC__
{
ENDINLINE


FUNCTION playfile: file$, If_fullscreen = TRUE
local a$, full$
IF If_fullscreen = True THEN full$ = "fullscreen"
a$="play "+file$+" "+full$;
INLINE
mciSendStringA(a_Str.c_str(),0,0,GLBASIC_HWND());
ENDINLINE
ENDFUNCTION


Does it work?
I dont test it :D

Doesnt work for me.... Vista?!
Title: Re: Play movie.avi fullscreen
Post by: Hemlos on 2008-Oct-29
I made a working example for full screen.
Get the MCI library from here:
http://www.glbasic.com/forum/index.php?topic=2502.0
The library has play pause resume stop and volume.

I removed the hotwait function and made the code more optimized
Title: Re: Play movie.avi fullscreen
Post by: Schranz0r on 2008-Oct-29
cool!
Title: Re: Play movie.avi fullscreen
Post by: Hemlos on 2008-Oct-29
please let me know if it works, i want to get this working fullscreen for all windows
Title: Re: Play movie.avi fullscreen
Post by: Schranz0r on 2008-Oct-29
yopp, that works for me!