Plugin: MP2Extended (1 Viewer)

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    A new installer + changelog is in the first post.
    It has huge improvements especially in the streaming area thanks to @henso
    By the way: I retried the streaming today and it worked without any issues (y) My PC was just working too hard yesterday and couldn't deliver the data fast enough:sleep:
    Do I understand it right:
    The server is transcoding, when I seek it keeps transcoding, but starts a second transcoding job? But wants to keep the whole file once it is fully transcoded.

    And a small suggestion: You use your own proprietary way of saving config files, is there a reason for not to use the in MP inbuilt function?
    It is much less code: https://github.com/MediaPortal/Medi...Components/IrInput/IrInputPlugin.cs#L171-L172

    And another question: Do you have also interest in adding the direct streaming profile? I guess it can be done by a simple profile, right? And just disable all the transcoding.

    Now fanart works for both movies and series(y)
    Really nice!!

    A few of the fanart and thumb images has wrong aspect, need to check the source images for those but in general it's fine. Could it be that you pick another type of image if the fanart don't exist?
    No I don't do that. It is because the source material has a different aspect ratio than requested by you. You can check this by changing borders from "stretch" to "FF0000" (just to see the borders).

    I have also (sometimes) different images in wall view and details thumb but that could be me sending different parameters.
    If there is more than one image I return it randomly. But once it is cached you always get the same. So if one parameter is different you could get another one. I thought it would be nice to have different ones. Should I change this?

    And finally a screenshot of the final error page :)
    505.png
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Edit. Didn't get any connection with WifiRemote in the latest installation. Haven't tried that in the last couple of versions. Is WifiRemote still working for you?
    I was waiting for a reply from morpheus, but he never answered. It doesn't compile right now. But if you would like to have a working version, I can patch it together and upload one :)
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    Thanks, WifiRemote now works. I noticed that it don't seem to work to request for now playing info. WifiRemote should then send out a new now playing message. E.g. useful when coming back from device resume.

    Please don't pick random images, it feels strange to get different images when using the same request url but changing image size. Also most media centers one can decide the images one want to use as default if there are multiple. I would be surprised if other images were shown in mediacenter or a client like MPiV. This is imo up to each client to request different images if one want random behaviour. MPExt had issues that images were not always the same as the order in Moving pictures and people complained about that.

    The above could also be the reason that I sometime get really strange fanart images although they look fine in MP2. The different image types typically have the same aspect ratio so using stretch with MPExt always looks fine since it's seldom more than a few pixels that are stretched. With MP2Ext I sometimes get a totally different image type. Note that I don't get that in MP2.

    I tried streaming but I couldn't get any stream to work. I used the first iOS profile. Logs attached. In there you can also see failed attempts of getting pictures. This was when browsing picture folders where I most often only see one image in a folder of hundreds of images.[DOUBLEPOST=1445805382][/DOUBLEPOST]I got the stacktrace now with faulty requests, thanks![DOUBLEPOST=1445805714][/DOUBLEPOST]Example of stretched image thumb
     

    Attachments

    • image.png
      image.png
      5.1 MB
    Last edited:

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Thanks, WifiRemote now works. I noticed that it don't seem to work to request for now playing info. WifiRemote should then send out a new now playing message. E.g. useful when coming back from device resume.
    Will check that, thanks :)

    Please don't pick random images
    I will implement the offset function. In the beginning I thought offset is to move the image around on a surface, that's why I implemented it the way it is^^

    I got the stacktrace now with faulty requests, thanks!
    nice :)

    Example of stretched image thumb
    The aspect ration issue really bothers me... I can only test it with AMPdroid and it doesn't have these issues, so I guess we need patience and a bit of try and error :)
    This is the current mapping, I added some comments:
    { WebFileType.Backdrop, FanArtConstants.FanArtType.FanArt }, // most likely 16:9
    { WebFileType.Banner, FanArtConstants.FanArtType.Banner }, // a banner, so small in height, large in width
    { WebFileType.Content, FanArtConstants.FanArtType.Thumbnail }, // has the aspect ration of the source material
    { WebFileType.Cover, FanArtConstants.FanArtType.Poster }, // 4:3 good to use as a cover, like in your screenshot above where the Play Icon is
    { WebFileType.Logo, FanArtConstants.FanArtType.FanArt }, // not sure about this mapping, but also most likely 16:9
    { WebFileType.Poster, FanArtConstants.FanArtType.Poster }, // 4:3 as above

    So If you would like to get 4:3 your only chance is pretty much to use the poster (That's what AMPdroid is doing). I don't know which of these types you are using in your example above, but it would be helpful to know :)
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    By the way, I really like your App, to bad that there is no Android version...
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    By the way: Good that you attached the server.log. I found some exceptions. I will go through the log file during the week and try t fix these :)

    Also related to streaming: audioId is null. Have to check this.
     

    pünktchen

    Portal Pro
    October 26, 2010
    537
    201
    Home Country
    Germany Germany
    Okay @FreakyJ
    after correcting some misspelling, these errors are left so far i could test it:
    http://127.0.0.1:4322/MPExtended/TvAccessService/json/GetSchedules
    Code:
    505. That's an error.
    
    Das Objekt des Typs "System.TimeSpan" kann nicht in Typ "System.IConvertible" umgewandelt werden.
    
    Stacktrace:
    bei System.Convert.ToInt32(Object value) bei MediaPortal.Plugins.MP2Extended.ResourceAccess.TAS.Schedule.BaseClasses.BaseScheduleBasic.ScheduleBasic(ISchedule schedule) bei MediaPortal.Plugins.MP2Extended.ResourceAccess.TAS.Schedule.GetSchedules.b__0(ISchedule schedule) bei System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext() bei System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) bei System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) bei MediaPortal.Plugins.MP2Extended.ResourceAccess.TAS.Schedule.GetSchedules.Process(IHttpRequest request) bei MediaPortal.Plugins.MP2Extended.ResourceAccess.TVAccessServiceHandler.Process(IHttpRequest request, IHttpResponse response, IHttpSession session) bei MediaPortal.Plugins.MP2Extended.ResourceAccess.MainRequestHandler.Process(IHttpRequest request, IHttpResponse response, IHttpSession session)

    http://127.0.0.1:4322/MPExtended/TVAccessService/json/GetScheduleById?scheduleId=5
    Code:
    505. That's an error.
    
    Das Objekt des Typs "System.TimeSpan" kann nicht in Typ "System.IConvertible" umgewandelt werden.
    
    Stacktrace:
    bei System.Convert.ToInt32(Object value) bei MediaPortal.Plugins.MP2Extended.ResourceAccess.TAS.Schedule.BaseClasses.BaseScheduleBasic.ScheduleBasic(ISchedule schedule) bei MediaPortal.Plugins.MP2Extended.ResourceAccess.TAS.Schedule.GetScheduleById.Process(IHttpRequest request) bei MediaPortal.Plugins.MP2Extended.ResourceAccess.TVAccessServiceHandler.Process(IHttpRequest request, IHttpResponse response, IHttpSession session) bei MediaPortal.Plugins.MP2Extended.ResourceAccess.MainRequestHandler.Process(IHttpRequest request, IHttpResponse response, IHttpSession session)

    http://127.0.0.1:4322/MPExtended/TVAccessService/json/GetRecordingById?id=1
    Code:
    505. That's an error.
    
    GUID muss 32 Ziffern mit 4 Bindestrichen enthalten (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
    
    Stacktrace:
    bei System.Guid.TryParseGuidWithNoStyle(String guidString, GuidResult& result) bei System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result) bei System.Guid.Parse(String input) bei MediaPortal.Plugins.MP2Extended.ResourceAccess.TAS.Recording.GetRecordingById.Process(IHttpRequest request) bei MediaPortal.Plugins.MP2Extended.ResourceAccess.TVAccessServiceHandler.Process(IHttpRequest request, IHttpResponse response, IHttpSession session) bei MediaPortal.Plugins.MP2Extended.ResourceAccess.MainRequestHandler.Process(IHttpRequest request, IHttpResponse response, IHttpSession session)
    For recording id you should deliver the id from TVServer database!
     

    breese

    Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    67
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    Am I the only one confused?
    I have MPiV on an IPad, when I try to use it to connect to my MP2 Server or Client, it cannot complete the test connections because it errors trying to use /MPExtended
    Then reading thru this thread and looking thru logs I see some of you testing with browsers with
    http://127.0.0.1:4322/MPExtended/TvAccessService/json/GetSchedules

    Should that be /MP2Extended ???
    Also, is there something I can do to configure MPiV to look at the right MPExtended?
     

    Users who are viewing this thread

    Top Bottom