Das Erste: Livestream not working | Page 4

Discussion in 'OnlineVideos' started by SilentBob, August 3, 2017.

  1. SilentBob

    SilentBob Portal Pro

    Joined:
    January 1, 2011
    Messages:
    54
    Likes Received:
    38
    Ratings:
    +50 / 0
    Home Country:
    Germany Germany
    I get the same problems, the dll which gets downloaded during the update does not match the latest GitHub Sources.
    @doskabouter you can simply try this with this code (need some usings and references from OnlineVideo.dll, but this is the minimized original code), it says the dll was updated 2018-06-26 20:37:16
    and when you downlowd the dll and reflect it e.g. with IlSpy you see the changed code is missing
    Code (Text):
    1.  
    2.             Site[] _onlineSites = null;
    3.             Dll[] _onlineDlls = null;
    4.  
    5.             OnlineVideosService ws = new OnlineVideosService() { Timeout = 30000, EnableDecompression = true };
    6.             try
    7.             {
    8.                 _onlineSites = ws.GetSitesOverview();
    9.             }
    10.             catch (Exception ex)
    11.             {
    12.                 Log.Warn("Error on getting sites overview from server: {0}", ex.ToString());
    13.             }
    14.             try
    15.             {
    16.                 _onlineDlls = ws.GetDllsOverview();
    17.             }
    18.             catch (Exception ex)
    19.             {
    20.                 Log.Warn("Error on getting dlls overview from server: {0}", ex.ToString());
    21.             }
    22.  
    23.             var dasErsteSite = _onlineSites.First(s => s.Name.Contains("Das Erste"));
    24.             Console.WriteLine(dasErsteSite.LastUpdated);
    25.             var dll = _onlineDlls.First(d => d.Name.Contains("offbyone"));
    26.             byte[] onlineDllData = ws.GetDll(dll.Name);
    27.             var localPath = string.Format(@"C:\Temp\{0}.dll",dll.Name);
    28.             if (onlineDllData != null && onlineDllData.Length > 0) File.WriteAllBytes(localPath, onlineDllData);
    29.  



     
    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,796
    Likes Received:
    752
    Location:
    Nuenen
    Ratings:
    +1,115 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Felt a bit obliged to give you some distraction, so I dove into this :)

    It seemed that I didn't put all my attention to things (probably was in a hurry for something...) but the Visual Studio I have (2015) doesn't really like the new language features that are used in the DasErsteUtil.
    So it didn't even compile when I published the site...

    Anyway, it's fixed now and published it. So all should be good now...
     
    • Like Like x 2
  4. joecrow
    • Team MediaPortal

    joecrow Test Group

    Joined:
    August 9, 2012
    Messages:
    1,480
    Likes Received:
    716
    Ratings:
    +1,196 / 2
    Home Country:
    Germany Germany
    Show System Specs
    Looking good.:)(y)
     
    • Thank You! Thank You! x 1
  5. SilentBob

    SilentBob Portal Pro

    Joined:
    January 1, 2011
    Messages:
    54
    Likes Received:
    38
    Ratings:
    +50 / 0
    Home Country:
    Germany Germany
    Sorry for that, I wasn't really aware of that.
    I tried to not use the C# 6 Features, but I also thought the compile would tell me, as all projects are configured for .net framework 4.
    Although it would be cool to use newer framework version, it would be a little bit of change for Mediaportal.

    In the meanwhile I also made some progress on the m3u8 parsing (to use your suggested class)
    And some additional missing categories from "Das erste"

    One Technical detail question, I have a category which has Videos and unfortunately some Sub Categories (videos which belong together are grouped with them).
    Unfortunately online Video can handle only one at a time, is this correct. So either there are Sub Categories or videos, not both.

    Do you have a good idea for me, how to handle this? Introduce fake/collector Sub categroy for the videos (to only have categories and videos in a next level), oder Grab Videos from the group Sub categroy and only provide video (to only have videos and no additional Sub Categories)
     
    • Like Like x 1
  6. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,796
    Likes Received:
    752
    Location:
    Nuenen
    Ratings:
    +1,115 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Well, language features are not coupled to .NET Framework versions, so it's no surprise that you can compile it in a newer VS version.

    As for the mixed videos/categories: I usually create an extra category "videos" or something alike and put the videos under that.

    And if you want me to publish again, just let me know!
     
    • Like Like x 2
  7. SilentBob

    SilentBob Portal Pro

    Joined:
    January 1, 2011
    Messages:
    54
    Likes Received:
    38
    Ratings:
    +50 / 0
    Home Country:
    Germany Germany
    @catavolt @joecrow
    I Updated "Das Erste" more should work now (especially "Rubriken", "Die FIFA WM 2018 in Russland") and other Categories which have a deep Category Structure (Folder Structure) until any Video is available.

    Would you like to test a little bit more and help me if you see any other bug.
     

    Attached Files:

    • Like Like x 2
  8. joecrow
    • Team MediaPortal

    joecrow Test Group

    Joined:
    August 9, 2012
    Messages:
    1,480
    Likes Received:
    716
    Ratings:
    +1,196 / 2
    Home Country:
    Germany Germany
    Show System Specs
    Nice one (WM 2018) and so far all other Rubrikens I've tried look good. When selecting playback quality though, the HD option does not work (it would be great if it did play at 1080) see attached screen shots, it either gives that error or a "Connection Lost usw." 720x1280 works fine.(y):)
    DE1.jpg DE2.jpg
     
    • Like Like x 1
    • Agree Agree x 1
  9. catavolt
    • Team MediaPortal
    • Administrator

    catavolt Design Group Manager

    Joined:
    August 13, 2007
    Messages:
    12,240
    Likes Received:
    4,982
    Gender:
    Male
    Occupation:
    Technical Documentation, Translation
    Location:
    Lanzarote
    Ratings:
    +7,396 / 38
    Home Country:
    Germany Germany
    Show System Specs
    Here ALL of the categories in FIFA WM 2018 don´t play in any resolution - I always get the "Connection Lost usw." :oops:
    And category "Die deutsche Mannschaft" is empty :whistle:
     
    • Like Like x 2
  10. joecrow
    • Team MediaPortal

    joecrow Test Group

    Joined:
    August 9, 2012
    Messages:
    1,480
    Likes Received:
    716
    Ratings:
    +1,196 / 2
    Home Country:
    Germany Germany
    Show System Specs
    Agreed but no surprise really.:cry:
    Hmm, I'm sure when I first checked it the Alle WM vids was working but the "Highlights ..." and " Rund das..." sections are still playing for me 720x1280 tested.
     
    • Like Like x 2
  11. SilentBob

    SilentBob Portal Pro

    Joined:
    January 1, 2011
    Messages:
    54
    Likes Received:
    38
    Ratings:
    +50 / 0
    Home Country:
    Germany Germany
    @joecrow @catavolt
    the "Connection Lost" error, or also the "Only Http Protocol.." are wrong errors, if i check the URL which i get from Mediathek is not available, which leads to this error messages.

    But I changed a little bit, the "HD" Quality was a little bit misleading, the web player of ard mediathek has these qualities:
    • sehr hohe
    • hohe
    • mittlere
    • niedrige
    • automatische
    no HD, therefore i also removed the HD. for each quality i get more than one link (sometimes, not all qualities are available!)
    the Error comes from the automatic, where one link cannot be played. but for automatic i also get a second link, this one I have to parse and the result leads to several entries like that:
    <VideoDimension, if available> (Bitrate: xxx Kbps)

    In most cases these links (with the highest bitrate) are much better than all other (also better than "sehr hohe").
    Therefore i changed to preselct the one with highest bitrate and all other are available as fallback

    This one I cannot reproduce.

    @all please update with latest binaries (incl. onlinevideo.dll once again, needed for sorting)

    @doskabouter once again a question: I have a problem with the livestream. "Das Erste" provides a livestream with 30min timeshift. You can try this here: Das Erste live - ARD Mediathek - Livestream der ARD if you go there, the livestream starts and you can go back 30min in time. which is quite cool. But, in Mediaportal the livestream is now always 30min old, it does not start at correct position, it always starts in past and unfortunately i cannot fast-forward the 30min.
    you can see the phenomen by starting the livestream in mediaportal. it is the livestream -30min.
    And I only provide a string url... in public override String GetVideoUrl(VideoInfo video)
    can i handle this somehow?

    totally agree!
     

    Attached Files:

    • Like Like x 2
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!