Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
media
danimation.controls
danimation.programming
devices
drm
dshow.programming
dtransform
encoder
encoder.optimization
hometheaterpc
media
media.beta
media.beta.encoder
mediacenter
mediacenter.portable
mediaplayer
music.products
musicproducer
player
player.plugins
player.skins
player.solaris
player.visualizations
player.web
sdk
server
tools
  
 
date: Tue, 16 Jun 2009 14:59:01 -0700,    group: microsoft.public.windowsmedia.encoder        back       


How to configure a source plugin - in code   
Hi

I'm using a Screen Capture Source Filter in WME to capture screen activity. 
I need to be able to configure the various properties of this filter in code 
but I'm having trouble getting a reference to the source filter from WME.

I've been trying to call the GetSourcePlugin()  method (after I call 
prepare) on the video source and then cast the ComObject, I get back, to the 
source filter interface (I imported a typelib for the source filter). 
However, I haven't been able to cast the ComObject to the plugin interface.

Can anyone tell me what the GetSourcePlugin() method is supposed to return? 
Is that even the right method for this task?

I've tried adding the Screen Capture Source Filter as a device and I've also 
tried adding it as a file source as discussed here: 
http://groups.google.com/group/microsoft.public.windowsmedia.sdk/browse_thread/thread/78fd6f1d83c77fed/3bb4c81f230bb294?lnk=gst&q=Custom+Capture+Filter+#3bb4c81f230bb294 but either way, I cant get a reference to the source plugin.

Is it possible that the GetSourcePlugin() returns some kind of wrapper, 
IFileSource or IDeviceSource (those interfaces are just made up) for the 
source plugin?
date: Tue, 16 Jun 2009 14:59:01 -0700   author:   Einar

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us