MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Community Plugins


Community Plugins TV-Server Plugins created from users for users, can be found here.

Reply
 
Thread Tools Display Modes
Old 2007-10-04, 19:10   #91 (permalink)
Portal Member
 
THDBASED's Avatar
 
Join Date: Jan 2006
Posts: 468
Thanks: 72
Thanked 2 Times in 2 Posts

Country:

My System

Default

Exellent work!! Keep up and many thanks...
THDBASED is offline   Reply With Quote
Old 2007-10-04, 19:27   #92 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,251
Thanks: 30
Thanked 152 Times in 89 Posts

Country:

My System

Default

Quote:
Originally Posted by dvdfreak View Post
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 ...
and-81 is offline   Reply With Quote
Old 2007-10-04, 20:40   #93 (permalink)
Portal Member
 
dvdfreak's Avatar
 
Join Date: Jun 2006
Posts: 642
Thanks: 0
Thanked 49 Times in 32 Posts

Country:

My System

Default

Quote:
Originally Posted by and-81 View Post
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...

Last edited by dvdfreak; 2007-10-04 at 21:04.
dvdfreak is offline   Reply With Quote
Old 2007-10-05, 07:31   #94 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 3,745
Thanks: 98
Thanked 137 Times in 109 Posts


Default

Quote:
Originally Posted by dvdfreak View Post
Quote:
Originally Posted by and-81 View Post
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.
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is online now   Reply With Quote
Old 2007-10-05, 08:46   #95 (permalink)
Portal Member
 
dvdfreak's Avatar
 
Join Date: Jun 2006
Posts: 642
Thanks: 0
Thanked 49 Times in 32 Posts

Country:

My System

Default

Quote:
Originally Posted by tourettes View Post
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.

Last edited by dvdfreak; 2007-10-05 at 08:50.
dvdfreak is offline   Reply With Quote
Old 2007-10-05, 12:00   #96 (permalink)
Portal Member
 
THDBASED's Avatar
 
Join Date: Jan 2006
Posts: 468
Thanks: 72
Thanked 2 Times in 2 Posts

Country:

My System

Default

Quote:
Originally Posted by dvdfreak View Post
Anyway, bottom line (IMHO): it would be nicer (in the long run) if TVE3 would simply use TvScheduler instead of the other way around.
I second this! If it is better than the existing engine why not use it!
THDBASED is offline   Reply With Quote
Old 2007-10-05, 12:39   #97 (permalink)
Portal Tester
 
The_Stig's Avatar
 
Join Date: Apr 2005
Posts: 724
Thanks: 20
Thanked 2 Times in 2 Posts

My System

Default

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.
__________________
Some say he works as a tester for Team Mediaportal and some say that he smells bugs, even before they are written into the Code. All we know is, he's called
The Stig.
The_Stig is offline   Reply With Quote
Old 2007-10-05, 13:16   #98 (permalink)
Portal Member
 
dvdfreak's Avatar
 
Join Date: Jun 2006
Posts: 642
Thanks: 0
Thanked 49 Times in 32 Posts

Country:

My System

Default

Quote:
Originally Posted by The_Stig View Post
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!
dvdfreak is offline   Reply With Quote
Old 2007-10-05, 17:26   #99 (permalink)
Portal Member
 
dvdfreak's Avatar
 
Join Date: Jun 2006
Posts: 642
Thanks: 0
Thanked 49 Times in 32 Posts

Country:

My System

Default

Has anyone tried Big_Kev's webinterface with TvScheduler yet (http://forum.team-mediaportal.com/sh...&postcount=164)?

I haven't had a chance myself yet, mostly due to my broken laptop. But perhaps someone else tried it out?
dvdfreak is offline   Reply With Quote
Old 2007-10-05, 18:22   #100 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,251
Thanks: 30
Thanked 152 Times in 89 Posts

Country:

My System

Default

Yep, it's really good.
and-81 is offline   Reply With Quote
Reply

Bookmarks

Tags
rulebased, service, tvscheduler

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 Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rule Based Post Processing NewUser General Support 6 2008-02-27 14:37
First beta of rule-based scheduler has been uploaded dvdfreak Development 0 2007-09-19 15:05
One remote to rule them all? fathead General Support 5 2006-01-06 18:37
Cant record using the scheduling feature martyyn General Support 3 2005-12-26 14:32


All times are GMT +1. The time now is 13:42.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden