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
MediaPortal 1 Plugins
Popular Plugins
Graveyard
InfoService
*ORIGINAL THREAD* InfoService v1.6 - Feed reader/Twitter reader and weather
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="edsche" data-source="post: 559039" data-attributes="member: 28762"><p><strong>Re: InfoService v1.32 - 5 day weather/Feeds/Twitter on basic home [04-01-2010] *PLANN</strong></p><p></p><p></p><p>Just like you said, with the GUIMessage. Just the listening part from InfoService is a bit different (Did'nt worked with overriding the OnMessage method).</p><p></p><p>At the moment a plugin only needs to send a message like that:</p><p></p><p>For Series:</p><p>[CODE]</p><p>GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_USER, 16000, 15999, 0, 0, 0,</p><p> new string[] { "Series", "Journeyman", "01", "03", "Erdbeben" </p><p> @"C:\ProgramData\Team MediaPortal\MediaPortal\thumbs\MPTVSeriesBanners\Journeyman\-langen-posters\80494-1.jpg" });</p><p></p><p> GUIGraphicsContext.SendMessage(msg);</p><p>[/CODE]</p><p></p><p>For Movies:</p><p>[CODE]</p><p>GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_USER, 16000, 15999, 0, 0, 0,</p><p> new string[] { "Movies", "Hangover", "", "", "" </p><p> @"C:\ProgramData\Team MediaPortal\MediaPortal\thumbs\MPTVSeriesBanners\Journeyman\-langen-posters\80494-1.jpg" });</p><p></p><p> GUIGraphicsContext.SendMessage(msg);</p><p>[/CODE]</p><p></p><p>The GUIMessage is defined like this:</p><p>[CODE]</p><p>GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_USER, InfoServiceWindowId, SenderWindowID, 0, 0, 0, new string[] { });</p><p>[/CODE]</p><p>InfoServiceWindowId -> ID of the InfoService Window. Must be 16000</p><p>SenderWindowId -> ID of the window who sent that message</p><p></p><p>The string array is defined like this:</p><p>[CODE]</p><p>new string[] { type, title, season, episodeNumber, episodeTitle, thumbOfTitle });</p><p>[/CODE]</p><p>type -> "Movies" or "Series"</p><p>title -> Title of the movie or series</p><p>season -> Season of the series. For movie leave this empty</p><p>episodeNumber -> Episodenumber of the series. For movie leave this empty</p><p>episodeTitle -> Episodetitle of the series. For movie leave this empty.</p><p>thumbOfTitle -> Cover/Thumb/Image of the series or movie</p><p></p><p>Once InfoService receives a message, it will put that sent message into propertie items. This is not a big thing, so hopefully other plugin developers will use this.</p><p></p><p>But be aware, these things could be changed till the final version.</p></blockquote><p></p>
[QUOTE="edsche, post: 559039, member: 28762"] [b]Re: InfoService v1.32 - 5 day weather/Feeds/Twitter on basic home [04-01-2010] *PLANN[/b] Just like you said, with the GUIMessage. Just the listening part from InfoService is a bit different (Did'nt worked with overriding the OnMessage method). At the moment a plugin only needs to send a message like that: For Series: [CODE] GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_USER, 16000, 15999, 0, 0, 0, new string[] { "Series", "Journeyman", "01", "03", "Erdbeben" @"C:\ProgramData\Team MediaPortal\MediaPortal\thumbs\MPTVSeriesBanners\Journeyman\-langen-posters\80494-1.jpg" }); GUIGraphicsContext.SendMessage(msg); [/CODE] For Movies: [CODE] GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_USER, 16000, 15999, 0, 0, 0, new string[] { "Movies", "Hangover", "", "", "" @"C:\ProgramData\Team MediaPortal\MediaPortal\thumbs\MPTVSeriesBanners\Journeyman\-langen-posters\80494-1.jpg" }); GUIGraphicsContext.SendMessage(msg); [/CODE] The GUIMessage is defined like this: [CODE] GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_USER, InfoServiceWindowId, SenderWindowID, 0, 0, 0, new string[] { }); [/CODE] InfoServiceWindowId -> ID of the InfoService Window. Must be 16000 SenderWindowId -> ID of the window who sent that message The string array is defined like this: [CODE] new string[] { type, title, season, episodeNumber, episodeTitle, thumbOfTitle }); [/CODE] type -> "Movies" or "Series" title -> Title of the movie or series season -> Season of the series. For movie leave this empty episodeNumber -> Episodenumber of the series. For movie leave this empty episodeTitle -> Episodetitle of the series. For movie leave this empty. thumbOfTitle -> Cover/Thumb/Image of the series or movie Once InfoService receives a message, it will put that sent message into propertie items. This is not a big thing, so hopefully other plugin developers will use this. But be aware, these things could be changed till the final version. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Graveyard
InfoService
*ORIGINAL THREAD* InfoService v1.6 - Feed reader/Twitter reader and weather
Contact us
RSS
Top
Bottom