Plugin: MP2Extended (1 Viewer)

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    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

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    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,341
    829
    Home Country
    Denmark Denmark
    I found them, but for me the path is: ...\Incubator\MP2Extended\bower_components\swagger-ui\dist
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    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

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    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

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    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

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    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,341
    829
    Home Country
    Denmark Denmark
    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.
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,341
    829
    Home Country
    Denmark Denmark
    My current references:
    upload_2016-2-9_18-26-16.png
     

    Users who are viewing this thread

    Top Bottom