NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 65 66 67 68 69 … 93 Next »
IRecordingSourceConfiguration.Load

 
  • 0 Vote(s) - 0 Average
IRecordingSourceConfiguration.Load
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#1
2005-10-31, 01:12 PM
Hi,

i'm writing a plugin for a capture source. My config class implements the "IRecordingSourceConfiguration" interface.
There are three methods to manage the settings of the capture source: "Save", "Load" and "Delete". Two of them, "Save" and "Delete", provide a database connection as parameter, but "Load" doesn't?

Maybe I misinterpret the interface, but I have created a new table in the database (similar to BDA_RECORDING_SOURCE and GO7007SB_RECORDING_SOURCE), where I store the settings and values specific to my capture source. Storing works fine, but now I came to the point that those values need to be read out again from the database.

So, my question is, if it is intented to save and load the configuration for an external capture source in the database or not?

-alibert
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#2
2005-10-31, 04:41 PM
I do have a reason for this, but I've only been awake for a couple of minutes, so this reason escapes me at the moment.

Even though I use database for storing my capture sources. I prefer you use XML files (or similar) for saving your capture source configuration. The will save a me potential headaches at upgrade times etc.

What type of recording source are you writing?
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#3
2005-10-31, 05:59 PM
Hi sub and thanks for the quick reply,

sub Wrote:I do have a reason for this, but I've only been awake for a couple of minutes, so this reason escapes me at the moment.

Even though I use database for storing my capture sources. I prefer you use XML files (or similar) for saving your capture source configuration. The will save a me potential headaches at upgrade times etc.

Yes, a xml-configuration was also my second thought and is already in progress.

sub Wrote:What type of recording source are you writing?

I'm writing a plugin for the "dbox2", a digital satellite or cable receiver which can be connected via ethernet. So this will be mainly a streaming client. MythTV or VDR have already plugins for the dbox, too.
The recording part is already done and works quite well, but I still have problems with live tv. As far as I can see, in the interface, the getPreviewGraph function is used for live tv. I've never done things like that, maybe you could give me a hint what to do there.

Another problem is, that the channels of the dbox are represented as hex values (something like "44d00016dcc"). Is it possible to access the functionality of "Map digital channels to epg channels" for that purpose? Translating the hex numbers to integers would result in an overflow.
Currently I use a separate file where the gbpvr source channel numbers are mapped to the hex values.

-alibert
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#4
2005-10-31, 06:15 PM
Quote:As far as I can see, in the interface, the getPreviewGraph function is used for live tv. I've never done things like that, maybe you could give me a hint what to do there.
getPreviewGraph is used for live tv if 'live preview mode' is enabled in the config app. For this to work, you need to construct a nearly complete directshow graph, to which GB-PVR will add the video/audio renderers. The way you'd construct this graph depends on what type of video your getting out of the dbox2.

If you disable live preview mode, then you dont have to do this. Instead you'd just need to record the specified MPEG2 files, and GB-PVR will play them.

Quote:Is it possible to access the functionality of "Map digital channels to epg channels" for that purpose?
Unfortunately this is not really possible. This functionality is pretty tightly bound to my BDA recorder, and has all sorts of internal knowledge about how the BDA recorder is implemented, extra interfaces etc.
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#5
2005-11-01, 04:50 PM
Hi,

some more questions.

(1) The "minutes"-parameter in "startRecording", is it actually used? I'm asking because "stopRecording" is called when a recording is finished, and I don't want to add an extra timer.

(2) The config screen for the recording source is called from within the config app as a modal top-level window. Is there any possibilty to change that so that the config form opens not modal?
I'm askin because the configuration looks at the moment like this, ane one could only map those source channel numbers to the hex values which appear in the gbpvr-config window below.

(3) Is it possible to have multiple audio streams in one muxed file in gbpvr?


-alibert
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#6
2005-11-01, 05:21 PM
Quote:(1) The "minutes"-parameter in "startRecording", is it actually used? I'm asking because "stopRecording" is called when a recording is finished, and I don't want to add an extra timer.
No, is no longer used.

Quote:(2) The config screen for the recording source is called from within the config app as a modal top-level window. Is there any possibilty to change that so that the config form opens not modal?
Sorry, no I wont be changing this.

Quote:(3) Is it possible to have multiple audio streams in one muxed file in gbpvr?
Are you producing MPEG2 program streams? Yes, you can have multiple audio streams, but you cant switch between them at the moment.
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#7
2005-11-12, 09:08 AM
Hi,

another question.
Is it possible to catch something like an event or a callback every time a recording is scheduled on a capture source?
Or would I have to check this via IScheduleHelper.LoadRecordingSchedule() periodically?

I'm asking because I can wake the pc from the dbox by wake on lan, but not vice versa. But it is also possible to add custom timers to the dbox, so i could add a timer for each recording that wakes up the dbox from deep standby.

-alibert
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Way to tell programmatically if channel load in from NPVR has finished... gdogg371 3 2,398 2021-03-11, 03:59 PM
Last Post: mvallevand
  Best way to load settings for NPVR? reven 4 2,166 2012-11-01, 01:13 AM
Last Post: reven
  Error trying to load WebAdmin sixgun 3 2,159 2006-01-13, 02:46 PM
Last Post: sixgun

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

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

Linear Mode
Threaded Mode