External Plugins??? (2 Viewers)

walts81

Portal Member
July 11, 2006
9
0
Springfield, IL USA
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
 

Frodo

Retired Team Member
  • Premium Supporter
  • April 22, 2004
    1,518
    121
    53
    The Netherlands
    Home Country
    Netherlands Netherlands
    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
     

    ASiDiE

    Retired Team Member
  • Premium Supporter
  • January 14, 2005
    902
    5
    USA
    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 :)
     

    walts81

    Portal Member
    July 11, 2006
    9
    0
    Springfield, IL USA
    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


    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
     

    Frodo

    Retired Team Member
  • Premium Supporter
  • April 22, 2004
    1,518
    121
    53
    The Netherlands
    Home Country
    Netherlands Netherlands
    yes
    You forgot to create a gentle.config file
    or the file can not be found. perhaps read the gentle.net documentation
     

    walts81

    Portal Member
    July 11, 2006
    9
    0
    Springfield, IL USA
    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

    Portal Member
    July 11, 2006
    9
    0
    Springfield, IL USA
    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
     

    Hawkeye

    Portal Pro
    January 29, 2005
    548
    87
    Halle (Saale)
    Home Country
    Germany Germany
    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"?
     

    Users who are viewing this thread

    Top Bottom