Thread View: borland.public.cppbuilder.multimedia
4 messages
4 total messages
Started by Sally
Sat, 18 Feb 2006 10:33
TMediaPlayer never working for AVI
Author: Sally
Date: Sat, 18 Feb 2006 10:33
Date: Sat, 18 Feb 2006 10:33
20 lines
1740 bytes
1740 bytes
I used to have Win98se and it worked, now I have WinXPsp2 and it never seems to work. mediaplayer_controller->FileName = "test.avi"; mediaplayer_controller->Open(); gives "The MCI device you are using does not support the specified command" I have tried setting DeviceType=dtAutoSelect and dtAVIVideo too. MCIWndNew(m_hMCIWnd, "avivideo") gives the exact same message in a popup message board. I need some way to universally play a basic AVI file into a Window handle I specify, and make it compatible with everything starting from Win98se. What is my possible problem and is the "ActiveMovie" ActiveX control universal since Win98se? BIG THANKS........Sally
Re: TMediaPlayer never working for AVI
Author: HF
Date: Sat, 18 Feb 2006 12:12
Date: Sat, 18 Feb 2006 12:12
12 lines
1324 bytes
1324 bytes
Try this
#include <vfw.h>
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
if (OpenDialog1->Execute()){
MCIWndCreate(Panel1->Handle,0,MCIWNDF_SHOWMODE,OpenDialog1->FileName.c_str());
}
}
//---------------------------------------------------------------------------
Re: TMediaPlayer never working for AVI
Author: KL Chin
Date: Mon, 20 Feb 2006 03:31
Date: Mon, 20 Feb 2006 03:31
31 lines
1835 bytes
1835 bytes
Hi Sally, Have u able to play the AVI on design-time? Most likely the setting were wrong. Regards KL Chin "Sally" <nospamforme@spamme.com> wrote in message news:43f6f70b$1@newsgroups.borland.com... >I used to have Win98se and it worked, now I have WinXPsp2 and it never >seems to work. > > mediaplayer_controller->FileName = "test.avi"; > mediaplayer_controller->Open(); > > gives "The MCI device you are using does not support the specified > command" > > I have tried setting DeviceType=dtAutoSelect and dtAVIVideo too. > > MCIWndNew(m_hMCIWnd, "avivideo") > gives the exact same message in a popup message board. > > I need some way to universally play a basic AVI file into a Window handle > I specify, and make it compatible with everything starting from Win98se. > What is my possible problem and is the "ActiveMovie" ActiveX control > universal since Win98se? > > BIG THANKS........Sally >
Re: TMediaPlayer never working for AVI
Author: Mark Jacobs
Date: Wed, 22 Feb 2006 14:28
Date: Wed, 22 Feb 2006 14:28
23 lines
1587 bytes
1587 bytes
"HF" <(min_charATyahooPUTADOTgr)(HellenicFire)> wrote in message
news:43f70e26@newsgroups.borland.com...
| Try this
|
| #include <vfw.h>
|
|
//---------------------------------------------------------------------------
| void __fastcall TForm1::Button1Click(TObject *Sender)
| {
| if (OpenDialog1->Execute()){
|
MCIWndCreate(Panel1->Handle,0,MCIWNDF_SHOWMODE,OpenDialog1->FileName.c_str());
| }
| }
|
//---------------------------------------------------------------------------
Wow. That was short and sweet!
--
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads