I am looking at writing a plugin for TV Scheduler to use DVB Dream as a recorder. The main TV Scheduler thread can be found here: http://forum.team-mediaportal.com/devel ... ice-26158/
TV Scheduler started as a low-level TV guide and scheduling system with a simple MediaPortal plugin, but is now "growing" a plugin interface to allow any type of recorder to provide the recording services, while TV Scheduler itself takes care of all the rest.
Basically, a plugin should implement three things: AllocateCard(), StartRecording() and AbortRecording().
Simple enough

So here are some questions I hope someone can answer:
1) AllocateCard()
The purpose of this method is to have a plugin tell TV Scheduler if it can record a channel and "allocate" a card for that recording. Now, DVB Dream can only support one card, right? But with the PIP support I understand that it can easily record more than one channel, as long as they are on the same transponder.
So would it be easy enough to implement this method by parsing the channel.lst file? Or by any other API? Detecting what channels are on the same transponder and have AllocateCard return succesfully for a channel within the same stream as another channel that needs to be recorded?
2) StartRecording()
When this method is sent the card that was previously allocated is sent in as an argument. All other recording information is sent as well, so basically, all that's needed is that DVB Dream is instructed to tune to the required channel and start recording it for a given duration.
My question here is: how easy is it to instruct DVB Dream to start this recording, and does this code need to deal with PIP stuff, or is DVB Dream smart enough to record a second channel on the same stream in PIP?
Also, when two or more channels on the same stream are recorded, I assume they DO end up in separate .ts files?
3) AbortRecording()
This should be quite easy, the plugin would simply be instructed to abort a recording in progress. I assume it's easy enough to tell DVB Dream to end a recording?
This is all going to be written in C#? So is it best to use the dreamstar.exe or use SendMessage?
Also, to support more than one recording card I assume DVB Dream needs to be installed a second, third, etc... time to a different directory? So instead of talking to just one DVB Dream my plugin should talk to several and consider these to each be a "card"?
Thanks in advance for any help!