MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server 1 » Help on Development » Development


Development You want to code something for the TV-Server? Share it in here!

Reply
 
LinkBack Thread Tools Display Modes
Old 2007-04-20, 20:31   #1 (permalink)
Portal Member
 
Join Date: Jul 2006
Location: Springfield, IL USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts


Default Schedule Recordings

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

Last edited by walts81; 2007-04-21 at 14:50.
walts81 is offline   Reply With Quote
Old 2007-04-21, 00:18   #2 (permalink)
Portal Developer
 
gemx's Avatar
 
Join Date: Oct 2006
Age: 32
Posts: 1,210
Thanks: 20
Thanked 172 Times in 90 Posts

Country:

My System

Default

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
gemx is offline   Reply With Quote
Old 2007-04-26, 15:59   #3 (permalink)
Portal Member
 
Join Date: Jul 2006
Location: Springfield, IL USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts


Default

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
walts81 is offline   Reply With Quote
Old 2007-04-26, 16:12   #4 (permalink)
Portal Developer
 
Join Date: Jun 2004
Location: Germany
Posts: 503
Thanks: 7
Thanked 3 Times in 3 Posts

Country:


Default

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();
Maschine is offline   Reply With Quote
Reply

Bookmarks

Tags
schedule

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT +1. The time now is 04:43.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress