OnlineVideos 2.8.0.1 [2025/02/16] (27 Viewers)

Pablik

Retired Team Member
  • Premium Supporter
  • August 19, 2010
    844
    1,328
    Home Country
    Czech Republic Czech Republic
    not sure exactly how that works tbh...
    and yes, that would be a good experiment.
    @Pablik : maybe move mp-onlinevideos2/OnlineVideos/Helpers/WebviewHelper.cs at master · MediaPortal/mp-onlinevideos2 to a place where onlinevideos is actually doing something?
    But maybe those dreaded latestvideos are potentially needing it at MP start...
    Maybe we can put the webview init into background init task and call it from there by BeginInvoke(this shoud execute the code in main thread).
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,990
    3,711
    Nuenen
    Home Country
    Netherlands Netherlands
    Maybe we can put the webview init into background init task and call it from there by BeginInvoke(this shoud execute the code in main thread).
    wouldn't that also not being able to init if pc is freshly started?
    And disabling webview2 by renaming doesn't seem like a good solution if there comes a time where it is actually needed....
    just my 2 cents
     

    emphatic

    Design Group
  • Team MediaPortal
  • August 25, 2006
    3,768
    1,234
    Alingsås
    Home Country
    Sweden Sweden
    Well, if the issue is really in init of webview2 then try this: in MP exe folder there is a file with name 'Microsoft.Web.WebView2.WinForms.dll'. Rename this file to something else. OV will rise file not found exception(in OV log) upon init and will continue to load.
    I moved the .dll out from that folder onto my Desktop, changed the MediaPortal setting to autostart as before, and MediaPortal started up as expected, without any problems.

    In the Configuration, you can add a wait before launch, I'm gonna try 30 seconds now and see if that works for me, maybe it will fix @ajs issues too?
     

    Pablik

    Retired Team Member
  • Premium Supporter
  • August 19, 2010
    844
    1,328
    Home Country
    Czech Republic Czech Republic
    And disabling webview2 by renaming doesn't seem like a good solution if there comes a time where it is actually needed....
    It's just for testing. To check whether the problem lies in ww2 or not.

    wouldn't that also not being able to init if pc is freshly started?
    Well, we don't know what is going on exactly, so I can't tell. I did a test on Win10 in VM and OV was initialized even without internet connection and MS Edge's WW2 folder in place.
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,990
    3,711
    Nuenen
    Home Country
    Netherlands Netherlands
    well, it may not be the network, but other stuff.
    As always (where would we be without him) @Pablik has made a fix already...
    You can test it if it indeed also works at your end, just overwrite (backup first!!) the dlls with the ones from the attachment
     

    Attachments

    • ov.zip
      893.7 KB

    emphatic

    Design Group
  • Team MediaPortal
  • August 25, 2006
    3,768
    1,234
    Alingsås
    Home Country
    Sweden Sweden
    well, it may not be the network, but other stuff.
    As always (where would we be without him) @Pablik has made a fix already...
    You can test it if it indeed also works at your end, just overwrite (backup first!!) the dlls with the ones from the attachment
    I've switched out the .dll files, set MediPortal to start as Windows starts, and hey presto, it works. Well, at least the first time I've tried it.
     

    Users who are viewing this thread

    Top Bottom