Reply to thread

Hello,

if someone is searching a solution in future here is my code for a new recording:

 

TvBusinessLayer layer = new TvBusinessLayer();

        int preInterval = Int32.Parse(layer.GetSetting("preRecordInterval", "5").Value);

        int postInterval = Int32.Parse(layer.GetSetting("postRecordInterval", "5").Value);

        Schedule rec = new Schedule(this.idChannel, this.title, this.startTime, this.endTime);

        rec.ScheduleType = (int)TvDatabase.ScheduleRecordingType.Once;

        rec.PreRecordInterval = preInterval;

        rec.PostRecordInterval = postInterval;

        rec.Persist();

 

Bye.

Nu


Top Bottom