Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Playing a WMV file using Delphi...

152 views
Skip to first unread message

Ignacio Vazquez

unread,
May 26, 2003, 3:21:59 PM5/26/03
to
"Peter Gannon" <pga...@pgmusic.com> wrote in message
news:3ed269d3$1...@newsgroups.borland.com...
> I'm wondering how to play a .WMV (Windows Video File) using Delphi 6.

You can use Windows Media Player as an ActiveX control.

Cheers,
Ignacio


Peter Gannon

unread,
May 26, 2003, 3:27:50 PM5/26/03
to
I'm wondering how to play a .WMV (Windows Video File) using Delphi 6.

Is that type supported by the Media Component or is there a 3rd party
component that supports playing these files?

I need basic playback support (playing in a TPanel, with start/stop
functionality)

Peter


Peter Gannon

unread,
May 28, 2003, 8:01:27 PM5/28/03
to
Ignacio,
Thanks for the reply. We've now got the WMV playing using the Windows Media
Player Active X Control!
One question for you, so far we haven't been able to determine the pixel
size of the video prior to playing it. Have you?
Peter

"Ignacio Vazquez" <ivazquezATorioncommunications.com> wrote in message
news:3ed2...@newsgroups.borland.com...

Ignacio Vazquez

unread,
May 29, 2003, 9:21:06 AM5/29/03
to
"Peter Gannon" <pga...@pgmusic.com> wrote in message
news:3ed54d55$1...@newsgroups.borland.com...

> One question for you, so far we haven't been able to determine the pixel
> size of the video prior to playing it. Have you?

Heh. I've never actually used WMP as an ActiveX control, so I don't know how
you can do that with it. I think that you'd have to play it, since WMP
itself probably doesn't know until the file plays. But all is not lost;
digging through the Platform SDK help I find...

You can use DirectShow with the Video Renderer Filter, and use
IBasicVideo.get_VideoHeight and .get_VideoWidth.

Hope That Helps,
Ignacio


0 new messages