| |||||||
| Development You want to code something for the TV-Server? Share it in here! |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member Join Date: Jul 2006 Location: Springfield, IL USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
| 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); Josh Last edited by walts81; 2007-04-21 at 14:50. |
| | |
| |
| | #2 (permalink) |
| Portal Developer Join Date: Oct 2006 Age: 32
Posts: 1,210
Thanks: 20
Thanked 172 Times in 90 Posts
Country: | 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
__________________ ACCENT HT-100 | 2x16 VFD | ADM Athlon 64 3500+ | Win XP SP2 | SkyStar 2 DVB-S PCI | TT connect S2-3600 |
| | |
| | #3 (permalink) |
| Portal Member Join Date: Jul 2006 Location: Springfield, IL USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
| 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 |
| | |
| | #4 (permalink) |
| Portal Developer Join Date: Jun 2004 Location: Germany
Posts: 503
Thanks: 7
Thanked 3 Times in 3 Posts
Country: | 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();
|
| | |
![]() |
| Bookmarks |
| Tags |
| schedule |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PRE/POST record times cause schedule clashes for same named recordings. | SciDoctor | pre 1.0 RC1 | 7 | 2007-03-07 22:49 |
| Schedule recording | Zeljko | Get Support | 1 | 2007-02-18 22:03 |
| "Watch-dog" to schedule future recordings? | petsa | support | 1 | 2007-01-24 09:44 |
| How do I set up TV Schedule? | steven-g | xmlTV | 3 | 2006-12-20 22:26 |
| Stop recordings from scheduled Recordings. | ASiDiE | Improvement Suggestions | 5 | 2006-03-18 08:37 |