home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Need a little help : How to instansiate DirectShow filter from C#
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ziphnor" data-source="post: 78258" data-attributes="member: 14215"><p>In relation to the Auto zoom/crop discussed in this i need to be able to have MediaPortal call methods on the AutoCrop DirectShow filter(to set properties etc) through a custom interface. I dont really have any experience with COM and only a bit with C# Interop so im having a few difficulties.</p><p></p><p>My DirectShow filter called AutoCrop already exposes an interface called IAutopCrop(this was autogenerated by the wizard that set it up). I have added a test method to this interface which i want to call from a test C# program.</p><p></p><p>The interface (and related stuff) is declared like this(i simplified it for testing purposes the actual interface has more methods):</p><p></p><p></p><p></p><p>On the C# side i have declared the following(based on how things are done in the MediaPortal DirectShowLib source):</p><p></p><p></p><p></p><p>I can see in the MediaPortal source code that Marshal.BindMoniker is used to obtain IBaseFilter instances(which should be no different from what i am doing), but im a bit unsure as to what a 'moniker' is. I have the CLSID and IID GUID's (as seen above) but what am i supposed to do with them ? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>A little help, or a link to something that explains this clearly would be greatly appreciated.</p></blockquote><p></p>
[QUOTE="ziphnor, post: 78258, member: 14215"] In relation to the Auto zoom/crop discussed in this i need to be able to have MediaPortal call methods on the AutoCrop DirectShow filter(to set properties etc) through a custom interface. I dont really have any experience with COM and only a bit with C# Interop so im having a few difficulties. My DirectShow filter called AutoCrop already exposes an interface called IAutopCrop(this was autogenerated by the wizard that set it up). I have added a test method to this interface which i want to call from a test C# program. The interface (and related stuff) is declared like this(i simplified it for testing purposes the actual interface has more methods): On the C# side i have declared the following(based on how things are done in the MediaPortal DirectShowLib source): I can see in the MediaPortal source code that Marshal.BindMoniker is used to obtain IBaseFilter instances(which should be no different from what i am doing), but im a bit unsure as to what a 'moniker' is. I have the CLSID and IID GUID's (as seen above) but what am i supposed to do with them ? :) A little help, or a link to something that explains this clearly would be greatly appreciated. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Need a little help : How to instansiate DirectShow filter from C#
Contact us
RSS
Top
Bottom