Plugin developer guide

This page provides some useful informations for plugin developers.

Sending series information to InfoService

string sendTitle = string.Format("{0}/{1}/{2}/{3}", "Journeyman", "01", "03", "Erdbeben"); //The series information
string seriesDetails[] = new string[] { "Series", sendTitle, @"C:\Temp\seriesThumbnail.png", @"C:\Temp\seriesFanart.png" }); 
GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_USER, 16000, 15999, 0, 0, 0, seriesDetails)
GUIGraphicsContext.SendMessage(msg);
As you see in the example you just need to send a string[] array with the series informations to InfoService. Also you should send the message type GUIMessage.MessageType.GUIMSGUSER because InfoService will only listen to that message type. The second parameter in the msg object is the target window which this message should send to (16000 is the InfoService window). The third parameter is the sender window ID (your window id).

The items order in the string[] array must be like this:
  1. Item: Video type. Should be "Series"
  2. Item: The series name, the series season, the series episode number, the series episode name. All separated by an "/"
  3. Item: Series episode thumbnail
  4. Item: Series fanart

Sending movie information to InfoService

string sendTitle = "Hangover"; //The movie title
string movieDetails[] = new string[] { "Movie", sendTitle, @"C:\Temp\movieThumbnail.png", @"C:\Temp\movieFanart.png" }); 
GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_USER, 16000, 15999, 0, 0, 0, movieDetails)
GUIGraphicsContext.SendMessage(msg);
As you see in the example you just need to send a string[] array with the movies informations to InfoService. Also you should send the message type GUIMessage.MessageType.GUIMSGUSER because InfoService will only listen to that message type. The second parameter in the msg object is the target window which this message should send to (16000 is the InfoService window). The third parameter is the sender window ID (your window id).

The items order in the string[] array must be like this:
  1. Item: Video type. Should be "Movie"
  2. Item: The movie name
  3. Item: Movie thumbnail
  4. Item: Movie fanart

Last edited Feb 20, 2010 at 7:45 PM by edsche, version 3

Comments

No comments yet.