mciSendString problem
-
Hello all I have the following two lines of code to play an avi file:
mciSendString("open Res\\test.avi type avivideo alias myfile", NULL, 0, NULL);
mciSendString("play myfile", NULL, 0, NULL);The problem is that it plays the audio but no video is displayed. I can play the video fine in any media player, but it wont show up in the program, but I know its getting to the file because I can hear the audio. Any suggestions as to what the problem could be? Thanks.
Chris
-
Hello all I have the following two lines of code to play an avi file:
mciSendString("open Res\\test.avi type avivideo alias myfile", NULL, 0, NULL);
mciSendString("play myfile", NULL, 0, NULL);The problem is that it plays the audio but no video is displayed. I can play the video fine in any media player, but it wont show up in the program, but I know its getting to the file because I can hear the audio. Any suggestions as to what the problem could be? Thanks.
Chris
I believe it might have something to do with not having a "window" to play the video in. It might be simpler to use the MCIWnd functions (I've used them and had no problem in playing videos) compared to sending command strings yourself.
-
I believe it might have something to do with not having a "window" to play the video in. It might be simpler to use the MCIWnd functions (I've used them and had no problem in playing videos) compared to sending command strings yourself.