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
UPnP / DLNA Media Server
UPnP / DLNA Media Server for MediaPortal 2
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="henso" data-source="post: 914162" data-attributes="member: 119106"><p>I don't think that would be practical. Some of the physical devices are able to see all the published devices and there could be many if there is one per manufacturer.</p><p>I propose a solution as follows (in DvDevice.cs):</p><p>[CODE]</p><p>public delegate void GetDeviceInfoForEndpointDlgt(EndpointConfiguration config, ref ILocalizedDeviceInformation deviceInfo);</p><p>public class DvDevice : IDisposable</p><p>{</p><p> public GetDeviceInfoForEndpointDlgt DeviceInfoHook = null;</p><p> ...</p><p> internal void AddDeviceDescriptionsRecursive(XmlWriter writer, EndpointConfiguration config, CultureInfo culture)</p><p> {</p><p> ...</p><p> GetDeviceInfoForEndpointDlgt dih = DeviceInfoHook;</p><p> ILocalizedDeviceInformation deviceInformation = null;</p><p> if (dih != null)</p><p> dih(config, ref deviceInformation);</p><p> if (deviceInformation == null)</p><p> {</p><p> deviceInformation = _deviceInformation;</p><p> }</p><p> ...</p><p> }</p><p> ...</p><p>}</p><p>[/CODE]</p><p> </p><p>I can then link device information to endpoint configuration and saved it a file. Next time the device is published this information is already loaded and then I can override the device information sent depending on endpoint configuration. Would this be possible? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite26" alt=":unsure:" title="Unsure :unsure:" loading="lazy" data-shortname=":unsure:" /></p><p> </p><p></p><p> </p><p>The device information needed will of course be defined in a config file, so no recompiles should be needed. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p></blockquote><p></p>
[QUOTE="henso, post: 914162, member: 119106"] I don't think that would be practical. Some of the physical devices are able to see all the published devices and there could be many if there is one per manufacturer. I propose a solution as follows (in DvDevice.cs): [CODE] public delegate void GetDeviceInfoForEndpointDlgt(EndpointConfiguration config, ref ILocalizedDeviceInformation deviceInfo); public class DvDevice : IDisposable { public GetDeviceInfoForEndpointDlgt DeviceInfoHook = null; ... internal void AddDeviceDescriptionsRecursive(XmlWriter writer, EndpointConfiguration config, CultureInfo culture) { ... GetDeviceInfoForEndpointDlgt dih = DeviceInfoHook; ILocalizedDeviceInformation deviceInformation = null; if (dih != null) dih(config, ref deviceInformation); if (deviceInformation == null) { deviceInformation = _deviceInformation; } ... } ... } [/CODE] I can then link device information to endpoint configuration and saved it a file. Next time the device is published this information is already loaded and then I can override the device information sent depending on endpoint configuration. Would this be possible? :unsure: The device information needed will of course be defined in a config file, so no recompiles should be needed. ;) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Featured Plugins
UPnP / DLNA Media Server
UPnP / DLNA Media Server for MediaPortal 2
Contact us
RSS
Top
Bottom