NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 43 44 45 46 47 … 93 Next »
getTunerStatus() returns string order by allocation_order index?

 
  • 0 Vote(s) - 0 Average
getTunerStatus() returns string order by allocation_order index?
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#1
2007-05-01, 12:56 PM
When I call getTunerStatus(), the string indeces match up with allocation_order index of the capture source. Why doesn't it use oid index - 1 as the index to match the string item to?

e.g. I have capture1, capture2, and capture3 with oid of 1,2,3 respectively. allocation_order is 0,2,1 respectively. If capture1 is recording, capture2 is sleeping, and capture3 is recording, getTunerStatus() returns a string array of capture1:recording xxx, capture3:recording, capture2Confusedleeping.
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,732
Threads: 767
Joined: Nov 2003
#2
2007-05-01, 04:40 PM
Quote:When I call getTunerStatus(), the string indeces match up with allocation_order index of the capture source. Why doesn't it use oid index - 1 as the index to match the string item to?
Because thats the way I designed it to work. Pretty much everything inside GB-PVR is based on the allocation_order these days.
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#3
2007-05-02, 12:14 AM
The IRecordingSource.Load() function requires the oid. Because I can't get the allocation_order for an oid, I can't match the Load() call to the status returned by getTunerStatus(). Suggestions?
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,732
Threads: 767
Joined: Nov 2003
#4
2007-05-02, 12:19 AM
Quote:The IRecordingSource.Load() function requires the oid
I dont think you can can actually call that though, since its just an interface with no functionality.
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#5
2007-05-02, 01:26 AM
This is part of my understanding my Tuner Status plugin for what can be done. I know you said the hardware name for each capture source was never intended to be exposed or played with. Maybe it's something I can't figure out a way and should give up on?

I'll post a code snippet tonight and explain what I'm doing. It's based on code from the Software Recorded plugin.
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,732
Threads: 767
Joined: Nov 2003
#6
2007-05-02, 01:32 AM
While not all the data you want access to is exposed by the current APIs, there is nothing to stop you querying the database tables to pickup this info. It'll also help you perform your do your allocation_order to oid if you do end up needing this.
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#7
2007-05-02, 01:49 AM
I thought about adding SQL querying code. Is there support for this in GB-PVR, or do I need to use C# APIs?
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,732
Threads: 767
Joined: Nov 2003
#8
2007-05-02, 03:38 AM
You'd just need to use the standard .net data access classes.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  is there a service?method which returns listings for multiple channels? reven 16 7,112 2022-04-11, 04:30 PM
Last Post: mandai
  API request returns xml on error scJohn 4 1,948 2020-08-25, 05:41 PM
Last Post: sub
  Render order in Videos Jaggy 13 4,391 2011-10-12, 11:20 AM
Last Post: mvallevand
  TV Guide Element Render order Northpole 0 1,295 2010-10-24, 04:11 PM
Last Post: Northpole
  getTunerStatus() herrmannj 2 1,592 2009-09-24, 06:27 AM
Last Post: herrmannj
  ScheduleHelper.SheduleRecording returns Nothing MaidenQuebec 7 3,084 2009-03-20, 12:21 PM
Last Post: Ernie-c
  PluginHelper.GetSkinRootDirectory(); returns "skin" and not "skin2" reven 6 2,544 2009-02-11, 03:15 PM
Last Post: sub
  Tunging string question. whurlston 3 1,840 2009-01-02, 04:51 PM
Last Post: whurlston
  PluginHelperFactory.getPluginHelper().GetAudioPlay List sometimes returns a NULL ralphy 7 2,266 2007-11-05, 03:46 PM
Last Post: sub
  PluginHelperFactory.getPluginHelper().IsPlayListPa used returns false ralphy 1 1,254 2007-11-04, 03:21 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode