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
Submit: code patches (MediaPortal/TV-Server/etc.)
Framegrabber improvement - Capture from UI when Video is minimized or running in Mini-display
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="popy" data-source="post: 1128738" data-attributes="member: 114134"><p>Not so easy as i thought <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p>I have tried it that way:</p><ul> <li data-xf-list-type="ul">make enum private and copied it to the plugin.cs</li> <li data-xf-list-type="ul">define FrameSource parameter as int and optional like this:</li> </ul><p>[code] private void AtmolightPlugin_OnNewFrame(short width, short height, short arWidth, short arHeight, uint pSurface, int iFrameSource = (int)FrameSource.NotSupported)[/code]</p><p></p><p>doesnt work with old v1.11pre -> MP does close without any exception message in the error log <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p>I have also read some reports from other C# users says that the delegate itself must contain the optional parameter. Older MP versions doesnt have this needed parameter optional declared, so ill think we have to go the other way and check which MP version the user has installed and then subscribe to the correct delegate method. We then need 2 methods, one with the new FrameSource and the old one without it.</p><p></p><p>Will try it tomorrow</p><p>pOpY</p></blockquote><p></p>
[QUOTE="popy, post: 1128738, member: 114134"] Not so easy as i thought :( I have tried it that way: [LIST] [*]make enum private and copied it to the plugin.cs [*]define FrameSource parameter as int and optional like this: [/LIST] [code] private void AtmolightPlugin_OnNewFrame(short width, short height, short arWidth, short arHeight, uint pSurface, int iFrameSource = (int)FrameSource.NotSupported)[/code] doesnt work with old v1.11pre -> MP does close without any exception message in the error log :( I have also read some reports from other C# users says that the delegate itself must contain the optional parameter. Older MP versions doesnt have this needed parameter optional declared, so ill think we have to go the other way and check which MP version the user has installed and then subscribe to the correct delegate method. We then need 2 methods, one with the new FrameSource and the old one without it. Will try it tomorrow pOpY [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Submit: code patches (MediaPortal/TV-Server/etc.)
Framegrabber improvement - Capture from UI when Video is minimized or running in Mini-display
Contact us
RSS
Top
Bottom