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
Featured Plugins
TvWishList
Plugin: TvWishList for MP2
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="huha" data-source="post: 1042213" data-attributes="member: 63847"><p>I am getting close to releasing my first native Tvserver plugin for TvWishlist (thanks again for your help on tha native sql queries, which works great now), but still do have a couple of questions left:</p><p>(I am still using the official release of MP2alfa3 with one single DVB-S card)</p><p></p><p><strong>1) Problem in GetConflictingSchedules in ScheduleManagement.cs</strong></p><p>I do not understand how this function should work</p><p>The line</p><p>IEnumerable<Card> cards = CardManagement.ListAllCards(CardIncludeRelationEnum.None); //SEB</p><p>in private static bool AssignSchedulesToCard causes that every schedule cannot be assigned to a card.</p><p>If i replace it (what i did in my plugin) by</p><p>IList<Card> cards = CardManagement.ListAllCards(); //huha</p><p>everything works fine.</p><p>With the original line i had always a false return from the method CanViewTvChannel(Card card, int channelId) in CardManagement.</p><p>The card.ChannelMaps were always null.</p><p>When i replaced it with</p><p>IList<Card> cards = CardManagement.ListAllCards();</p><p>the method returned the correct value and everything is working as expected.</p><p></p><p><strong>2) Titan Skin</strong></p><p>The titan skin is ignoring my TvWishList picture in TvWishListMP2\Skin\default\images\55b7087f-58c4-419a-bdc7-119753aa8bfc.png</p><p>this works with fine with the Reflexion skin and the Rising Skin. Is there anything else needeed to overcome this?</p><p></p><p><strong>3) Hostname/IPaddress for multiseat configuration</strong></p><p>Is there an easy way to get the ipaddress of the MP2 server computer from the client plugin?</p><p>In the first release i will use for the native TV provider my named pipes to communicate between plugin and server. I could force the user to give the ip address in a setting, but it would be much more user friendly if this address would be provided. Once i understand more of the UPnP service I plan to change.</p><p></p><p><strong>4) Communication Concept between native tv server plugin and a client</strong></p><p>I studied the example of the SlimTv client and how the communication with the MP2 server is done here via UPnP to the client. If I need now an extension for my tvserver plugin, do i need to write my own own service like SlimTv.Service and use UPnP? For simple communication could I use the MP2 message concept between the tvserver plugin and the client plugin? What would be the recommended concept?</p><p>I plan to study more thew UPnP concept described by morpheus_xxx in:</p><p></p><p> All access to settings is done via the ISettingsManager service. It can be used to serialize any class as XML, applying default values, store it per-machine or per-user base.</p><p> An UPnP-service (ServerSettingsService) exposes "Get/Set" of settings in a generic way (<a href="https://github.com/MediaPortal/Medi...ttings.Service/UPnP/ServerSettingsImpl.cs#L36" target="_blank">https://github.com/MediaPortal/Medi...ttings.Service/UPnP/ServerSettingsImpl.cs#L36</a>, so simple but powerful)</p><p> The Client loads settings from this service (using <a href="https://github.com/MediaPortal/Medi...ttings.Client/UPnP/ServerSettingsProxy.cs#L33" target="_blank">https://github.com/MediaPortal/Medi...ttings.Client/UPnP/ServerSettingsProxy.cs#L33</a>)</p><p> An example configuration class for server-importer-settings is here: <a href="https://github.com/MediaPortal/Medi...els/ServerImporterWorkerSetupModel.cs#L47-L80" target="_blank">https://github.com/MediaPortal/Medi...els/ServerImporterWorkerSetupModel.cs#L47-L80</a></p><p> When settings are changed, they are sent back to server where they are applied (can be done immediately, because there is a message based "SettingsChangeWatcher" that notifies you about changes)</p><p></p><p>Is there a recommended way to send messages between a native tvserver plugin and the tv server setup? Should I use the Mp2 messaging service here?</p><p></p><p><strong>5) Performance of native tvserver and sql data base</strong></p><p>i realized that the performance of my plugin with the native tvserver is a lot slower than the MP1 plugin and i saw some posts about a new SQLite database. Is it a correct understanding that the SlimTv client will be adopted to the new SQLite database? I guess a major part of the perforamnce problem is due to my wrapper class and using named pipes instead of the UPnP service which I plan to change next in near future.</p></blockquote><p></p>
[QUOTE="huha, post: 1042213, member: 63847"] I am getting close to releasing my first native Tvserver plugin for TvWishlist (thanks again for your help on tha native sql queries, which works great now), but still do have a couple of questions left: (I am still using the official release of MP2alfa3 with one single DVB-S card) [B]1) Problem in GetConflictingSchedules in ScheduleManagement.cs[/B] I do not understand how this function should work The line IEnumerable<Card> cards = CardManagement.ListAllCards(CardIncludeRelationEnum.None); //SEB in private static bool AssignSchedulesToCard causes that every schedule cannot be assigned to a card. If i replace it (what i did in my plugin) by IList<Card> cards = CardManagement.ListAllCards(); //huha everything works fine. With the original line i had always a false return from the method CanViewTvChannel(Card card, int channelId) in CardManagement. The card.ChannelMaps were always null. When i replaced it with IList<Card> cards = CardManagement.ListAllCards(); the method returned the correct value and everything is working as expected. [B]2) Titan Skin[/B] The titan skin is ignoring my TvWishList picture in TvWishListMP2\Skin\default\images\55b7087f-58c4-419a-bdc7-119753aa8bfc.png this works with fine with the Reflexion skin and the Rising Skin. Is there anything else needeed to overcome this? [B]3) Hostname/IPaddress for multiseat configuration[/B] Is there an easy way to get the ipaddress of the MP2 server computer from the client plugin? In the first release i will use for the native TV provider my named pipes to communicate between plugin and server. I could force the user to give the ip address in a setting, but it would be much more user friendly if this address would be provided. Once i understand more of the UPnP service I plan to change. [B]4) Communication Concept between native tv server plugin and a client[/B] I studied the example of the SlimTv client and how the communication with the MP2 server is done here via UPnP to the client. If I need now an extension for my tvserver plugin, do i need to write my own own service like SlimTv.Service and use UPnP? For simple communication could I use the MP2 message concept between the tvserver plugin and the client plugin? What would be the recommended concept? I plan to study more thew UPnP concept described by morpheus_xxx in: All access to settings is done via the ISettingsManager service. It can be used to serialize any class as XML, applying default values, store it per-machine or per-user base. An UPnP-service (ServerSettingsService) exposes "Get/Set" of settings in a generic way ([url]https://github.com/MediaPortal/Medi...ttings.Service/UPnP/ServerSettingsImpl.cs#L36[/url], so simple but powerful) The Client loads settings from this service (using [url]https://github.com/MediaPortal/Medi...ttings.Client/UPnP/ServerSettingsProxy.cs#L33[/url]) An example configuration class for server-importer-settings is here: [url]https://github.com/MediaPortal/Medi...els/ServerImporterWorkerSetupModel.cs#L47-L80[/url] When settings are changed, they are sent back to server where they are applied (can be done immediately, because there is a message based "SettingsChangeWatcher" that notifies you about changes) Is there a recommended way to send messages between a native tvserver plugin and the tv server setup? Should I use the Mp2 messaging service here? [B]5) Performance of native tvserver and sql data base[/B] i realized that the performance of my plugin with the native tvserver is a lot slower than the MP1 plugin and i saw some posts about a new SQLite database. Is it a correct understanding that the SlimTv client will be adopted to the new SQLite database? I guess a major part of the perforamnce problem is due to my wrapper class and using named pipes instead of the UPnP service which I plan to change next in near future. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Featured Plugins
TvWishList
Plugin: TvWishList for MP2
Contact us
RSS
Top
Bottom