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
Development
Improvement Suggestions
Master Media Database implementation/design. Comments please
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="MariachiElf" data-source="post: 55030" data-attributes="member: 20753"><p>I think I just figured out what to do about the problem of what are the exact details of how to associate tags to Media Elements.</p><p></p><p>I was putting the burden on the UI Plugins to manage the UI interaction for inserting/updating tags. However that's not their job, and that's a lot of boilerplate code duplicated everywhere. UI Plugins shouldn't make calls to the InputDevice Plugins directly. They should make calls to the central manager. Just like the Input Device Plugins don't really care what or how many UI Plugins there are, UI Plugins don't want nor care to keep track of Input Device Plugins.</p><p></p><p>They simply make an API call to the central manager like AssociateTag( mediaElement, Command ).</p><p></p><p>The central manager will then know how to interrogate for each inputDevice and present the list to the end user and after the end user chooses their device it can make an API call to the Input Device Plugin UI to request a Tag, then make the API to call the Input Device Plugin again to insert or update the mediaElement and tag/Command association.</p><p></p><p></p><p>The more I think about this central manager piece, the more I begin to believe that this "central manager" role really belongs as part of the core of MP.</p></blockquote><p></p>
[QUOTE="MariachiElf, post: 55030, member: 20753"] I think I just figured out what to do about the problem of what are the exact details of how to associate tags to Media Elements. I was putting the burden on the UI Plugins to manage the UI interaction for inserting/updating tags. However that's not their job, and that's a lot of boilerplate code duplicated everywhere. UI Plugins shouldn't make calls to the InputDevice Plugins directly. They should make calls to the central manager. Just like the Input Device Plugins don't really care what or how many UI Plugins there are, UI Plugins don't want nor care to keep track of Input Device Plugins. They simply make an API call to the central manager like AssociateTag( mediaElement, Command ). The central manager will then know how to interrogate for each inputDevice and present the list to the end user and after the end user chooses their device it can make an API call to the Input Device Plugin UI to request a Tag, then make the API to call the Input Device Plugin again to insert or update the mediaElement and tag/Command association. The more I think about this central manager piece, the more I begin to believe that this "central manager" role really belongs as part of the core of MP. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Master Media Database implementation/design. Comments please
Contact us
RSS
Top
Bottom