NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 12 13 14 15 16 … 93 Next »
Tuner plugin - cross link

 
  • 0 Vote(s) - 0 Average
Tuner plugin - cross link
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,783
Threads: 954
Joined: May 2006
#11
2011-09-10, 12:09 AM
Ok I am back to being confused. This is what I am seeing for name in the database, when I try to have my plugin return the same string as my HDPVR

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#12
2011-09-10, 12:28 AM
The name and resource name are not the same thing. The built-in recording plugins do typically use the name as part of the resource name, but they're not the same thing. The resource name is just supposed to return a string that uniquely identifies a resource, and that string could be pretty much anything. For example, you could a name of "Hauppauge HDPVR" in the database, but when asked for the resource name it might return a string like: "RESOURCE:" + crossbarFilter + ":" + deviceInstance, or it might return "<MAC-ADDRESS>:<Serial#>" or some other string that uniquely identifies the hardware.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,783
Threads: 954
Joined: May 2006
#13
2011-09-10, 12:32 AM
Ok closer, what function/property returns the name?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#14
2011-09-10, 12:41 AM
There is a Name attribute on a CaptureSource class that returns it's name. This isnt directly part of the resource name though, so not particularly useful for generating the resource name. For example, with the HDPVR, its capture source has a name "Hauppauge HDPVR", but this is not directly part of the resource name. Instead it uses the crossbar filtername and tuner number as the core component of the resource name.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,783
Threads: 954
Joined: May 2006
#15
2011-09-10, 12:54 AM
I do understand the resource name now and I can get it I am trying to construct something the will show up in Devices grid in the Device column.

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,783
Threads: 954
Joined: May 2006
#16
2011-09-10, 03:30 AM
Maybe this will explain what I mean a little better.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#17
2011-09-10, 03:50 AM
Ah, for IRecorder plugins, it does use the result of GetResourceName() for the initial name for the capture source. If you're wanting to provide something more readible, I can probably change the interface for 2.4.x to add some GetName() or similar.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,783
Threads: 954
Joined: May 2006
#18
2011-09-10, 05:23 AM
Yes thanks, that would be a lot more user friendly.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  FM tuner support in NextPVR? Goongyae 2 1,319 2022-11-23, 01:22 PM
Last Post: mvallevand
  PIP plugin for Kodi sgilani 2 2,736 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,296 2020-11-14, 08:01 PM
Last Post: sub
  Tuner status & disk usage mikaelgu 2 2,880 2017-04-10, 04:51 PM
Last Post: mikaelgu
  Determine Server Tuner/Recorder Status from Console App 27InchSony 13 8,169 2016-12-21, 05:03 AM
Last Post: mvallevand
  VIdeo playback from plugin mvallevand 5 3,421 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,861 2014-11-14, 02:05 AM
Last Post: Benoire
  What causes a new tuner to be used services/live?channel= psycik 2 2,254 2014-02-04, 05:32 PM
Last Post: psycik
  webapi and silly cross site scripting stuff reven 6 3,015 2014-01-20, 03:06 AM
Last Post: reven
  Tuner plugins and client id mvallevand 2 2,040 2013-07-03, 01:39 AM
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