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 Talk
Monitor shuts down after 10 minutes of inactivity
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="mfalk" data-source="post: 171983" data-attributes="member: 22403"><p>Hi All</p><p></p><p>I just looked at the code again, and i'm only implementing IPlugin and ISetupForm so as far as i can see, it is a process plugin only, and should not display the menuitem.</p><p></p><p>Regarding that it is not working for radio and music is also pretty strange. The code is pretty straightforward. I'm adding handlers for the MediaPortal.Player.g_Player.PlayBackStarted,MediaPortal.Player.g_Player.PlayBackEnded and MediaPortal.Player.g_Player.PlayBackStopped.</p><p></p><p>In the PlayBackStarted i'm just checking the type:</p><p></p><p>Select Case type</p><p> Case MediaPortal.Player.g_Player.MediaType.Music</p><p> blnDisableThisType = blnMusic</p><p> Case MediaPortal.Player.g_Player.MediaType.Radio</p><p> blnDisableThisType = blnRadio</p><p> Case MediaPortal.Player.g_Player.MediaType.Recording</p><p> blnDisableThisType = blnRecording</p><p> Case MediaPortal.Player.g_Player.MediaType.TV</p><p> blnDisableThisType = blnTV</p><p> Case MediaPortal.Player.g_Player.MediaType.Video</p><p> blnDisableThisType = blnVideo</p><p> End Select</p><p></p><p>(Yes it is actually written in vb.net)</p><p></p><p>Does anybody have any idea why this should not work?</p></blockquote><p></p>
[QUOTE="mfalk, post: 171983, member: 22403"] Hi All I just looked at the code again, and i'm only implementing IPlugin and ISetupForm so as far as i can see, it is a process plugin only, and should not display the menuitem. Regarding that it is not working for radio and music is also pretty strange. The code is pretty straightforward. I'm adding handlers for the MediaPortal.Player.g_Player.PlayBackStarted,MediaPortal.Player.g_Player.PlayBackEnded and MediaPortal.Player.g_Player.PlayBackStopped. In the PlayBackStarted i'm just checking the type: Select Case type Case MediaPortal.Player.g_Player.MediaType.Music blnDisableThisType = blnMusic Case MediaPortal.Player.g_Player.MediaType.Radio blnDisableThisType = blnRadio Case MediaPortal.Player.g_Player.MediaType.Recording blnDisableThisType = blnRecording Case MediaPortal.Player.g_Player.MediaType.TV blnDisableThisType = blnTV Case MediaPortal.Player.g_Player.MediaType.Video blnDisableThisType = blnVideo End Select (Yes it is actually written in vb.net) Does anybody have any idea why this should not work? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
Monitor shuts down after 10 minutes of inactivity
Contact us
RSS
Top
Bottom