The post contains full code for a media player and this time I have tested the code for you and can confirm it plays avi files (sound and video). Look for the post by Gordon S.
You can extract the code you need, if there are any problems with it, ask and I will post some code which I am searching for on my PC. I just can't remember what I named the file as, but it is a LB avi player using winmm.
I mean is there an application which can make .avi files: doing THAT on LB is frightening :o ! Somebody emailed me with some code to display avi files, here it is: Code:
' code begins
filedialog "Select AVI file", "*.avi", AVIfile$
if AVIfile$ = "" then end
call mci "open "; chr$(34); AVIfile$; chr$(34); _
" type avivideo alias movie style popup"
call mci "play movie wait"
call mci "close movie"
sub mci cmd$
r$ = space$(128)
calldll #winmm, "mciSendStringA", cmd$ as ptr, _
r$ as ptr, 128 as long, 0 as long, ret as long
' code ends
It won't be an easy task because there's no such thing as "AVI video/audio". AVI is a container format for video and audio, and can hold video/audio data in nearly any format(i.e. made using any codec).
You would need to know 1) how to parse an AVI file; 2) how to determine the codec used to create the file; and 3) either use a library or decode the video information yourself by manually reimplementing the codec in LB, if possible.
EDIT: I'll note that that's only if you're dealing with creating or editing AVI files in any way. If you only want to play them, you can offload most of the difficult stuff off to the Windows API, which can handle all of that natively. Some of it isn't exactly novice-level stuff, but it's simpler than reimplementing an entire codec in LB.