Process plugins (1 Viewer)

dipunm

Portal Pro
August 6, 2006
68
1
37
So nothing in the Start method is being executed?

You should see something like this in mediaportal.log:


Your plugin should appear there if it implements the IPlugin interface and is in the plugins/process folder.

BTW, devs - the new logging mechanism doesn't seem to know to append to logs once they reach a certain size - my current log is 6.88MB, and that's after nearly a week.

Sam

well, ive got that, but mines a bit longer in beween, and theres a bit about the tv in there but the message exxample in my last post was put into every function, like a debugger (the initialisation was done in the construcor only)

none of my messages come up in the log
 

dipunm

Portal Pro
August 6, 2006
68
1
37
hi, ive got good news and bad news:

good:
the plugin works :D (even the logging works which proves the logging code was not incorrect)

bad:
only through MyScript (no config options cos its not a true plugin)

let me giv you some info about wat i do with the dll:

i use Microsoft Visual C# 2005 Express Edition, (.net2003 dont work cos is too old)
i used command line tool svn to download latest vers. to c:\mpsvn\
i build
i reference:
core
system
system.data
system.windows.forms
system.xml
utils
(core and utils are from mpsvn\mediaportal\ directory)

project is in D:\Visual Studio 2005\Projects\ClassLibrary1\ClassLibrary1\
d:\ is my documents

i copy the dll and pdb to process plugins directory

i get no result in config OR mp

also, lil help, i cant seem to find out when the player ends (i want bg to reappear when vid is finished but not if next track is gonna play). btw, the current version of mp doesnt check this either so if in livetv in bg mode, if vid has finished but menu was over it at the time, the menu bg stays hidden (black bg)

*edit*

Also, ive noticed that within the core program, the onActionhandler which handles the background toggle sets the aspect ratio as stretch at the same time, i figured that this was a bug to be fixed later on (i thought this before seeing the code having experienced it from v2.00 i think, it was fixable via toggling fullscreen, but an annoyance to me nonetheless)

now that ive found the bug, if it is a feature, ignore this, but maybe set an option in the config that sets the preferred aspect ratio wen in menu with 'current AR' being an option, otherwise... here you go, sorry its not in the bug section :p
 

Hesse

Portal Pro
August 8, 2006
110
0
I've noticed that the class definition for the plugin section needs to be made public:

e.g.

public class YourClass : IPlugin ... <blah>
 

Hesse

Portal Pro
August 8, 2006
110
0
:) I don't blame them though, such a small thing to miss.

I had just spend like half an hour trying to figure out your same problem so it jumped right out at me. :D
 

Users who are viewing this thread

Top Bottom