NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 14 15 16 17 18 … 93 Next »
Non-PC clients

 
  • 0 Vote(s) - 0 Average
Non-PC clients
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#1
2011-04-20, 03:07 PM
Not having access to such a device, I have no idea how they work...

I was thinking of doing something that would rewrite a skin file based on the user's actions. On a normal PC (or even a client PC) this shouldn't be a problem, because the skin will be in a writeable location.

But what happens with other clients (popcorn hours and wotnot)? Can they even *have* plugins installed? Or do they just run "core" NPVR?

Iain
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#2
2011-04-20, 03:49 PM
Other clients such as the PCH can indeed run plugins. There will be a seperate instance of NextPVR.exe running on the server for each active PCH, so I don't see any reason why you couldn't rewrite skin files.

Your problems will start when clients make conflicting changes...:eek: Maybe your orginal idea of having multiple skin files would be a better way to go.

Alex
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#3
2011-04-20, 04:23 PM
This was for a different thing (within the same plugin), but that was my worry, that different clients (ie users) would end up with conflicts.

Thinking about it though, the same thing must happen with any setting if it goes into config.xml, because both server and client have to share that?

Iain
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#4
2011-04-20, 05:22 PM
My plugin uses it's own config with seperate nodes for each client.

Alex
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#5
2011-04-20, 07:28 PM
How do you identify a client? With the following perhaps?

Code:
PluginHelperFactory.GetPluginHelper().GetClientIdentifier()


What sort of results does it return? I see "PC" for my current install, but can't test a PC client at the moment to see what it would say for that, never mind a PCH.

Iain
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#6
2011-04-20, 09:37 PM
I use
Code:
myClientID = PluginHelperFactory.GetPluginHelper().GetClientIdentifier();
if (myClientID == "PC")
    myClientID = myClientID + "-" + System.Environment.MachineName;
which returns 'PC-SONY02' for my server PC (AFAIK GetClientIdentifier() returns PC for a PC client) and 'MVP-000DFE237D4E' for an MVP or a PCH.

Alex
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,199
Threads: 958
Joined: May 2006
#7
2011-04-20, 09:43 PM
It returns MVP- or PCH- followed by the MAC address of the device in capitals ie

PCH-0006DC41CE68

I think rewriting the config.xml from a client is risky, too many posts about the odd config.xml in System32 folder I guess. My plugins write to their own XML file and only use the Windows interface in config not from the 10' interface to update it.

As for the skin, depending on what you are writing, I'd be worried about creating something that would be hard for people who write custom skins to maintain.

Martin
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,641
Threads: 148
Joined: Mar 2006
#8
2011-04-20, 09:49 PM
imilne Wrote:Not having access to such a device, I have no idea how they work...
But what happens with other clients (popcorn hours and wotnot)? Can they even *have* plugins installed? Or do they just run "core" NPVR? Iain

I am constantly amazed how few users have found out what the NMT's when connected to NextPVR will do :confused::confused:

Way back in the dim distant dark ages (well about six or seven years ago) when I was first setting up my first PVR after much reading I was wondering why most users weren't using extenders (MVP's in those days) instead of PC's direct &/or PC clients??

I haven't changed my view on this these days (NMT's now), I still can't see why you would piss around trying to get codecs etc to play ball & have a noisy PC somewhere near the TV when you can hook up a silent box that only costs $105US + freight etc. that is tiny by the TV then run a network cable & have 99% of NextPVR operational on you TV in about 20 minutes, it will even downscale HD stuff to SD if you have a crap old TV etc. etc. etc..

BTW I have NMT's if you hadn't gathered so I can test that stuff for you if you want during development of the plugin.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#9
2011-04-21, 05:56 AM
mvallevand Wrote:As for the skin, depending on what you are writing, I'd be worried about creating something that would be hard for people who write custom skins to maintain.

I was planning on allowing the user to turn fanart on or off on a per list-view basis (which would be per skin). I figured I could just (re)write a <skin fanart=true> entry for them or something. I've changed my mind now after this thread so will do it elsewhere. Perhaps in a DB with primary keys based on the client IDs.

Iain
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#10
2011-04-21, 05:59 AM
Jaggy Wrote:I still can't see why you would piss around trying to get codecs etc to play ball & have a noisy PC somewhere near the TV when you can hook up a silent box that only costs $105US + freight etc. that is tiny by the TV then run a network cable & have 99% of NextPVR operational on you TV in about 20 minutes, it will even downscale HD stuff to SD if you have a crap old TV etc. etc. etc..
There's me, the wife, and a baby. One TV, one very silent PC, and lots of expensive electricity. The fewer devices the better Big Grin

Jaggy Wrote:BTW I have NMT's if you hadn't gathered so I can test that stuff for you if you want during development of the plugin.

That would be great. Might even have something you could look at by this weekend if all goes to plan!

Iain
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Detecting clients imilne 2 1,506 2012-01-26, 10:45 PM
Last Post: mvallevand
  Synchronizing playback between clients Exelion 2 1,610 2009-08-30, 05:54 PM
Last Post: Exelion

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

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

Linear Mode
Threaded Mode