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 2
Plugin Development
Need a little help with plugin development
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="Kasimir9735" data-source="post: 1187312" data-attributes="member: 105881"><p>You're right. Thats a good idea...</p><p></p><p><a href="https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Source/UI/FanArt/FanArtService/MediaItemThumbs.cs#L54-L80" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Source/UI/FanArt/FanArtService/MediaItemThumbs.cs#L54-L80</a></p><p></p><p></p><p>Ok. I tried this, but have no luck. Do you really think this could work in a plugin of the TVEngine?</p><p>I've finished the code to get the data with this method. Then i just added a Test button in the SetupTV to test if it works.</p><p></p><p>First Problem: Cannot load assembly Mediaportal.Backend.dll (Needed the reference because of MediaLibrary). Ok. Fixed it quick with a copy of the dll in the SlimTv.Service3 directory. The loibrary could load then. What's the best approach for this? Could load the assembly dynamicly via refelection later...</p><p></p><p>Next problem: </p><p></p><p>[code] var mediaLibrary = ServiceRegistration.Get<IMediaLibrary>(false);</p><p> if (mediaLibrary == null)</p><p> throw new Exception("Unable to get reference to IMediaLibary");</p><p>[/code]</p><p></p><p>mediaLibrary is always null. So i cannot continue. Do you have an idea what to do?</p><p></p><p></p><p></p><p></p><p>Thank you for this.</p></blockquote><p></p>
[QUOTE="Kasimir9735, post: 1187312, member: 105881"] You're right. Thats a good idea... [URL='https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Source/UI/FanArt/FanArtService/MediaItemThumbs.cs#L54-L80'][/URL] Ok. I tried this, but have no luck. Do you really think this could work in a plugin of the TVEngine? I've finished the code to get the data with this method. Then i just added a Test button in the SetupTV to test if it works. First Problem: Cannot load assembly Mediaportal.Backend.dll (Needed the reference because of MediaLibrary). Ok. Fixed it quick with a copy of the dll in the SlimTv.Service3 directory. The loibrary could load then. What's the best approach for this? Could load the assembly dynamicly via refelection later... Next problem: [code] var mediaLibrary = ServiceRegistration.Get<IMediaLibrary>(false); if (mediaLibrary == null) throw new Exception("Unable to get reference to IMediaLibary"); [/code] mediaLibrary is always null. So i cannot continue. Do you have an idea what to do? Thank you for this. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Need a little help with plugin development
Contact us
RSS
Top
Bottom