MP2 - V2.4.1 Cinema (1 Viewer)

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    All testbuilds after 2014-02-27 contain the extension (allow plugins to set fanart background)
     

    BigGranu

    Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    53
    Home Country
    Germany Germany
    I found a Bug or missing Feature in my Plugin. @Developers Can i set the Default Background as Fallback for the Fanart?
    In the moment, remains the last fanart
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    If you set the ImageSource to null it should switch back to regular background
     

    BigGranu

    Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    53
    Home Country
    Germany Germany
    :( Not working
    Code:
        public void ClearFanart()
        {
          var fanArtBgModel = (FanArtBackgroundModel)ServiceRegistration.Get<IWorkflowManager>().GetModel(FanArtBackgroundModel.FANART_MODEL_ID);
          if (fanArtBgModel != null)
          {
            fanArtBgModel.ImageSource = null;
          }
        }
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    ok, next try: this should work:

    model.SelectedItem = null;
     

    BigGranu

    Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    53
    Home Country
    Germany Germany
    :confused: Unfortunately not.

    Now i have it.
    Code:
    fanArtBgModel.ImageSource = new MultiImageSource { UriSource = null };
     
    Last edited:

    jehe

    Portal Pro
    February 15, 2011
    694
    216
    57
    Home Country
    Belgium Belgium
    Hi,
    When I use the cinema plugin in the dev branch.
    I have the following error in my log:
    Code:
    [2014-04-02 20:09:08,632] [4210   ] [Main     ] [DEBUG] - PluginManager: Loading plugins
    [2014-04-02 20:09:10,233] [5811   ] [Main     ] [ERROR] - Error parsing plugin descriptor file 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\Cinema\plugin.xml'
    System.ArgumentException: 'Plugin' element doesn't support a child element 'Version'
       at MediaPortal.Common.Services.PluginManager.PluginDirectoryDescriptor.Load(String pluginDirectoryPath)
    [2014-04-02 20:09:10,253] [5831   ] [Main     ] [ERROR] - Error loading plugin in directory 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\Cinema'
    System.ArgumentException: Directory 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\Cinema' doesn't contain a valid plugin descriptor file
       at MediaPortal.Common.Services.PluginManager.PluginDirectoryDescriptor..ctor(String pluginDirectoryPath)
       at MediaPortal.Common.Services.PluginManager.PluginManager.LoadPluginsData()
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Please download the Alpha4 version, extract the "plugin.xml" and copy it over the existing one. The reason for this problem: the plugin.xml already contains the changes for "compatibility branch", which is not net finished and approved.
     

    Users who are viewing this thread

    Top Bottom