Re: Get DirectShow graph of WMP
- From: "Alessandro Angeli" <nobody@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 16 Nov 2007 20:39:28 +0100
From: "Ricciolo"
First, I have to hook WMP because Windows Presentation
Foundation use it to show media, but it doesn't allow to
show webcam.
Protocol handlers aren't permitted and I don't wont to
use custom source filter. So my intent is to capture the
graph and changes the graph source, but I'm using Vista,
infact CLSID_FilterGraphNoThread is never used and rot
doesn't expose it. May by I have to work with different
modes basing on OS.
Now I investigate on MediaFoundation, but if you have any
idea to reach my target, please tell me
MF only supports WindowsMedia, no video capture or streaming
protocols or other file formats.
The best way to achieve your goal is to write a custom
source filter and associate it with a custom URL scheme.
Writing a custom push source based on CSource/CSourceStream
is very easy (take a look at the Push[Source?] sample).
Otherwise you will have to write your own media element for
WPF. The trick would be to use the EVR as video renderer in
your DirectShow graph to integrate the element with WPF's
D3D9-based rendering mechanism.
Better yet, refuse to support Vista :-)
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
.
- Follow-Ups:
- Re: Get DirectShow graph of WMP
- From: Ricciolo
- Re: Get DirectShow graph of WMP
- References:
- Get DirectShow graph of WMP
- From: Ricciolo
- Re: Get DirectShow graph of WMP
- From: Alessandro Angeli
- Re: Get DirectShow graph of WMP
- From: Ricciolo
- Get DirectShow graph of WMP
- Prev by Date: Re: Get DirectShow graph of WMP
- Next by Date: Re: Get DirectShow graph of WMP
- Previous by thread: Re: Get DirectShow graph of WMP
- Next by thread: Re: Get DirectShow graph of WMP
- Index(es):
Relevant Pages
|