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
Output-PlugIn fox external Programms
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="samuel337" data-source="post: 44825" data-attributes="member: 10347"><p>Ok, here's how the plugin works.</p><p></p><p>Are you using .NET to write your plugin? If so you have two options - connect directly to the plugin or connect to the web service.</p><p></p><p>To connect to the web service, in .NET just add a web reference to the web service. To connect to the plugin, add a reference to ECP2Assembly.dll (should be located in your MP folder).</p><p></p><p>Ok, to use the plugin to get details about the currently playing item, do this:</p><p>Using the get_MPPropertyManager method, pass the following 'tags' as the property in the method to get the relevant information (the tag is the first bit of each line, e.g. #Play.Current.Thumb and the bit after the comma in each line is an example of what information it returns):</p><p></p><p>#Play.Current.Thumb, thumbs\music\albums\3 Doors Down-Away From The Sun.jpg</p><p>#Play.Current.File, 3 Doors Down - Away From The Sun - 01 - When I'm Gone.mp3</p><p>#Play.Current.Title, 3 Doors Down - Away From The Sun - 01 - When I'm Gone.mp3</p><p>#Play.Current.Genre, Rock</p><p>#Play.Current.Title, When I'm Gone</p><p>#Play.Current.Artist, 3 Doors Down</p><p>#Play.Current.Album, Away From The Sun</p><p>#Play.Current.Track, Track1</p><p>#Play.Current.Year, Year:2002</p><p>#Play.Current.Duration, Duration:4:21</p><p></p><p>These tags above should work regardless of what you're playing, including Music, videos, TV shows, live TV etc.</p><p></p><p>Music-specific:</p><p>#Play.Next.Thumb, thumbs\music\albums\3 Doors Down-Away From The Sun.jpg</p><p>#Play.Next.File, 3 Doors Down - Away From The Sun - 02 - Away From The Sun.mp3</p><p>#Play.Next.Genre, Rock</p><p>#Play.Next.Title, Away From The Sun</p><p>#Play.Next.Artist, 3 Doors Down</p><p>#Play.Next.Album, Away From The Sun</p><p>#Play.Next.Track, Track2</p><p>#Play.Next.Year, Year:2002</p><p>#Play.Next.Duration, Duration:3:53</p><p>#currentplaytime, 0:00</p><p>#currentremaining, 4:21</p><p></p><p>TV-specific:</p><p>#duration, 1:52</p><p></p><p>#TV.View.channel</p><p>#TV.View.thumb</p><p>#TV.View.start</p><p>#TV.View.stop</p><p>#TV.View.remaining</p><p>#TV.View.genre</p><p>#TV.View.title</p><p>#TV.View.description</p><p></p><p>#TV.Next.start</p><p>#TV.Next.stop</p><p>#TV.Next.genre</p><p>#TV.Next.title</p><p>#TV.Next.description</p><p></p><p>#TV.Record.channel</p><p>#TV.Record.start</p><p>#TV.Record.stop</p><p>#TV.Record.genre</p><p>#TV.Record.title</p><p>#TV.Record.description</p><p>#TV.Record.thumb</p><p></p><p>To connect to the web service using a web browser to test it, simply log on to http://<MP computer name>:81/MPExtControlWS/service.asmx (replace <MP computer name> with your MP computer's computer name).</p><p></p><p>Once connected, click on the get_MPPropertyManager link, enter in the tag name (including the #) and press submit. You'll get a response back in XML format.</p><p></p><p>To use it in your .NET plugin, simply add a web reference to the web service, or add a reference to the ECP2Assembly.dll file. It is probably easier to use the web service, however this does mean that MPW needs to be running for it to work.</p><p></p><p>If you're connecting to the ECP2 plugin directly, as long as MP is running and the plugin is activated, it will work. Once you have referenced the plugin, to use the plugin, simply do this:</p><p></p><p>ECP2Assembly.MPHandler.Instance.get_GUIPropertyManager("#Play.Current.Title");</p><p></p><p>Replace the #Play.Current.Title tag with another tag as appropriate.</p><p></p><p>HTH</p><p></p><p>Sam</p></blockquote><p></p>
[QUOTE="samuel337, post: 44825, member: 10347"] Ok, here's how the plugin works. Are you using .NET to write your plugin? If so you have two options - connect directly to the plugin or connect to the web service. To connect to the web service, in .NET just add a web reference to the web service. To connect to the plugin, add a reference to ECP2Assembly.dll (should be located in your MP folder). Ok, to use the plugin to get details about the currently playing item, do this: Using the get_MPPropertyManager method, pass the following 'tags' as the property in the method to get the relevant information (the tag is the first bit of each line, e.g. #Play.Current.Thumb and the bit after the comma in each line is an example of what information it returns): #Play.Current.Thumb, thumbs\music\albums\3 Doors Down-Away From The Sun.jpg #Play.Current.File, 3 Doors Down - Away From The Sun - 01 - When I'm Gone.mp3 #Play.Current.Title, 3 Doors Down - Away From The Sun - 01 - When I'm Gone.mp3 #Play.Current.Genre, Rock #Play.Current.Title, When I'm Gone #Play.Current.Artist, 3 Doors Down #Play.Current.Album, Away From The Sun #Play.Current.Track, Track1 #Play.Current.Year, Year:2002 #Play.Current.Duration, Duration:4:21 These tags above should work regardless of what you're playing, including Music, videos, TV shows, live TV etc. Music-specific: #Play.Next.Thumb, thumbs\music\albums\3 Doors Down-Away From The Sun.jpg #Play.Next.File, 3 Doors Down - Away From The Sun - 02 - Away From The Sun.mp3 #Play.Next.Genre, Rock #Play.Next.Title, Away From The Sun #Play.Next.Artist, 3 Doors Down #Play.Next.Album, Away From The Sun #Play.Next.Track, Track2 #Play.Next.Year, Year:2002 #Play.Next.Duration, Duration:3:53 #currentplaytime, 0:00 #currentremaining, 4:21 TV-specific: #duration, 1:52 #TV.View.channel #TV.View.thumb #TV.View.start #TV.View.stop #TV.View.remaining #TV.View.genre #TV.View.title #TV.View.description #TV.Next.start #TV.Next.stop #TV.Next.genre #TV.Next.title #TV.Next.description #TV.Record.channel #TV.Record.start #TV.Record.stop #TV.Record.genre #TV.Record.title #TV.Record.description #TV.Record.thumb To connect to the web service using a web browser to test it, simply log on to http://<MP computer name>:81/MPExtControlWS/service.asmx (replace <MP computer name> with your MP computer's computer name). Once connected, click on the get_MPPropertyManager link, enter in the tag name (including the #) and press submit. You'll get a response back in XML format. To use it in your .NET plugin, simply add a web reference to the web service, or add a reference to the ECP2Assembly.dll file. It is probably easier to use the web service, however this does mean that MPW needs to be running for it to work. If you're connecting to the ECP2 plugin directly, as long as MP is running and the plugin is activated, it will work. Once you have referenced the plugin, to use the plugin, simply do this: ECP2Assembly.MPHandler.Instance.get_GUIPropertyManager("#Play.Current.Title"); Replace the #Play.Current.Title tag with another tag as appropriate. HTH Sam [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Output-PlugIn fox external Programms
Contact us
RSS
Top
Bottom