NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 32 33 34 35 36 … 93 Next »
Output on MVP or PC

 
  • 0 Vote(s) - 0 Average
Output on MVP or PC
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#1
2008-04-21, 10:38 PM
I want my code to behave differently depending on whether output is via an MVP or a PC monitor... is detecting

IEventNotification eventType MVPConnected

a reliable way to do this (or is there another way to tell)

Also, is there a specific eventType for the PCH...
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#2
2008-04-21, 10:49 PM
ACTCMS Wrote:I want my code to behave differently depending on whether output is via an MVP or a PC monitor... is detecting

IEventNotification eventType MVPConnected

a reliable way to do this (or is there another way to tell)

Also, is there a specific eventType for the PCH...

WizUiHelper publishes a method:

WizInfo.isRunningOnMVP()

and is determined based on interface sub supplies via PluginHelper:
Code:
/// <summary>
        /// Is this instance supporting MVP process
        /// </summary>
        /// <returns>True if running on MVP, False if running on PC</returns>
        public static bool isRunningOnMVP()
        {
            string clientID = PluginHelperFactory.getPluginHelper().GetClientIdentifier();
            return clientID.Contains("MVP");
        }

Not sure about the PCH, if the identifier is different, I'd like to know so I could expose another method.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#3
2008-04-21, 10:52 PM
The PCH also appears as an MVP in this respect, with a client identifier that starts with MVP.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#4
2008-04-21, 11:04 PM
Thanks...

Beats me how you guys can respond so fast...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Tuner Plugins - Output folders mvallevand 2 2,079 2013-02-19, 07:45 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode