Schedule Recordings (1 Viewer)

walts81

Portal Member
July 11, 2006
9
0
Springfield, IL USA
I'm writing a client for the new TVEngine and using the following code to create a recording schedule but it doesn't work. Any ideas why? All passed-in parameters contain valid values at runtime.

Code:
tveBusLayer.Schedule(tveChannel.idChannel, tveProgram.idProgram, tveProgram.StartTime, tveProgram.EndTime, (int)scheduleType);

Thanks,
Josh
 

gemx

Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    You have to notify the scheduler also of the new schedule if i remeber correctly. Just have a look at the sources of TvPlugin.
    Don't have them at hand at the moment
     

    walts81

    Portal Member
    July 11, 2006
    9
    0
    Springfield, IL USA
    Ok, I can't seem to figure out how to do that. I looked in TvDatabase, TvControl, and TvLibrary and can't find a "scheduler" anywhere. Also can't find the source to the tv plugin anywhere. Got any links?

    Thanks,
    Josh
     

    Maschine

    Retired Team Member
  • Premium Supporter
  • June 15, 2004
    768
    86
    Germany
    Home Country
    Germany Germany
    Here's a sample:

    Code:
            //Program details by id
            Program p = Program.Retrieve(idProgram);
            //New schedule for the chosen program
            Schedule newSchedule = new Schedule(p.IdChannel, p.Title, p.StartTime, p.EndTime);
            //Save to db
            newSchedule.Persist();
            //Notify TVserver of new schedule
            RemoteControl.Instance.OnNewSchedule();
     

    Users who are viewing this thread

    Top Bottom