Hello everybody.
For a while I've been trying to create a test interface plugin with C# in Visual Studio 2008, for Media Jukebox.
Here are the things I tried:
(VS Console App)Connect to MJ with COM (added Interop.MediaJukebox to References):
Worked when MJ was off and only once when it was on. All other tries got a 8008005 COMException.
(VS Class Library)Tried combinations with "MediaCenter.dll" from the .NET Script Plugin folder, "MediaCenter.dll" created with TlbImp from "
http://www.jrmediacenter.com/DevZone/MediaCenterSDK.rar/MediaCenterSDK/Shared/MCPlayerLib.tlb" and the Interop.MediaJukebox (Media Jukebox 12.tlb in Media Jukebox installation folder).
Here's the code for the TestPlugin:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MediaJukebox;
using MediaCenter;
using System.Windows.Forms;
namespace Test_Plugin
{
public class Test_Plugin
{
public void Init(Object automat)
{
MessageBox.Show("Finally a plugin !");
}
public void Init(MJAutomation automat)
{
MessageBox.Show("Finally a plugin !");
}
public void Init(MCAutomation automat)
{
MessageBox.Show("Finally a plugin !");
}
}
}
I just cannot start it in Media Jukebox. It's registered with this .reg file:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\JRiver\Media Jukebox\Plugins\Interface\Test Plugin]
"IVersion"=dword:00000001
"Company"="CTeam2005"
"Version"="1"
"URL"="http://www.cteam2005.de"
"Copyright"="Copylefted. Fuck copyright."
"PluginMode"=dword:00000000
"ProdID"="TestPlugin"
I put the created dll (renamed to "int_TestPlugin", "int_Test Plugin", "TestPlugin" and "Test Plugin") into the "Plugins" folder and into a "Plugins/TestPlugin" folder. Yet all the time I get this error message "Interface plug-in 'Test Plugin' could not be found or created."