Plugin: MP2Extended (1 Viewer)

FreakyJ

Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    Will try to do that tomorrow. I have to setup tve3.5 first... don't have a tv card in my dev pc so I need to ise sat>ip which is only available in tve3.5
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    Can you confirm this?
    I could and fixed it ;)
    If you are interested in the reason:

    Ampdroid and MPExt used the Microsoft Json DateTime format and not the ISO one. Now with Asp.Net5 it looks like they decided to go with the standard ISO as default instead with their own proprietary one. I changed it now manually to the MicrosoftFormat and it works like a charm.
    I also forgot to port one api function, but that wasn't the main issue. Just throw some exceptions :D

    Edit:
    In case you don't know:
    http://127.0.0.1:4322/MPExtended/swagger/ui/index.html

    Is a great tool for debugging, just in case you want to call the API manually. It gives you examples etc.
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,173
    736
    Denmark Denmark
    Country flag
    @FreakyJ
    I have a problem with streaming TV. There is no stream length I can put in the response and I can't seem to find how to support chunked transfers from ASP.Net 5. I found possible solutions where they set BufferedOutput=false on the response but that property doesn't exist in ASP.Net 5. Maybe one of you clever guys can investigate? When I currently try to send bytes with ContentLength=0 I get an InvalidOperationException stating that I can't send more bytes than the ContentLength specifies.
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,173
    736
    Denmark Denmark
    Country flag
    Does this help
    I don't exactly know how to understand this. Does it say use: "httpContext.Response.Headers[HeaderNames.TransferEncoding] = "chunked";" in the response for it to become chunked? Or do I need to do it during setup like you did with json date formatting? I did try the former but that did not work.
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    "httpContext.Response.Headers[HeaderNames.TransferEncoding] = "chunked";" in the response for it to become chunked?
    as I understood it: yes

    https://github.com/aspnet/KestrelHttpServer/issues/97

    I did try the former but that did not work.
    Also using WriteAsync()?! Because the current send methods are using Write().

    Edit:
    I guess you need to check this header inside the send methods and switch to WriteAsync if it should be chunked. does that make sense?
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,173
    736
    Denmark Denmark
    Country flag
    I think i manually need to add the start and end delimiters for chunked transfers like shown in your first link. I will try that tomorrow.
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    I think i manually need to add the start and end delimiters for chunked transfers like shown in your first link.
    Didn't even know they exist :D So I learned something new :)

    Let me know how it went!
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    Have you also tried not setting the content length at all? I think they haven't in the example.
     

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

    OP Similar threads Forum Replies Date
    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
    C Can the XmlTv Plugin handle 600+ channels? General 3
    M Online Video Plugin V.2.32 keine Installtion unter MediaPortal 1.22 ? TV / Streaming 3
    emphatic Pictures in the cloud - would a plugin be possible for services like Google Photos MediaPortal 1 Plugins 1
    Similar threads

























    Top Bottom