For The Record - The rule-based scheduling suite (5 Viewers)

THDBASED

Portal Pro
January 30, 2006
469
2
Home Country
Belgium Belgium
Exellent work!! Keep up and many thanks...
 

and-81

Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    Another thing I'd like to start looking at, is what patches/changes would be required to the core code of TVE3 to make it query TvScheduler about what needs to be recorded, instead of only the internal TVE3 database. This would be the first big step for integration, since that would mean program would really be recorded, and not just appear on your screen for fun ;)

    You could probably make a TVE3 plugin that would provide the link between the two ...
     

    dvdfreak

    Portal Pro
    June 13, 2006
    979
    178
    Home Country
    Belgium Belgium
    You could probably make a TVE3 plugin that would provide the link between the two ...

    Yes, perhaps that could work too. Haven't looked at the plugin API, can I start a recording through it and be notified when it ends? Off the top of my head that would be the main functionality I'd need. I'll have a look...

    EDIT:

    Well, there's not really a straightforward API to do what I want, but it looks like I could basically "steal" the code from TvEngine3\TVLibrary\TvService\Scheduler\Scheduler.cs, more specifically the code in its StartRecord() method....

    To be continued... :) Anyway, want to get my own backend stuff working properly in the first place...
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    You could probably make a TVE3 plugin that would provide the link between the two ...

    Yes, perhaps that could work too. Haven't looked at the plugin API, can I start a recording through it and be notified when it ends? Off the top of my head that would be the main functionality I'd need. I'll have a look...

    Wouldn't that cause some issues? I.e. you would have to implement yourself the powerscheduler to be able to wake up the HTPC to do it's recordings. That would cause duplicate code. and most likely some issues when there are two components doing the same thing.

    I think it would be better just to provide recording times to the tve3 thru the plugin and let the engine itself handle all other stuff.
     

    dvdfreak

    Portal Pro
    June 13, 2006
    979
    178
    Home Country
    Belgium Belgium
    Wouldn't that cause some issues? I.e. you would have to implement yourself the powerscheduler to be able to wake up the HTPC to do it's recordings. That would cause duplicate code. and most likely some issues when there are two components doing the same thing.

    I think it would be better just to provide recording times to the tve3 thru the plugin and let the engine itself handle all other stuff.

    Hmmm, you mean I could create "fake" manual TVE3 schedules that correspond to each of the upcoming recordings in TvScheduler?

    I suppose that's an option, but then the priority setting would be lost since I don't think TVE3 has a schedule priority (or perhaps it does and I missed it). Unless I detect overlaps myself and only schedule the higher-priority program, possibly an option...

    Also I'd like TvScheduler to be notified when a recording is finished, so it can keep track of recorded episodes per schedule, but perhaps that's still doable by hooking up to some recording-ended event in TVE3.

    Anyway, bottom line (IMHO): it would be nicer (in the long run) if TVE3 would simply use TvScheduler instead of the other way around.
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,175
    428
    There is one simple reason: It could break a lot of other stuff. I don't say that it necessary does. But this would be a huge change and this is always dangerous. So what I've heard from the devs and imho too its the best way round through a plugin as a first step. After this runs good, we can think about other options.
     

    dvdfreak

    Portal Pro
    June 13, 2006
    979
    178
    Home Country
    Belgium Belgium
    There is one simple reason: It could break a lot of other stuff. I don't say that it necessary does. But this would be a huge change and this is always dangerous. So what I've heard from the devs and imho too its the best way round through a plugin as a first step. After this runs good, we can think about other options.

    Sure, that's why I said "in the long run" :)

    I'm still waiting to see if some MP-plugin developer volunteers to write new TV Guide and Scheduling plugins (based on the existing code in TVE3's plugin) to talk to TvScheduler ;) I'll be happy to provide you with all the code that's needed to talk to the WCF services. Come on, eternal fame awaits you! :D
     

    Users who are viewing this thread

    Top Bottom