Plugin: MP2Extended (1 Viewer)

FreakyJ

Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    Which Version VS do you use? You need to use 2015 and you need to click package restore before compiling.
    The swagger ui comes from the bower package defined in bower.json and gets downloaded by VS during the package restore.
    \Source\Incubator\MP2Extended\wwwroot\lib\swagger-ui
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    Could you provide me with a screnshot from inside VS shwoing the MP2Ext Project and it's references?
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,178
    737
    Denmark Denmark
    Country flag
    I found them, but for me the path is: ...\Incubator\MP2Extended\bower_components\swagger-ui\dist
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    I found them, but for me the path is: ...\Incubator\MP2Extended\bower_components\swagger-ui\dist
    Now the question is why my VS puts it into a different place?! Very strange. Maybe I have a newer version? Have you installed all VS Updates?

    Some weeks ago my VS put the bower files also in bower_componets, this just changed suddenly... But haven't changed any configuration.
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    Another thing:
    I am fixing the DLNA Server right now and with my sample videos I get a huuuge amoint of these exceptions:
    [2016-02-09 18:04:55,509] [75301 ] [58 ] [ERROR] - Search failed, Key: M:e558149b-15da-4b9c-9e48-1eb2c5eafc2b, Frame: .ctor at offset 4012 in file:line:column M:\Programmieren\C#\MediaPortal 2\MediaPortal\Source\Incubator\MediaServer\DLNA\DlnaMediaItem.cs:180:7
    , Line: 180
    System.Exception: Video does not match any supported DLNA profile
    at MediaPortal.Plugins.MediaServer.DLNA.DlnaProfiles.ResolveVideoProfile(VideoContainer container, VideoCodec videoCodec, AudioCodec audioCodec, EncodingProfile h264Profile, Single h264Level, Single fps, Int32 width, Int32 height, Int64 videoBitrate, Int64 audioBitrate, Timestamp timestampType) in M:\Programmieren\C#\MediaPortal 2\MediaPortal\Source\Incubator\MediaServer\DLNA\DlnaProfiles.cs:line 1042
    at MediaPortal.Plugins.MediaServer.DLNA.DlnaMediaItem.AssignDlnaMetadata(MetadataContainer info) in M:\Programmieren\C#\MediaPortal 2\MediaPortal\Source\Incubator\MediaServer\DLNA\DlnaMediaItem.cs:line 330
    at MediaPortal.Plugins.MediaServer.DLNA.DlnaMediaItem..ctor(String clientId, MediaItem item, EndPointSettings client, Boolean live) in M:\Programmieren\C#\MediaPortal 2\MediaPortal\Source\Incubator\MediaServer\DLNA\DlnaMediaItem.cs:line 180
    at MediaPortal.Plugins.MediaServer.Profiles.EndPointSettings.GetDlnaItem(MediaItem item, Boolean live) in M:\Programmieren\C#\MediaPortal 2\MediaPortal\Source\Incubator\MediaServer\Profiles\ProfileObjects.cs:line 153
    at MediaPortal.Plugins.MediaServer.Objects.MediaLibrary.MediaLibraryResource.Initialise() in M:\Programmieren\C#\MediaPortal 2\MediaPortal\Source\Incubator\MediaServer\Objects\MediaLibrary\MediaLibraryResource.cs:line 51
    at MediaPortal.Plugins.MediaServer.Objects.MediaLibrary.MediaLibraryVideoItem..ctor(String baseKey, MediaItem item, EndPointSettings client) in M:\Programmieren\C#\MediaPortal 2\MediaPortal\Source\Incubator\MediaServer\Objects\MediaLibrary\MediaLibraryVideoItem.cs:line 96
    at MediaPortal.Plugins.MediaServer.Objects.MediaLibrary.MediaLibraryHelper.InstansiateMediaLibraryObject(MediaItem item, String baseKey, BasicContainer parent, String title) in M:\Programmieren\C#\MediaPortal 2\MediaPortal\Source\Incubator\MediaServer\Objects\MediaLibrary\MediaLibraryHelper.cs:line 112
    at MediaPortal.Plugins.MediaServer.Objects.MediaLibrary.MediaLibraryHelper.InstansiateMediaLibraryObject(MediaItem item, String baseKey, BasicContainer parent) in M:\Programmieren\C#\MediaPortal 2\MediaPortal\Source\Incubator\MediaServer\Objects\MediaLibrary\MediaLibraryHelper.cs:line 85
    at MediaPortal.Plugins.MediaServer.Objects.MediaLibrary.MediaLibraryContainer.Search(String filter, String sortCriteria) in M:\Programmieren\C#\MediaPortal 2\MediaPortal\Source\Incubator\MediaServer\Objects\MediaLibrary\MediaLibraryContainer.cs:line 86
    This is because the MimeType is often Video/Unknown in my DB... Can't we have some kind of fallback profile and log a warning instead of an exception?

    Edit:
    The code of all evil :D

    Code:
    else if (container == VideoContainer.Hls)
          {
            if (videoCodec == VideoCodec.H264 && (audioCodec == AudioCodec.Unknown || audioCodec == AudioCodec.Aac))
            {
              valuesProfiles.Add("HLS");
            }
          }
          else
          {
            throw new Exception("Video does not match any supported DLNA profile");
          }
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    Just changed it fir testing:
    Code:
          else
          {
            //throw new Exception("Video does not match any supported DLNA profile");
            valuesProfiles.Add("REAL_VIDEO");
          }
    Makes it much more usable :D I know Real_Video is probably the wrong one. Any suggestions what to use?
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    Are there any more than Update 1?
    Go to "Extras" -> "Extensions and Updates" My VS is German so I translated it. That means the wording could be different in your version but you should get the point^^
    There is an Updates Tab.
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,178
    737
    Denmark Denmark
    Country flag
    Any suggestions what to use?
    Well the problem with DLNA is that the DLNA profile has to match the media or else it will be unplayable or it might even not be shown at all because it is unsupported. I don't think there is a good fallback.

    Have you installed all VS Updates?
    The Extensions And Updates in Tools->Options->Environment does not provide any information about that. The About dialog tells me I have version 14.0.24720.00 Update 1.
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    morpheus_xx [WiP] "What's New" plugin for MP2 upgrades MediaPortal 2 5
    da3dsoul [Request] An MVP Plugin example for custom settings in MP2 Plugin Development 2
    da3dsoul MP2 Plugin - Getting Started (Directory Tree and Player) Plugin Development 27
    M Installing Plugins Newcomers Forum 2
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 4
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    E aktuelle englische Forums Webseite von - Showtime Plugin v3 Plugins & Erweiterungen 4
    mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
    joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
    vapourEyes Building TV Plugin General Development (no feature request here!) 49
    Golf4 Nach Windows-Updates läuft TV-Plugin nicht mehr Allgemeines Support- und Diskussionsforum 0
    joecrow How about a Launcher plugin for MP1? MediaPortal 1 6
    D [solved] TVServer Plugin must be missing something. General Development (no feature request here!) 1
    framug Nouveau plugin XmlTvFR pour récupérer le guide télé français Kazer / ZguideTv (WebEPGfr) 11
    emphatic Allow remote control mapping of all plugins Improvement Suggestions 0
    D Where should plugins be located on hard drive? General Support 0
    D how to disengage from one version of a plugin to use another Newcomers Forum 0
    cbr954rr How to disable a pre-configured plugin? General 2
    mrmojo666 [Plugin]Marantz Control Plugin 0.0.0.2 MediaPortal 1 Plugins 2
    mrmojo666 beginner: trying to write a plugin, need help to catch event General Development (no feature request here!) 3
    framug [Rejected] Fix PowerScheduler plugin for MP2 single seat Submit: Code Patches 9
    doskabouter [Question] Stale plugins Developer Discussions 9
    M MP1 stops responding after Starting Plugins General Support 14
    Terra LAVFilter Plugin cannot be updated (MP1.23) MediaPortal 1 Plugins 10
    L Mediaportal 1.21 and Windows 10: user schedules de-activated when powerscheduler plugin is selected General Support 1
    Similar threads

























    Top Bottom