I try to get events working with MM4 and C#... the code i use does not give any errors, however the events aren't firing:
Code: Select all
private static void registerEvents()
{
SDB.OnPlay += new SongsDB.ISDBApplicationEvents_OnPlayEventHandler(SDB_OnPlay);
}
/// <summary>
/// MediaMonkey Event Handelers
/// </summary>
static void SDB_OnPlay() {
var r = new Response { Type = ResponseType.UIUpdate, Data="onPlay" };
Broadcast(JsonConvert.SerializeObject(r));
Console.WriteLine("test");
}