MediaPortal Forums HTPC/MediaCenter

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


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

Reply
 
Thread Tools Display Modes
Old 2006-11-01, 17:52   #1 (permalink)
Portal Member
 
Join Date: Jul 2006
Location: Springfield, IL USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts


Default External Plugins???

Is it possible to control the TV engine without making an actual "MediaPortal TV plugin". For instance, I develop plugins for Meedio and would like to make a Meedio plugin control the TV engine. Is this currently possible?

Thanks,
Josh
walts81 is offline   Reply With Quote
Old 2006-11-01, 17:55   #2 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 36
Posts: 1,516
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default

Sure, thats what the tvplugin is doing after all.
You might want to read the development section of the wiki
it contains 2 examples showing how to control the tvserver from your own app

So one can indeed make a meedio or mce 2005 or sagetv plugin
which uses the tvserver
frodo is offline   Reply With Quote
Old 2006-11-01, 18:05   #3 (permalink)
Portal Tester
 
ASiDiE's Avatar
 
Join Date: Jan 2005
Location: USA
Age: 32
Posts: 890
Thanks: 6
Thanked 4 Times in 4 Posts

My System

Default

Instead of writing a plug-in for Meedio to control the TV service... why not just use the plug-in that is already writen for MP... and then with your free time... write your meedio plug-ins for MP! The whole world would be a happier place
__________________
I SEE WHAT YOU DID THERE!
ASiDiE is online now   Reply With Quote
Old 2006-11-01, 18:08   #4 (permalink)
Portal Member
 
Join Date: Jul 2006
Location: Springfield, IL USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by frodo View Post
Sure, thats what the tvplugin is doing after all.
You might want to read the development section of the wiki
it contains 2 examples showing how to control the tvserver from your own app

So one can indeed make a meedio or mce 2005 or sagetv plugin
which uses the tvserver
Yeah, I've been looking at that. But it keeps throwing an error
Code:
RemoteControl.HostName = "localhost";
string databaseConnection = RemoteControl.Instance.DatabaseConnectionString;

//error gets thrown on the following line of code
Gentle.Framework.ProviderFactory.SetDefaultProviderConnectionString(databaseConnection);
Exact error message....
Code:
System.TypeInitializationException: The type initializer for 'Gentle.Framework.ProviderFactory' threw an exception. ---> 
Error: NoConfigStoreFoundUnclassified
Gentle.Common.GentleException: 
FATAL ERROR: No configuration store was found!
Gentle is unable to continue!
The handlers emitted the following error messages:
Unable to create GentleSectionHandler for section named \"gentle\" in file \"C:\\Program Files\\Meedio\\Meedio Essentials\\Meedio.exe.config\".
Unable to create FileHandler for file Gentle.config.
This usually means that the file could not be found in any of the default search locations. The handlers threw the following exceptions:
Error: DeveloperErrorUnclassified
Gentle.Common.GentleException: No configuration file could be located at
Gentle.Common.FileHandler..ctor(String file) at
Gentle.Common.Configurator.AddFileHandler(String configStoreName, String fileName) at
Gentle.Common.Configurator.InitializeHandlers() at
Gentle.Common.Configurator.Configure(String configStoreName, Object instance) at
Gentle.Common.Configurator.Configure(Object instance) at
Gentle.Framework.ProviderRegistry..ctor() at
Gentle.Framework.ProviderFactory..cctor()
--- End of inner exception stack trace --- at
Gentle.Framework.ProviderFactory.SetDefaultProviderConnectionString(String connectionString) at 
MPTV.MPTVplugin.ConnectToTVserver() in E:\\MyStuff\\Visual Studio Projects\\C#\\MPTV\\MPTV\\MPTVplugin.cs:line 192"
A first chance exception of type 'System.TypeInitializationException' occurred in MPTV.dll

Quote:
Originally Posted by ASiDiE View Post
Instead of writing a plug-in for Meedio to control the TV service... why not just use the plug-in that is already writen for MP... and then with your free time... write your meedio plug-ins for MP! The whole world would be a happier place
Actually, the plugin would eventually be for MeediOS, not Meedio.

- Josh

Last edited by walts81; 2006-11-01 at 23:52.
walts81 is offline   Reply With Quote
Old 2006-11-01, 23:57   #5 (permalink)
Portal Member
 
Join Date: Jul 2006
Location: Springfield, IL USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Any ideas why I'm getting that error???

- Josh
walts81 is offline   Reply With Quote
Old 2006-11-02, 07:12   #6 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 36
Posts: 1,516
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default

yes
You forgot to create a gentle.config file
or the file can not be found. perhaps read the gentle.net documentation
frodo is offline   Reply With Quote
Old 2006-11-02, 20:35   #7 (permalink)
Portal Member
 
Join Date: Jul 2006
Location: Springfield, IL USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Thanks Frodo! I got it working. Now I have another question...

In looking at ScheduleRecordingTypes, there are...

Daily
EveryTimeOnEveryChannel
EveryTimeOnThisChannel
Once
Weekends
Weekly
WorkingDays

What is "WorkingDays"? Like Mon-Fri? And is "Weekly" equivalent to "Record First Runs"?

Thanks,
Josh
walts81 is offline   Reply With Quote
Old 2006-11-03, 11:43   #8 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 773
Thanks: 0
Thanked 0 Times in 0 Posts


Default

WorkingDays = Mon to Fri I think.

Weekly = same time, same day, same channel, every week.

Sam
samuel337 is offline   Reply With Quote
Old 2006-11-03, 15:10   #9 (permalink)
Portal Member
 
Join Date: Jul 2006
Location: Springfield, IL USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts


Default

So there's no equivalent to "First Run Only"??? That's considered a "must have". Tivo, SageTV, BeyonTV all have this feature. Is this something that is planned for future, was overlooked, or not being considered??

Thanks,
Josh
walts81 is offline   Reply With Quote
Old 2006-11-03, 16:45   #10 (permalink)
Portal Member
 
Hawkeye's Avatar
 
Join Date: Jan 2005
Location: Halle - Germany
Age: 29
Posts: 269
Thanks: 17
Thanked 4 Times in 4 Posts

Country:

My System

Send a message via ICQ to Hawkeye
Default

Quote:
Originally Posted by walts81 View Post
So there's no equivalent to "First Run Only"??? That's considered a "must have". Tivo, SageTV, BeyonTV all have this feature. Is this something that is planned for future, was overlooked, or not being considered??

Thanks,
Josh
Maybe I misunderstand you but what about the type "once"?
__________________
I didn't do it, nobody saw me do it, there's no way you can prove anything!!!

Hawkeye is online now   Reply With Quote
Reply

Bookmarks

Tags
external, plugins

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
'Failed to start timeshifting, unable to create graph'.... cashel General Support 3 2006-05-19 21:27
Plugins: NOT User-friendly! MyHTPC allover again:-( msj33 Website/Forum/Wiki Feedback 14 2006-04-11 12:08
Gathering topical infos about plugins (To: authors & use tomtom21000 Plugins 2 2006-02-04 23:20
Plugins loading... problems maniac's General Development (no feature request here!) 0 2005-01-07 09:25


All times are GMT +1. The time now is 22:32.


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